Skip to content

Commit

Permalink
FIX secrets and mysql app selector for kubeflow install
Browse files Browse the repository at this point in the history
Signed-off-by: Pedro Viana <[email protected]>
  • Loading branch information
pedrovgp committed Feb 6, 2025
1 parent c2b5b52 commit 36e18c7
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 0 deletions.
11 changes: 11 additions & 0 deletions manifests/v1beta1/installs/katib-with-kubeflow/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,17 @@ patches:
kind: Deployment
name: katib-ui
path: patches/istio-sidecar-injection.yaml
# Use mysql secrets, since katib-mysql is not used, only the already existing mysql
- target:
kind: Deployment
name: katib-db-manager
path: patches/katib-db-manager-env.yaml
# Fix select the app mysql
- target:
kind: Service
name: katib-mysql
namespace: kubeflow
path: patches/katib-mysql-service-select-app.yaml

vars:
- fieldref:
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
- op: replace
path: /spec/template/spec/containers/0/env
value:
- name: DB_NAME
value: mysql
- name: DB_USER
valueFrom:
secretKeyRef:
key: username
name: mysql-secret
- name: DB_PASSWORD
valueFrom:
secretKeyRef:
key: password
name: mysql-secret
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
- op: replace
path: /spec/selector
value:
app: mysql

0 comments on commit 36e18c7

Please sign in to comment.