Skip to content

Instantly share code, notes, and snippets.

@gnufied
Created December 19, 2017 19:25
Show Gist options
  • Save gnufied/206c310e879505bf6bf953f38729fd7b to your computer and use it in GitHub Desktop.
Save gnufied/206c310e879505bf6bf953f38729fd7b to your computer and use it in GitHub Desktop.
kind: Pod
apiVersion: v1
metadata:
name: nginx-with-vol
labels:
name: nginx-with-vol
spec:
containers:
- name: nginx-with-vol
image: nginx
ports:
- containerPort: 80
name: "http-server"
volumeMounts:
- mountPath: "/usr/share/nginx/html"
name: pvol
subPath: foo
volumes:
- name: pvol
persistentVolumeClaim:
claimName: "myclaim"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment