Created
April 11, 2023 11:54
-
-
Save anjannath/17ed906bc675c919aabc4328c1e91762 to your computer and use it in GitHub Desktop.
pv_test_crc_dynamic
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: v1 | |
kind: PersistentVolumeClaim | |
metadata: | |
name: testpvc-claim | |
namespace: testpvc | |
spec: | |
accessModes: | |
- ReadWriteMany | |
resources: | |
requests: | |
storage: 3Gi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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