Created
January 13, 2017 08:15
-
-
Save hjacobs/448f1aa39bf69bc810ce26a6125997b5 to your computer and use it in GitHub Desktop.
Revisions
-
hjacobs created this gist
Jan 13, 2017 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,23 @@ 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: /