Skip to content

Instantly share code, notes, and snippets.

@sylus
Forked from zachomedia/admin-ds.yaml
Created August 25, 2020 03:53
Show Gist options
  • Save sylus/dd68569c35862463649effacdb5eaf92 to your computer and use it in GitHub Desktop.
Save sylus/dd68569c35862463649effacdb5eaf92 to your computer and use it in GitHub Desktop.
Kubernetes Node Shell
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