Created
November 20, 2019 10:55
-
-
Save abhisek/78dc3f1f15816307457bc44cf51d2de3 to your computer and use it in GitHub Desktop.
Pod with Node 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: | |
labels: | |
run: ubuntu-1 | |
name: ubuntu-1 | |
spec: | |
hostPID: true | |
hostIPC: true | |
hostNetwork: true | |
volumes: | |
- name: host-fs | |
hostPath: | |
path: / | |
containers: | |
- image: ubuntu | |
name: ubuntu-1 | |
command: ["/bin/sh", "-c", "sleep infinity"] | |
securityContext: | |
privileged: true | |
allowPrivilegeEscalation: true | |
volumeMounts: | |
- name: host-fs | |
mountPath: /host | |
restartPolicy: Never | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment