Skip to content

Commit

Permalink
CEML-293: Set PodSecurityContext for mysql (#151)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexpirogovski authored Dec 8, 2024
1 parent 21e97fd commit c489cac
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/mlrun-ce/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v1
name: mlrun-ce
version: 0.7.1-rc3
version: 0.7.1-rc4
description: MLRun Open Source Stack
home: https://iguazio.com
icon: https://www.iguazio.com/wp-content/uploads/2019/10/Iguazio-Logo.png
Expand Down
4 changes: 4 additions & 0 deletions charts/mlrun-ce/templates/pipelines/deployments/mysql.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ spec:
app: mysql
application-crd-id: kubeflow-pipelines
spec:
{{- if .Values.pipelines.db.securityContext }}
securityContext:
{{ .Values.pipelines.db.securityContext | toYaml | indent 8 }}
{{- end }}
containers:
- args:
{{- if semverCompare "~5.7" (.Values.pipelines.images.mysql.tag | toString) }}
Expand Down
5 changes: 5 additions & 0 deletions charts/mlrun-ce/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -299,6 +299,11 @@ pipelines:
# effect: NoSchedule
db:
username: root
securityContext:
runAsUser: 1001
runAsGroup: 1001
fsGroup: 1001
fsGroupChangePolicy: OnRootMismatch
minio:
enabled: true
accessKey: "minio"
Expand Down

0 comments on commit c489cac

Please sign in to comment.