Skip to content

Instantly share code, notes, and snippets.

@anjannath
Created April 11, 2023 11:54
Show Gist options
  • Save anjannath/17ed906bc675c919aabc4328c1e91762 to your computer and use it in GitHub Desktop.
Save anjannath/17ed906bc675c919aabc4328c1e91762 to your computer and use it in GitHub Desktop.
pv_test_crc_dynamic
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: testpvc-claim
namespace: testpvc
spec:
accessModes:
- ReadWriteMany
resources:
requests:
storage: 3Gi
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: my-dep
name: my-dep
namespace: testpvc
spec:
replicas: 1
selector:
matchLabels:
app: my-dep
template:
metadata:
labels:
app: my-dep
spec:
volumes:
- name: testvol
persistentVolumeClaim:
claimName: testpvc-claim
containers:
- image: busybox
name: busybox-pod
command: ["/bin/sh", "-c"]
args: [ "tail -f /dev/null" ]
volumeMounts:
- mountPath: /mnt/testpvc
name: testvol
securityContext:
allowPrivilegeEscalation: false
securityContext:
runAsNonRoot: true
seccompProfile:
type: RuntimeDefault
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment