Skip to content

Commit 2ba261f

Browse files
authored
tf-operator: Consolidate manifests (#1255)
* manifests: Add base/overlays structure Signed-off-by: Yannis Zarkadas <yanniszark@arrikto.com> * Edit docs and scripts to use new manifests Signed-off-by: Yannis Zarkadas <yanniszark@arrikto.com> * manifests: Delete old manifests Signed-off-by: Yannis Zarkadas <yanniszark@arrikto.com>
1 parent cadfd91 commit 2ba261f

25 files changed

+44
-534
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ run distributed or non-distributed TensorFlow jobs on Kubernetes.
2020
## Installation
2121

2222
```bash
23-
kubectl apply -f ./deploy/v1/tf-operator.yaml
23+
kustomize build manifests/overlays/standalone | kubectl apply -f -
2424
```
2525

2626
## Quick Start

deploy/v1/tf-operator.yaml

Lines changed: 0 additions & 200 deletions
This file was deleted.
File renamed without changes.
File renamed without changes.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,11 @@ spec:
4141
replicas:
4242
minimum: 1
4343
type: integer
44+
Evaluator:
45+
properties:
46+
replicas:
47+
minimum: 0
48+
type: integer
4449
versions:
4550
- name: v1
4651
served: true

manifests/tf-job-operator/base/deployment.yaml renamed to manifests/base/deployment.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,6 @@ spec:
2626
valueFrom:
2727
fieldRef:
2828
fieldPath: metadata.name
29-
image: gcr.io/kubeflow-images-public/tf_operator:kubeflow-tf-operator-postsubmit-v1-5adee6f-6109-a25c
29+
image: gcr.io/kubeflow-images-public/tf-operator:v0.6.0
3030
name: tf-job-operator
3131
serviceAccountName: tf-job-operator
Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,16 @@ kind: Kustomization
33
namespace: kubeflow
44
resources:
55
- crd.yaml
6-
- namespace.yaml
7-
- rbac.yaml
6+
- cluster-role-binding.yaml
7+
- cluster-role.yaml
88
- deployment.yaml
9+
- service-account.yaml
910
- service.yaml
1011
commonLabels:
12+
app: tf-job-operator
1113
kustomize.component: tf-job-operator
14+
app.kubernetes.io/component: tfjob
15+
app.kubernetes.io/name: tf-job-operator
1216
images:
1317
- name: gcr.io/kubeflow-images-public/tf-operator
1418
newName: 809251082950.dkr.ecr.us-west-2.amazonaws.com/tf-operator
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
apiVersion: v1
2+
kind: ServiceAccount
3+
metadata:
4+
labels:
5+
app: tf-job-operator
6+
name: tf-job-operator
File renamed without changes.

manifests/crd.yaml

Lines changed: 0 additions & 47 deletions
This file was deleted.

0 commit comments

Comments
 (0)