Skip to content

Commit

Permalink
feat: Update readme (#1244)
Browse files Browse the repository at this point in the history
Signed-off-by: cegao <cegao@tencent.com>
  • Loading branch information
gaocegege committed Feb 9, 2021
1 parent 047d6af commit fc46a92
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 40 deletions.
40 changes: 27 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,25 +4,38 @@
[![Coverage Status](https://coveralls.io/repos/github/kubeflow/tf-operator/badge.svg?branch=master)](https://coveralls.io/github/kubeflow/tf-operator?branch=master)
[![Go Report Card](https://goreportcard.com/badge/github.com/kubeflow/tf-operator)](https://goreportcard.com/report/github.com/kubeflow/tf-operator)

## Quick Links

* [Prow test dashboard](https://k8s-testgrid.appspot.com/sig-big-data)
* [Prow jobs dashboard](https://prow.k8s.io/?repo=kubeflow%2Ftf-operator)
* [Argo UI for E2E tests](http://testing-argo.kubeflow.org)

## Overview

TFJob provides a Kubernetes custom resource that makes it easy to
run distributed or non-distributed TensorFlow jobs on Kubernetes.

Please refer to the [user guide](https://www.kubeflow.org/docs/guides/components/tftraining/) for more information.
- For a complete reference of the custom resource definitions, please refer to the [API Definition](pkg/apis/tensorflow/v1/types.go).
- For details on its design, please refer to the [v1alpha2 design doc](https://github.com/kubeflow/community/blob/master/proposals/tf-operator-design-v1alpha2.md).
- For details on its obersibility, please refer to the [monitoring design doc](docs/monitoring/README.md).

## Prerequisites

* Version >= 1.16 of Kubernetes

## Deploy
## Installation

```bash
kubectl apply -f ./deploy/v1/tf-operator.yaml
```

## Quick Start

Please refer to the [quick-start-v1.md](docs/quick-start-v1.md) and [Kubeflow user guide](https://www.kubeflow.org/docs/guides/components/tftraining/) for more information.

## Community

You can:

- Join our [Slack](https://join.slack.com/t/kubeflow/shared_invite/zt-lhkwrmkh-JPT2g9eva1oPkS00~VHZDQ) channel.
- Check out [who is using this operator](./docs/adopters.md).

This is a part of Kubeflow, so please see [readme in kubeflow/kubeflow](https://github.com/kubeflow/kubeflow#get-involved) to get in touch with the community.

## Contributing

Please refer to the [developer_guide](developer_guide.md)
Expand All @@ -31,10 +44,11 @@ Please refer to the [developer_guide](developer_guide.md)

Please refer to [CHANGELOG](CHANGELOG.md)

## Adopters
## Version Matrix

Please refer to [adopters list](./docs/adopters.md).
The following table lists the most recent few versions of the operator.

## Community

This is a part of Kubeflow, so please see [readme in kubeflow/kubeflow](https://github.com/kubeflow/kubeflow#get-involved) to get in touch with the community.
| Operator Version | API Version | Kubernetes Version |
| ------------- | ------------- | ------------- |
| `latest` (master HEAD) | `v1` | 1.16+ |
| `v1.0.x`| `v1` | 1.16+ |
28 changes: 1 addition & 27 deletions developer_guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,10 @@ ln -sf ${GIT_TRAINING} ${go env GOPATH}/src/github.com/kubeflow/tf-operator

* GIT_TRAINING should be the location where you checked out https://github.com/kubeflow/tf-operator

Resolve dependencies (if you don't have dep install, check how to do it [here](https://github.com/golang/dep))

Install dependencies

```sh
dep ensure
GO111MODULE="on" go mod vendor
```

Build it
Expand All @@ -27,30 +25,6 @@ Build it
go install github.com/kubeflow/tf-operator/cmd/tf-operator.v1
```

## Building all the artifacts.

[pipenv](https://pipenv.pypa.io/en/stable/) is recommended to manage local Python environment.
You can find setup information on their website.

To build the following artifacts:

* Docker image for the operator
* Helm chart for deploying it

You can run

```sh
# to setup pipenv you have to step into the directory where Pipfile is located
cd py/kubeflow/tf_operator
pipenv install
pipenv shell
cd ../..
python -m kubeflow.tf_operator.release local --registry=${REGISTRY}
```

* The docker image will be tagged into your registry
* The helm chart will be created in **./bin**

## Running the Operator Locally

Running the operator locally (as opposed to deploying it on a K8s cluster) is convenient for debugging/development.
Expand Down

0 comments on commit fc46a92

Please sign in to comment.