Created
February 3, 2018 13:08
-
-
Save priyankvex/d2b69f0417d7f4321f2d00f34621946b to your computer and use it in GitHub Desktop.
cats-deployment.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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