Skip to content

Instantly share code, notes, and snippets.

@priyankvex
Created February 4, 2018 14:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save priyankvex/d49696ba9b349d94bf3638251d8388a7 to your computer and use it in GitHub Desktop.
Save priyankvex/d49696ba9b349d94bf3638251d8388a7 to your computer and use it in GitHub Desktop.
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: dogs-deployment
spec:
replicas: 3
template:
metadata:
labels:
app: dogs-deployment
spec:
containers:
- name: dogs-deployment
image: nginx:alpine
ports:
- containerPort: 80
volumeMounts:
- name: hostvol
mountPath: /usr/share/nginx/html
volumes:
- name: hostvol
hostPath:
path: /home/docker/dog_volume
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment