-
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.
Fix presubmits and update TFJob examples for v1beta2 and v1 (#1002)
* Update TFJob examples for v1beta2 and v1 * Change to multiple versioned CRD * update test worker image * Update gcloud command * upgrade ksonnet * Debug * use latest kubeflow/testing * Upgrade workflow app * Upgrade workflow app
- Loading branch information
1 parent
63de5cb
commit d5d783c
Showing
89 changed files
with
1,736 additions
and
75,618 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,46 @@ | ||
apiVersion: apiextensions.k8s.io/v1beta1 | ||
kind: CustomResourceDefinition | ||
metadata: | ||
name: tfjobs.kubeflow.org | ||
spec: | ||
group: kubeflow.org | ||
scope: Namespaced | ||
names: | ||
kind: TFJob | ||
singular: tfjob | ||
plural: tfjobs | ||
subresources: | ||
status: {} | ||
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 | ||
version: v1 | ||
versions: | ||
- name: v1 | ||
served: true | ||
storage: true | ||
- name: v1beta2 | ||
served: true | ||
storage: false |
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.