Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Katib manifests for Kubeflow 1.1 #1239

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions katib/components/katib-controller/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,15 @@ resources:
- ../../katib-controller/base/katib-ui-rbac.yaml
- ../../katib-controller/base/katib-ui-service.yaml
- ../../katib-controller/base/trial-template-configmap.yaml
- ../../katib-controller/base/trial-template-configmap-labeled.yaml
- ../../katib-controller/overlays/application/application.yaml
- ../../katib-controller/overlays/istio/katib-ui-virtual-service.yaml
images:
- name: gcr.io/kubeflow-images-public/katib/v1alpha3/katib-controller
newTag: v0.8.0
newTag: 917164a
newName: gcr.io/kubeflow-images-public/katib/v1alpha3/katib-controller
- name: gcr.io/kubeflow-images-public/katib/v1alpha3/katib-ui
newTag: v0.8.0
newTag: 917164a
newName: gcr.io/kubeflow-images-public/katib/v1alpha3/katib-ui
commonLabels:
app.kubernetes.io/component: katib
Expand Down
2 changes: 1 addition & 1 deletion katib/components/katib-db-manager/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ resources:
- ../../katib-controller/base/katib-db-manager-service.yaml
images:
- name: gcr.io/kubeflow-images-public/katib/v1alpha3/katib-db-manager
newTag: v0.8.0
newTag: 917164a
newName: gcr.io/kubeflow-images-public/katib/v1alpha3/katib-db-manager
commonLabels:
app.kubernetes.io/component: katib
Expand Down
26 changes: 16 additions & 10 deletions katib/katib-controller/base/katib-configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ data:
metrics-collector-sidecar: |-
{
"StdOut": {
"image": "gcr.io/kubeflow-images-public/katib/v1alpha3/file-metrics-collector:v0.8.0"
"image": "gcr.io/kubeflow-images-public/katib/v1alpha3/file-metrics-collector:917164a"
},
"File": {
"image": "gcr.io/kubeflow-images-public/katib/v1alpha3/file-metrics-collector:v0.8.0"
"image": "gcr.io/kubeflow-images-public/katib/v1alpha3/file-metrics-collector:917164a"
},
"TensorFlowEvent": {
"image": "gcr.io/kubeflow-images-public/katib/v1alpha3/tfevent-metrics-collector:v0.8.0",
"image": "gcr.io/kubeflow-images-public/katib/v1alpha3/tfevent-metrics-collector:917164a",
"resources": {
"limits": {
"memory": "1Gi"
Expand All @@ -23,27 +23,33 @@ data:
suggestion: |-
{
"random": {
"image": "gcr.io/kubeflow-images-public/katib/v1alpha3/suggestion-hyperopt:v0.8.0"
"image": "gcr.io/kubeflow-images-public/katib/v1alpha3/suggestion-hyperopt:917164a"
},
"grid": {
"image": "gcr.io/kubeflow-images-public/katib/v1alpha3/suggestion-chocolate:v0.8.0"
"image": "gcr.io/kubeflow-images-public/katib/v1alpha3/suggestion-chocolate:917164a"
},
"hyperband": {
"image": "gcr.io/kubeflow-images-public/katib/v1alpha3/suggestion-hyperband:v0.8.0"
"image": "gcr.io/kubeflow-images-public/katib/v1alpha3/suggestion-hyperband:917164a"
},
"bayesianoptimization": {
"image": "gcr.io/kubeflow-images-public/katib/v1alpha3/suggestion-skopt:v0.8.0"
"image": "gcr.io/kubeflow-images-public/katib/v1alpha3/suggestion-skopt:917164a"
},
"tpe": {
"image": "gcr.io/kubeflow-images-public/katib/v1alpha3/suggestion-hyperopt:v0.8.0"
"image": "gcr.io/kubeflow-images-public/katib/v1alpha3/suggestion-hyperopt:917164a"
},
"nasrl": {
"image": "gcr.io/kubeflow-images-public/katib/v1alpha3/suggestion-nasrl:v0.8.0",
"enas": {
"image": "gcr.io/kubeflow-images-public/katib/v1alpha3/suggestion-enas:917164a",
"imagePullPolicy": "Always",
"resources": {
"limits": {
"memory": "200Mi"
}
}
},
"cmaes": {
"image": "gcr.io/kubeflow-images-public/katib/v1alpha3/suggestion-goptuna:917164a"
},
"darts": {
"image": "gcr.io/kubeflow-images-public/katib/v1alpha3/suggestion-darts:917164a"
}
}
1 change: 1 addition & 0 deletions katib/katib-controller/base/katib-ui-rbac.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ rules:
resources:
- experiments
- trials
- suggestions
verbs:
- "*"
---
Expand Down
7 changes: 4 additions & 3 deletions katib/katib-controller/base/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,20 +15,21 @@ resources:
- katib-ui-rbac.yaml
- katib-ui-service.yaml
- trial-template-configmap.yaml
- trial-template-configmap-labeled.yaml
configMapGenerator:
- name: katib-parameters
env: params.env
generatorOptions:
disableNameSuffixHash: true
images:
- name: gcr.io/kubeflow-images-public/katib/v1alpha3/katib-controller
newTag: v0.8.0
newTag: 917164a
newName: gcr.io/kubeflow-images-public/katib/v1alpha3/katib-controller
- name: gcr.io/kubeflow-images-public/katib/v1alpha3/katib-db-manager
newTag: v0.8.0
newTag: 917164a
newName: gcr.io/kubeflow-images-public/katib/v1alpha3/katib-db-manager
- name: gcr.io/kubeflow-images-public/katib/v1alpha3/katib-ui
newTag: v0.8.0
newTag: 917164a
newName: gcr.io/kubeflow-images-public/katib/v1alpha3/katib-ui
- name: mysql
newTag: "8"
Expand Down
95 changes: 95 additions & 0 deletions katib/katib-controller/base/trial-template-configmap-labeled.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: trial-template-labeled
namespace: kubeflow
labels:
app: katib-trial-templates
data:
defaultTrialTemplate.yaml: |-
apiVersion: batch/v1
kind: Job
metadata:
name: {{.Trial}}
namespace: {{.NameSpace}}
spec:
template:
spec:
containers:
- name: {{.Trial}}
image: docker.io/kubeflowkatib/mxnet-mnist
command:
- "python3"
- "/opt/mxnet-mnist/mnist.py"
- "--batch-size=64"
{{- with .HyperParameters}}
{{- range .}}
- "{{.Name}}={{.Value}}"
{{- end}}
{{- end}}
restartPolicy: Never
enasCPUTemplate: |-
apiVersion: batch/v1
kind: Job
metadata:
name: {{.Trial}}
namespace: {{.NameSpace}}
spec:
template:
spec:
containers:
- name: {{.Trial}}
image: docker.io/kubeflowkatib/enas-cnn-cifar10-cpu
command:
- "python3.5"
- "-u"
- "RunTrial.py"
{{- with .HyperParameters}}
{{- range .}}
- "--{{.Name}}=\"{{.Value}}\""
{{- end}}
{{- end}}
- "--num_epochs=1"
restartPolicy: Never
pytorchJobTemplate: |-
apiVersion: "kubeflow.org/v1"
kind: PyTorchJob
metadata:
name: {{.Trial}}
namespace: {{.NameSpace}}
spec:
pytorchReplicaSpecs:
Master:
replicas: 1
restartPolicy: OnFailure
template:
spec:
containers:
- name: pytorch
image: gcr.io/kubeflow-ci/pytorch-dist-mnist-test:v1.0
imagePullPolicy: Always
command:
- "python"
- "/var/mnist.py"
{{- with .HyperParameters}}
{{- range .}}
- "{{.Name}}={{.Value}}"
{{- end}}
{{- end}}
Worker:
replicas: 2
restartPolicy: OnFailure
template:
spec:
containers:
- name: pytorch
image: gcr.io/kubeflow-ci/pytorch-dist-mnist-test:v1.0
imagePullPolicy: Always
command:
- "python"
- "/var/mnist.py"
{{- with .HyperParameters}}
{{- range .}}
- "{{.Name}}={{.Value}}"
{{- end}}
{{- end}}
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ spec:
valueFrom:
fieldRef:
fieldPath: metadata.namespace
image: gcr.io/kubeflow-images-public/katib/v1alpha3/katib-controller:v0.8.0
image: gcr.io/kubeflow-images-public/katib/v1alpha3/katib-controller:917164a
imagePullPolicy: IfNotPresent
name: katib-controller
ports:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ spec:
secretKeyRef:
key: KATIB_MYSQL_DB_PORT
name: katib-mysql-secrets-kmcg6hfkfg
image: gcr.io/kubeflow-images-public/katib/v1alpha3/katib-db-manager:v0.8.0
image: gcr.io/kubeflow-images-public/katib/v1alpha3/katib-db-manager:917164a
imagePullPolicy: IfNotPresent
livenessProbe:
exec:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ spec:
valueFrom:
fieldRef:
fieldPath: metadata.namespace
image: gcr.io/kubeflow-images-public/katib/v1alpha3/katib-ui:v0.8.0
image: gcr.io/kubeflow-images-public/katib/v1alpha3/katib-ui:917164a
imagePullPolicy: IfNotPresent
name: katib-ui
ports:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,6 @@ rules:
resources:
- experiments
- trials
- suggestions
verbs:
- '*'
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@ data:
metrics-collector-sidecar: |-
{
"StdOut": {
"image": "gcr.io/kubeflow-images-public/katib/v1alpha3/file-metrics-collector:v0.8.0"
"image": "gcr.io/kubeflow-images-public/katib/v1alpha3/file-metrics-collector:917164a"
},
"File": {
"image": "gcr.io/kubeflow-images-public/katib/v1alpha3/file-metrics-collector:v0.8.0"
"image": "gcr.io/kubeflow-images-public/katib/v1alpha3/file-metrics-collector:917164a"
},
"TensorFlowEvent": {
"image": "gcr.io/kubeflow-images-public/katib/v1alpha3/tfevent-metrics-collector:v0.8.0",
"image": "gcr.io/kubeflow-images-public/katib/v1alpha3/tfevent-metrics-collector:917164a",
"resources": {
"limits": {
"memory": "1Gi"
Expand All @@ -20,28 +20,34 @@ data:
suggestion: |-
{
"random": {
"image": "gcr.io/kubeflow-images-public/katib/v1alpha3/suggestion-hyperopt:v0.8.0"
"image": "gcr.io/kubeflow-images-public/katib/v1alpha3/suggestion-hyperopt:917164a"
},
"grid": {
"image": "gcr.io/kubeflow-images-public/katib/v1alpha3/suggestion-chocolate:v0.8.0"
"image": "gcr.io/kubeflow-images-public/katib/v1alpha3/suggestion-chocolate:917164a"
},
"hyperband": {
"image": "gcr.io/kubeflow-images-public/katib/v1alpha3/suggestion-hyperband:v0.8.0"
"image": "gcr.io/kubeflow-images-public/katib/v1alpha3/suggestion-hyperband:917164a"
},
"bayesianoptimization": {
"image": "gcr.io/kubeflow-images-public/katib/v1alpha3/suggestion-skopt:v0.8.0"
"image": "gcr.io/kubeflow-images-public/katib/v1alpha3/suggestion-skopt:917164a"
},
"tpe": {
"image": "gcr.io/kubeflow-images-public/katib/v1alpha3/suggestion-hyperopt:v0.8.0"
"image": "gcr.io/kubeflow-images-public/katib/v1alpha3/suggestion-hyperopt:917164a"
},
"nasrl": {
"image": "gcr.io/kubeflow-images-public/katib/v1alpha3/suggestion-nasrl:v0.8.0",
"enas": {
"image": "gcr.io/kubeflow-images-public/katib/v1alpha3/suggestion-enas:917164a",
"imagePullPolicy": "Always",
"resources": {
"limits": {
"memory": "200Mi"
}
}
},
"cmaes": {
"image": "gcr.io/kubeflow-images-public/katib/v1alpha3/suggestion-goptuna:917164a"
},
"darts": {
"image": "gcr.io/kubeflow-images-public/katib/v1alpha3/suggestion-darts:917164a"
}
}
kind: ConfigMap
Expand Down
Loading