Skip to content

Commit

Permalink
katib-controller: Move mysql to overlay
Browse files Browse the repository at this point in the history
similar to kubeflow#673, this allows users to create their own overlay to use
external databases.
  • Loading branch information
discordianfish committed Apr 14, 2020
1 parent b5df17f commit 2ae7a5d
Show file tree
Hide file tree
Showing 49 changed files with 111 additions and 270 deletions.
12 changes: 0 additions & 12 deletions katib/katib-controller/base/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,6 @@ resources:
- katib-controller-rbac.yaml
- katib-controller-secret.yaml
- katib-controller-service.yaml
- katib-mysql-deployment.yaml
- katib-mysql-pvc.yaml
- katib-mysql-secret.yaml
- katib-mysql-service.yaml
- katib-db-manager-deployment.yaml
- katib-db-manager-service.yaml
- katib-ui-deployment.yaml
- katib-ui-rbac.yaml
- katib-ui-service.yaml
Expand All @@ -24,15 +18,9 @@ images:
- name: gcr.io/kubeflow-images-public/katib/v1alpha3/katib-controller
newTag: v0.8.0
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
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
newName: gcr.io/kubeflow-images-public/katib/v1alpha3/katib-ui
- name: mysql
newTag: "8"
newName: mysql
vars:
- name: clusterDomain
objref:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,6 @@ spec:
- name: katib-db-manager
image: gcr.io/kubeflow-images-public/katib/v1alpha3/katib-db-manager
imagePullPolicy: IfNotPresent
env:
- name : DB_NAME
value: "mysql"
- name: DB_PASSWORD
valueFrom:
secretKeyRef:
name: katib-mysql-secrets
key: MYSQL_ROOT_PASSWORD
command:
- './katib-db-manager'
ports:
Expand Down
10 changes: 10 additions & 0 deletions katib/katib-controller/overlays/db-manager/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
namespace: kubeflow
bases:
- ../base
resources:
- katib-db-manager-deployment.yaml
- katib-db-manager-service.yaml
images:
- name: gcr.io/kubeflow-images-public/katib/v1alpha3/katib-db-manager
newTag: v0.8.0
newName: gcr.io/kubeflow-images-public/katib/v1alpha3/katib-db-manager
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: katib-db-manager
spec:
template:
spec:
containers:
- name: katib-db-manager
env:
- name : DB_NAME
value: "mysql"
- name: DB_PASSWORD
valueFrom:
secretKeyRef:
name: katib-mysql-secrets
key: MYSQL_ROOT_PASSWORD
15 changes: 15 additions & 0 deletions katib/katib-controller/overlays/db/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
bases:
- ../../base
resources:
- katib-mysql-deployment.yaml
- katib-mysql-pvc.yaml
- katib-mysql-secret.yaml
- katib-mysql-service.yaml
patchesStrategicMerge:
- katib-db-manager-deployment.yaml
images:
- name: mysql
newTag: "8"
newName: mysql
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
bases:
- ../../base
- ../db/
patchesStrategicMerge:
- katib-mysql-deployment.yaml
images:
Expand Down
2 changes: 2 additions & 0 deletions kfdef/kfctl_anthos.v1.0.0.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,8 @@ spec:
overlays:
- application
- istio
- db
- db-manager
repoRef:
name: manifests
path: katib/katib-controller
Expand Down
2 changes: 2 additions & 0 deletions kfdef/kfctl_anthos.v1.0.1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,8 @@ spec:
overlays:
- application
- istio
- db
- db-manager
repoRef:
name: manifests
path: katib/katib-controller
Expand Down
2 changes: 2 additions & 0 deletions kfdef/kfctl_anthos.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,8 @@ spec:
overlays:
- application
- istio
- db
- db-manager
repoRef:
name: manifests
path: katib/katib-controller
Expand Down
2 changes: 2 additions & 0 deletions kfdef/kfctl_aws.v1.0.0.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,8 @@ spec:
overlays:
- application
- istio
- db
- db-manager
repoRef:
name: manifests
path: katib/katib-controller
Expand Down
2 changes: 2 additions & 0 deletions kfdef/kfctl_aws.v1.0.1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,8 @@ spec:
overlays:
- application
- istio
- db
- db-manager
repoRef:
name: manifests
path: katib/katib-controller
Expand Down
2 changes: 2 additions & 0 deletions kfdef/kfctl_aws.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,8 @@ spec:
overlays:
- application
- istio
- db
- db-manager
repoRef:
name: manifests
path: katib/katib-controller
Expand Down
2 changes: 2 additions & 0 deletions kfdef/kfctl_aws_cognito.v1.0.0.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,8 @@ spec:
overlays:
- application
- istio
- db
- db-manager
repoRef:
name: manifests
path: katib/katib-controller
Expand Down
2 changes: 2 additions & 0 deletions kfdef/kfctl_aws_cognito.v1.0.1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,8 @@ spec:
overlays:
- application
- istio
- db
- db-manager
repoRef:
name: manifests
path: katib/katib-controller
Expand Down
2 changes: 2 additions & 0 deletions kfdef/kfctl_aws_cognito.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,8 @@ spec:
overlays:
- application
- istio
- db
- db-manager
repoRef:
name: manifests
path: katib/katib-controller
Expand Down
2 changes: 2 additions & 0 deletions kfdef/kfctl_gcp_basic_auth.v1.0.0.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,8 @@ spec:
overlays:
- application
- istio
- db
- db-manager
repoRef:
name: manifests
path: katib/katib-controller
Expand Down
2 changes: 2 additions & 0 deletions kfdef/kfctl_gcp_basic_auth.v1.0.1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,8 @@ spec:
overlays:
- application
- istio
- db
- db-manager
repoRef:
name: manifests
path: katib/katib-controller
Expand Down
2 changes: 2 additions & 0 deletions kfdef/kfctl_gcp_basic_auth.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,8 @@ spec:
overlays:
- application
- istio
- db
- db-manager
repoRef:
name: manifests
path: katib/katib-controller
Expand Down
4 changes: 4 additions & 0 deletions kfdef/kfctl_gcp_iap.v1.0.0.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -263,13 +263,16 @@ spec:
overlays:
- application
- istio
- db
- db-manager
repoRef:
name: manifests
path: katib/katib-controller
name: katib-controller
- kustomizeConfig:
overlays:
- application
- use-kf-user
repoRef:
name: manifests
path: pipeline/api-service
Expand Down Expand Up @@ -314,6 +317,7 @@ spec:
- kustomizeConfig:
overlays:
- application
- use-kf-user
repoRef:
name: manifests
path: pipeline/pipelines-runner
Expand Down
4 changes: 4 additions & 0 deletions kfdef/kfctl_gcp_iap.v1.0.1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -263,13 +263,16 @@ spec:
overlays:
- application
- istio
- db
- db-manager
repoRef:
name: manifests
path: katib/katib-controller
name: katib-controller
- kustomizeConfig:
overlays:
- application
- use-kf-user
repoRef:
name: manifests
path: pipeline/api-service
Expand Down Expand Up @@ -314,6 +317,7 @@ spec:
- kustomizeConfig:
overlays:
- application
- use-kf-user
repoRef:
name: manifests
path: pipeline/pipelines-runner
Expand Down
2 changes: 2 additions & 0 deletions kfdef/kfctl_gcp_iap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,8 @@ spec:
overlays:
- application
- istio
- db
- db-manager
repoRef:
name: manifests
path: katib/katib-controller
Expand Down
2 changes: 2 additions & 0 deletions kfdef/kfctl_ibm.v1.0.0.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,8 @@ spec:
overlays:
- application
- istio
- db
- db-manager
- ibm-storage-config
repoRef:
name: manifests
Expand Down
2 changes: 2 additions & 0 deletions kfdef/kfctl_ibm.v1.0.1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,8 @@ spec:
overlays:
- application
- istio
- db
- db-manager
- ibm-storage-config
repoRef:
name: manifests
Expand Down
2 changes: 2 additions & 0 deletions kfdef/kfctl_ibm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,8 @@ spec:
overlays:
- application
- istio
- db
- db-manager
- ibm-storage-config
repoRef:
name: manifests
Expand Down
2 changes: 2 additions & 0 deletions kfdef/kfctl_istio_dex.v1.0.0.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,8 @@ spec:
overlays:
- application
- istio
- db
- db-manager
repoRef:
name: manifests
path: katib/katib-controller
Expand Down
2 changes: 2 additions & 0 deletions kfdef/kfctl_istio_dex.v1.0.1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,8 @@ spec:
overlays:
- application
- istio
- db
- db-manager
repoRef:
name: manifests
path: katib/katib-controller
Expand Down
2 changes: 2 additions & 0 deletions kfdef/kfctl_istio_dex.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,8 @@ spec:
overlays:
- application
- istio
- db
- db-manager
repoRef:
name: manifests
path: katib/katib-controller
Expand Down
2 changes: 2 additions & 0 deletions kfdef/kfctl_k8s_istio.v1.0.0.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,8 @@ spec:
overlays:
- application
- istio
- db
- db-manager
repoRef:
name: manifests
path: katib/katib-controller
Expand Down
2 changes: 2 additions & 0 deletions kfdef/kfctl_k8s_istio.v1.0.1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,8 @@ spec:
overlays:
- application
- istio
- db
- db-manager
repoRef:
name: manifests
path: katib/katib-controller
Expand Down
2 changes: 2 additions & 0 deletions kfdef/kfctl_k8s_istio.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,8 @@ spec:
overlays:
- application
- istio
- db
- db-manager
repoRef:
name: manifests
path: katib/katib-controller
Expand Down
2 changes: 2 additions & 0 deletions kfdef/source/master/kfctl_anthos.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,8 @@ spec:
overlays:
- application
- istio
- db
- db-manager
repoRef:
name: manifests
path: katib/katib-controller
Expand Down
2 changes: 2 additions & 0 deletions kfdef/source/master/kfctl_aws.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,8 @@ spec:
overlays:
- application
- istio
- db
- db-manager
repoRef:
name: manifests
path: katib/katib-controller
Expand Down
2 changes: 2 additions & 0 deletions kfdef/source/master/kfctl_aws_cognito.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,8 @@ spec:
overlays:
- application
- istio
- db
- db-manager
repoRef:
name: manifests
path: katib/katib-controller
Expand Down
2 changes: 2 additions & 0 deletions kfdef/source/master/kfctl_gcp_basic_auth.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,8 @@ spec:
overlays:
- application
- istio
- db
- db-manager
repoRef:
name: manifests
path: katib/katib-controller
Expand Down
2 changes: 2 additions & 0 deletions kfdef/source/master/kfctl_gcp_iap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,8 @@ spec:
overlays:
- application
- istio
- db
- db-manager
repoRef:
name: manifests
path: katib/katib-controller
Expand Down
2 changes: 2 additions & 0 deletions kfdef/source/master/kfctl_ibm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,8 @@ spec:
overlays:
- application
- istio
- db
- db-manager
- ibm-storage-config
repoRef:
name: manifests
Expand Down
Loading

0 comments on commit 2ae7a5d

Please sign in to comment.