Last active
July 19, 2018 11:29
-
-
Save gokusenz/0641237619e241cad61d3602de409f4f to your computer and use it in GitHub Desktop.
edit permission pvc
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| kubectl create --filename=- <<'EOF' | |
| apiVersion: batch/v1 | |
| kind: Job | |
| metadata: {name: grafana-chown, namespace: monitoring} | |
| spec: | |
| template: | |
| spec: | |
| restartPolicy: Never | |
| containers: | |
| - name: grafana-chown | |
| command: [chown, -R, "472:472", /var/lib/grafana] | |
| image: busybox:latest | |
| volumeMounts: | |
| - {name: storage, mountPath: /var/lib/grafana} | |
| volumes: | |
| - name: storage | |
| persistentVolumeClaim: | |
| claimName: grafana-data | |
| EOF |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment