Skip to content

Instantly share code, notes, and snippets.

@leoh0
Created August 18, 2020 14:42
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 leoh0/c9c761f4e8ad9ed0f7e9c02a6b6b5ee5 to your computer and use it in GitHub Desktop.
Save leoh0/c9c761f4e8ad9ed0f7e9c02a6b6b5ee5 to your computer and use it in GitHub Desktop.
apiVersion: v1
kind: Pod
metadata:
name: ttt
namespace: default
spec:
containers:
- command:
- nsenter
- --mount=/proc/1/ns/mnt
- --
- su
- '-'
image: alpine:3.7
imagePullPolicy: IfNotPresent
name: alpine
resources:
requests:
cpu: 10m
securityContext:
privileged: true
procMount: Default
stdin: true
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
tty: true
dnsPolicy: ClusterFirst
hostNetwork: true
hostPID: true
tolerations:
- effect: NoSchedule
key: node-role.kubernetes.io/master
- effect: NoExecute
key: node.kubernetes.io/not-ready
operator: Exists
tolerationSeconds: 300
- effect: NoExecute
key: node.kubernetes.io/unreachable
operator: Exists
tolerationSeconds: 300
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment