mirror of
https://git.vectorsigma.ru/public/k3s.git
synced 2026-07-29 11:09:34 +00:00
* Fix to prevent non-root users from accessing storage directory, while allowing non-root users access to subdirectories. Signed-off-by: dereknola <derek.nola@suse.com> * Added integration test Signed-off-by: dereknola <derek.nola@suse.com>
20 lines
361 B
YAML
20 lines
361 B
YAML
apiVersion: v1
|
|
kind: Pod
|
|
metadata:
|
|
name: volume-test
|
|
namespace: default
|
|
spec:
|
|
containers:
|
|
- name: volume-test
|
|
image: nginx:stable-alpine
|
|
imagePullPolicy: IfNotPresent
|
|
volumeMounts:
|
|
- name: volv
|
|
mountPath: /data
|
|
ports:
|
|
- containerPort: 80
|
|
volumes:
|
|
- name: volv
|
|
persistentVolumeClaim:
|
|
claimName: local-path-pvc
|