Last active
September 7, 2017 04:32
-
-
Save devinburnette/30493b8149fea9169bb6f724f6b19102 to your computer and use it in GitHub Desktop.
Kubernetes Host Path Volume Mount Example
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
template: | |
metadata: | |
name: resque-web | |
labels: | |
component: resque-web | |
stack: local | |
logs: "true" | |
deployTime: {{DEPLOY_TIME}} | |
spec: | |
volumes: | |
- name: source-code | |
hostPath: | |
path: '/mnt/sda1/data/source-code' | |
containers: | |
- name: resque-web | |
image: ennexa/resque-web:latest | |
imagePullPolicy: IfNotPresent | |
ports: | |
- containerPort: 5678 | |
args: | |
- -r | |
- redis://redis:6379 | |
volumeMounts: | |
- mountPath: '/var/www/html' | |
name: source-code | |
imagePullSecrets: | |
- name: awssecret |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment