Skip to content

Instantly share code, notes, and snippets.

@vamsijakkula
Created May 8, 2020 12:27
Show Gist options
  • Save vamsijakkula/3fdc09906ecab7c74bf2fc2572892686 to your computer and use it in GitHub Desktop.
Save vamsijakkula/3fdc09906ecab7c74bf2fc2572892686 to your computer and use it in GitHub Desktop.
nginx
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
run: nginx
name: nginx-deploy
spec:
replicas: 1
selector:
matchLabels:
run: nginx
template:
metadata:
labels:
run: nginx
spec:
volumes:
- name: local-hostpath-pvc
persistentVolumeClaim:
claimName: local-hostpath-pvc
containers:
- image: nginx
name: nginx
volumeMounts:
- name: local-hostpath-pvc
mountPath: /usr/share/nginx/html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment