Skip to content

Instantly share code, notes, and snippets.

@priyankvex
Created February 3, 2018 13:08
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/d2b69f0417d7f4321f2d00f34621946b to your computer and use it in GitHub Desktop.
Save priyankvex/d2b69f0417d7f4321f2d00f34621946b to your computer and use it in GitHub Desktop.
cats-deployment.yaml
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: cats-deployment
spec:
replicas: 3
template:
metadata:
labels:
app: cats-deployment
spec:
containers:
- name: cats-deployment
image: nginx:alpine
ports:
- containerPort: 80
volumeMounts:
- name: hostvol
mountPath: /usr/share/nginx/html
volumes:
- name: hostvol
hostPath:
path: /home/docker/cat_volume
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment