Last active
January 14, 2018 22:33
-
-
Save astashov/2b4869d8c7899ad3a48486dffe20c59a to your computer and use it in GitHub Desktop.
Kubernetes mounted host dir
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: 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