Skip to content

Instantly share code, notes, and snippets.

@azhuox
Created November 29, 2020 21:21
Show Gist options
  • Save azhuox/7c4ef4c05447e021064148d804474297 to your computer and use it in GitHub Desktop.
Save azhuox/7c4ef4c05447e021064148d804474297 to your computer and use it in GitHub Desktop.
apiVersion: v1
kind: Pod
metadata:
name: nfs-pod
labels:
app: nfs-pods
spec:
volumes:
- name: data-dir
persistentVolumeClaim:
claimName: nfs-pvc
containers:
- name: nginx
image: nginx
volumeMounts:
- name: data-dir
mountPath: "/usr/share/nginx/html"
readOnly: false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment