Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[修正] secretをマウントすると書き込み権限がなくmattermostが落ちるため修正 #41

Merged
merged 1 commit into from
Apr 27, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading