-
-
Save sylus/dd68569c35862463649effacdb5eaf92 to your computer and use it in GitHub Desktop.
Kubernetes Node Shell
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: apps/v1 | |
kind: DaemonSet | |
metadata: | |
name: sh | |
namespace: kube-system | |
spec: | |
selector: | |
matchLabels: | |
app: sh | |
template: | |
metadata: | |
labels: | |
app: sh | |
spec: | |
hostPID: true | |
hostIPC: true | |
hostNetwork: true | |
containers: | |
- name: sh | |
image: alpine:latest | |
command: ["cat"] | |
tty: true | |
resources: | |
limits: | |
memory: "128Mi" | |
cpu: "100m" | |
securityContext: | |
privileged: true | |
volumeMounts: | |
- name: root | |
mountPath: /mnt | |
volumes: | |
- name: root | |
hostPath: | |
path: / |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment