mirror of
https://github.com/k3s-io/k3s.git
synced 2024-06-07 19:41:36 +00:00
a1d7a62493
* 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
|