Skip to content

Instantly share code, notes, and snippets.

@gswallow
Last active May 29, 2019 18:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gswallow/4970b734ab4bfdda0fae29db26895df9 to your computer and use it in GitHub Desktop.
Save gswallow/4970b734ab4bfdda0fae29db26895df9 to your computer and use it in GitHub Desktop.
Greg is a BAD, BAD MAN!
apiVersion: v1
kind: Pod
metadata:
labels:
app: ssh-cheat
name: ssh-cheat
namespace: kube-system
spec:
containers:
- command:
- /bin/sh
args:
- -c
- "mkdir -p /target && /usr/bin/tail -f /dev/null"
image: alpine:latest
imagePullPolicy: IfNotPresent
name: ssh-cheat
resources: {}
securityContext:
privileged: true
procMount: Default
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
volumeMounts:
- mountPath: /target
name: host-root
readOnly: false
dnsPolicy: ClusterFirst
hostPID: true
priority: 0
restartPolicy: Always
schedulerName: default-scheduler
securityContext: {}
serviceAccount: default
serviceAccountName: default
terminationGracePeriodSeconds: 30
volumes:
- name: host-root
hostPath:
path: "/"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment