Skip to content

Commit

Permalink
Merge pull request #41 from mitou/fix/config-mount-point
Browse files Browse the repository at this point in the history
[修正] secretをマウントすると書き込み権限がなくmattermostが落ちるため修正
  • Loading branch information
kyasbal authored Apr 27, 2024
2 parents 7362510 + cc3f57f commit 8798190
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions kubernetes/mattermost/mattermost.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,18 @@ spec:
serviceAccountName: mattermost-primary
readinessGates:
- conditionType: bleve-ready
initContainers:
- name: secret-placer
image: busybox
command: ["/bin/sh","-c"]
args:
- cp /secret/config.json /config/config.json
&& chown 2000:2000 /config/config.json
volumeMounts:
- name: config
mountPath: /config
- name: secret
mountPath: /secret
containers:
- name: mattermost
image: mattermost/mattermost-team-edition:release-9.1
Expand Down Expand Up @@ -82,8 +94,10 @@ spec:
mountPath: /mattermost/bleve/
volumes:
- name: config
secret:
secretName: gcp-secret-config
emptyDir: {}
- name: bleve
emptyDir:
sizeLimit: 2Gi
- name: secret
secret:
secretName: gcp-secret-config

0 comments on commit 8798190

Please sign in to comment.