---
apiVersion: v1
kind: Pod
metadata:
  name: volume-test
  namespace: default
spec:
  containers:
  - name: volume-test
    image: busybox
    args:
    - sleep
    - "1000000"
    volumeMounts:
    - name: linear
      mountPath: /linear
    ports:
    - containerPort: 80
    resources:
      limits:
        cpu: 100m
        memory: 100M
    securityContext:
      runAsNonRoot: true
      runAsUser: 1000
  volumes:
  - name: linear
    persistentVolumeClaim:
      claimName: lvm-pvc-linear