Created
January 13, 2017 08:15
-
-
Save hjacobs/448f1aa39bf69bc810ce26a6125997b5 to your computer and use it in GitHub Desktop.
Kubernetes Host Access
This file contains hidden or 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: v1 | |
kind: Pod | |
metadata: | |
name: host-access | |
spec: | |
# use a node selector matching the desired target node | |
nodeSelector: | |
kubernetes.io/hostname: ip-172-31-1-2.eu-central-1.compute.internal | |
containers: | |
- name: shell | |
image: ubuntu:latest | |
command: | |
- sleep | |
- "999999" | |
securityContext: | |
privileged: true | |
volumeMounts: | |
- mountPath: /host-root | |
name: host-root | |
volumes: | |
- name: host-root | |
hostPath: | |
path: / |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment