-
Notifications
You must be signed in to change notification settings - Fork 706
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update tf-operator v1beta1 documentation and examples (#870)
* Update tf-operator v1beta1 documentation and examples * Fix typo
- Loading branch information
1 parent
371034c
commit 89e6f66
Showing
12 changed files
with
406 additions
and
112 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
apiVersion: apiextensions.k8s.io/v1beta1 | ||
kind: CustomResourceDefinition | ||
metadata: | ||
name: tfjobs.kubeflow.org | ||
spec: | ||
group: kubeflow.org | ||
version: v1beta1 | ||
scope: Namespaced | ||
names: | ||
kind: TFJob | ||
singular: tfjob | ||
plural: tfjobs | ||
validation: | ||
openAPIV3Schema: | ||
properties: | ||
spec: | ||
properties: | ||
tfReplicaSpecs: | ||
properties: | ||
# The validation works when the configuration contains | ||
# `Worker`, `PS` or `Chief`. Otherwise it will not be validated. | ||
Worker: | ||
properties: | ||
replicas: | ||
type: integer | ||
minimum: 1 | ||
PS: | ||
properties: | ||
replicas: | ||
type: integer | ||
minimum: 1 | ||
Chief: | ||
properties: | ||
replicas: | ||
type: integer | ||
minimum: 1 | ||
maximum: 1 |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Copyright 2016 The TensorFlow Authors. All Rights Reserved. | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
FROM tensorflow/tensorflow:1.5.0 | ||
|
||
ADD . /var/tf_dist_mnist | ||
ENTRYPOINT ["python", "/var/tf_dist_mnist/dist_mnist.py"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
### Distributed mnist model for e2e test | ||
|
||
This folder containers Dockerfile and distributed mnist model for e2e test. | ||
|
||
**Build Image** | ||
|
||
The default image name and tag is `kubeflow/tf-dist-mnist-test:1.0`. | ||
|
||
```shell | ||
docker build -f Dockerfile -t kubeflow/tf-dist-mnist-test:1.0 ./ | ||
``` | ||
|
||
**Create TFJob YAML** | ||
|
||
``` | ||
kubectl create -f ./tf_job_mnist.yaml | ||
``` |
Oops, something went wrong.