Created
February 4, 2018 14:11
-
-
Save priyankvex/d49696ba9b349d94bf3638251d8388a7 to your computer and use it in GitHub Desktop.
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: 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