Skip to content

Instantly share code, notes, and snippets.

@astashov
Last active January 14, 2018 22:33
Show Gist options
  • Save astashov/2b4869d8c7899ad3a48486dffe20c59a to your computer and use it in GitHub Desktop.
Save astashov/2b4869d8c7899ad3a48486dffe20c59a to your computer and use it in GitHub Desktop.
Kubernetes mounted host dir
apiVersion: apps/v1beta1
kind: Deployment
metadata:
name: app-deployment
spec:
replicas: 1
template:
metadata:
labels:
app: app
spec:
containers:
- name: app-pod
image: example/app:v1
volumeMounts:
- mountPath: /path/on/node/target
name: app-storage
volumes:
- name: app-storage
hostPath:
path: "/path/on/host/source"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment