Created
June 2, 2023 12:55
-
-
Save developer-sdk/00d244faa1966216cb8440d522dcf3c3 to your computer and use it in GitHub Desktop.
This file contains 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: | |
name: node-shell | |
namespace: test-namespace | |
spec: | |
volumes: | |
- name: kube-api-access-l47gj | |
projected: | |
sources: | |
- serviceAccountToken: | |
expirationSeconds: 3607 | |
path: token | |
- configMap: | |
name: kube-root-ca.crt | |
items: | |
- key: ca.crt | |
path: ca.crt | |
- downwardAPI: | |
items: | |
- path: namespace | |
fieldRef: | |
apiVersion: v1 | |
fieldPath: metadata.namespace | |
defaultMode: 420 | |
containers: | |
- name: shell | |
image: docker.io/alpine:3.16.0 | |
command: | |
- nsenter | |
args: | |
- '-t' | |
- '1' | |
- '-m' | |
- '-u' | |
- '-i' | |
- '-n' | |
- sleep | |
- '14000' | |
resources: {} | |
volumeMounts: | |
- name: kube-api-access-l47gj | |
readOnly: true | |
mountPath: /var/run/secrets/kubernetes.io/serviceaccount | |
terminationMessagePath: /dev/termination-log | |
terminationMessagePolicy: File | |
imagePullPolicy: IfNotPresent | |
securityContext: | |
privileged: true | |
restartPolicy: Never | |
terminationGracePeriodSeconds: 0 | |
dnsPolicy: ClusterFirst | |
serviceAccountName: default | |
nodeName: 접근하고자하는-서버명 | |
hostNetwork: true | |
hostPID: true | |
hostIPC: true | |
securityContext: {} | |
schedulerName: default-scheduler | |
tolerations: | |
- operator: Exists | |
priorityClassName: system-node-critical | |
priority: 2000001000 | |
enableServiceLinks: true | |
preemptionPolicy: PreemptLowerPriority |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment