Skip to content

Instantly share code, notes, and snippets.

@devinburnette
Last active September 7, 2017 04:32
Show Gist options
  • Save devinburnette/30493b8149fea9169bb6f724f6b19102 to your computer and use it in GitHub Desktop.
Save devinburnette/30493b8149fea9169bb6f724f6b19102 to your computer and use it in GitHub Desktop.
Kubernetes Host Path Volume Mount Example
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