Created
May 23, 2025 17:16
-
-
Save jrpatterson/5cd2e9084c4f69f97a4ad90f0d378624 to your computer and use it in GitHub Desktop.
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: | |
| name: hello-world-deployment | |
| namespace: jrp | |
| spec: | |
| replicas: 1 | |
| selector: | |
| matchLabels: | |
| app: hello-world | |
| template: | |
| metadata: | |
| labels: | |
| app: hello-world | |
| spec: | |
| containers: | |
| - name: hello-world-container | |
| image: busybox | |
| command: ["/bin/sh", "-c", "echo Hello, World! && sleep 3600"] | |
| volumeMounts: | |
| - name: nfs-volume | |
| mountPath: /mnt/nfs | |
| volumes: | |
| - name: nfs-volume | |
| persistentVolumeClaim: | |
| claimName: csi-nfs | |
| --- | |
| apiVersion: v1 | |
| kind: PersistentVolumeClaim | |
| metadata: | |
| name: csi-nfs | |
| namespace: jrp | |
| spec: | |
| accessModes: | |
| - ReadWriteMany | |
| storageClassName: csi-nfs | |
| resources: | |
| requests: | |
| storage: 1Gi |
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: csi-nfs | |
| namespace: jrp | |
| spec: | |
| accessModes: | |
| - ReadWriteMany | |
| storageClassName: csi-nfs | |
| resources: | |
| requests: | |
| storage: 1Gi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment