Created
July 30, 2018 16:36
-
-
Save nilesh93/370f31af366facb31f0db009b84f3e7c to your computer and use it in GitHub Desktop.
This file contains 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: extensions/v1beta1 | |
kind: Deployment | |
metadata: | |
name: nfs-busybox | |
spec: | |
replicas: 1 | |
selector: | |
matchLabels: | |
name: nfs-busybox | |
template: | |
metadata: | |
labels: | |
name: nfs-busybox | |
spec: | |
containers: | |
- image: busybox | |
imagePullPolicy: Always | |
name: busybox | |
volumeMounts: | |
# name must match the volume name below | |
- name: my-pvc-nfs | |
mountPath: "/mnt" | |
volumes: | |
- name: my-pvc-nfs | |
persistentVolumeClaim: | |
claimName: nfs |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment