Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save jrpatterson/5cd2e9084c4f69f97a4ad90f0d378624 to your computer and use it in GitHub Desktop.

Select an option

Save jrpatterson/5cd2e9084c4f69f97a4ad90f0d378624 to your computer and use it in GitHub Desktop.
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
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