apiVersion: v1
kind: Pod
metadata:
name: pod-name
spec:
containers:
...
securityContext:
privileged: true
volumeMounts:
- mountPath: /data
name: hostpath-privileged
...
securityContext: {}
volumes:
- name: hostpath-privileged
persistentVolumeClaim:
claimName: task-pvc-volume
apiVersion: v1
kind: Pod
metadata:
name: pod-name
1
spec:
containers:
...
securityContext:
privileged: true
2
volumeMounts:
- mountPath: /data
3
name: hostpath-privileged
...
securityContext: {}
volumes:
- name: hostpath-privileged
persistentVolumeClaim:
claimName: task-pvc-volume
4
Copy to Clipboard
Copied!
Toggle word wrap
Toggle overflow