Skip to content

Commit

Permalink
fix:#615
Browse files Browse the repository at this point in the history
  • Loading branch information
xhkyyy authored and calind committed Oct 8, 2021
1 parent dc96fa2 commit 4931049
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions deploy/charts/mysql-operator/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,6 @@ spec:
secretRef:
name: {{ template "mysql-operator.orc-secret-name" . }}
volumeMounts:
- name: data
mountPath: /var/lib/orchestrator/
- name: config
mountPath: /usr/local/share/orchestrator/templates/
livenessProbe:
Expand All @@ -120,6 +118,13 @@ spec:
- name: data
emptyDir: {}
{{- end }}
initContainers:
- name: init-mount
image: busybox:1.34.0
command: ['sh', '-c', "chown -R 777:777 /var/lib/orchestrator"]
volumeMounts:
- name: data
mountPath: /var/lib/orchestrator/

# security context to mount corectly the volume for orc
securityContext:
Expand Down

0 comments on commit 4931049

Please sign in to comment.