22 lines
409 B
YAML
22 lines
409 B
YAML
apiVersion: v1
|
|
kind: Pod
|
|
metadata:
|
|
name: fix-perms
|
|
namespace: test-nas
|
|
spec:
|
|
nodeSelector:
|
|
nodegroup: nd
|
|
restartPolicy: Never
|
|
containers:
|
|
- name: chown
|
|
image: busybox
|
|
command: ["sh", "-c", "chown -R 1001:1001 /data && chmod 2750 /data"]
|
|
volumeMounts:
|
|
- name: exa-vol
|
|
mountPath: /data
|
|
volumes:
|
|
- name: exa-vol
|
|
persistentVolumeClaim:
|
|
claimName: test-nas-pvc
|
|
|