최신 쿠버네티스 및 도커 버전에서는 동일한 PID 네임스페이스를 공유할 수 있지만 이 기능은 기본적으로 활성화돼 있지 않다.
Kind | Version |
---|---|
POD | v1 |
Service | v1 |
ReplicaSet | apps/v1 |
Deployment | apps/v1 |
imkunyoung@master-1:~$ kubectl get pod http-go-59dc99ffff-4hb5p -o yaml
apiVersion: v1
kind: Pod
metadata:
creationTimestamp: "2023-07-31T23:27:16Z"
generateName: http-go-59dc99ffff-
labels:
app: http-go
pod-template-hash: 59dc99ffff
name: http-go-59dc99ffff-4hb5p
namespace: default
ownerReferences:
- apiVersion: apps/v1
blockOwnerDeletion: true
controller: true
kind: ReplicaSet
name: http-go-59dc99ffff
uid: 91eeeffc-f70e-477b-b9f8-f600b4802f6f
resourceVersion: "3621697"
uid: e7031742-b187-426a-ab7e-d5b3487ff1b6
spec:
containers:
- image: gasbugs/http-go
imagePullPolicy: Always
name: http-go
resources: {}
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
volumeMounts:
- mountPath: /var/run/secrets/kubernetes.io/serviceaccount
name: kube-api-access-7ft2f
readOnly: true
dnsPolicy: ClusterFirst
enableServiceLinks: true
nodeName: worker-3
preemptionPolicy: PreemptLowerPriority
priority: 0
restartPolicy: Always
schedulerName: default-scheduler
securityContext: {}
serviceAccount: default
serviceAccountName: default
terminationGracePeriodSeconds: 30
tolerations:
- effect: NoExecute
key: node.kubernetes.io/not-ready
operator: Exists
tolerationSeconds: 300
- effect: NoExecute
key: node.kubernetes.io/unreachable
operator: Exists
tolerationSeconds: 300
volumes:
- name: kube-api-access-7ft2f
projected:
defaultMode: 420
sources:
- serviceAccountToken:
expirationSeconds: 3607
path: token
- configMap:
items:
- key: ca.crt
path: ca.crt
name: kube-root-ca.crt
- downwardAPI:
items:
- fieldRef:
apiVersion: v1
fieldPath: metadata.namespace
path: namespace
status:
conditions:
- lastProbeTime: null
lastTransitionTime: "2023-07-31T23:27:16Z"
status: "True"
type: Initialized
- lastProbeTime: null
lastTransitionTime: "2023-07-31T23:27:19Z"
status: "True"
type: Ready
- lastProbeTime: null
lastTransitionTime: "2023-07-31T23:27:19Z"
status: "True"
type: ContainersReady
- lastProbeTime: null
lastTransitionTime: "2023-07-31T23:27:16Z"
status: "True"
type: PodScheduled
containerStatuses:
- containerID: containerd://aa75273f918c96448b6f1798452ea8b6fa6a0f3928500fb193ad65e7bf20b201
image: docker.io/gasbugs/http-go:latest
imageID: docker.io/gasbugs/http-go@sha256:5cf243f818caf7a750761cfe2ff822a284d6eb459356318d3f0bd4b1efe141d9
lastState: {}
name: http-go
ready: true
restartCount: 0
started: true
state:
running:
startedAt: "2023-07-31T23:27:18Z"
hostIP: 10.138.0.5
phase: Running
podIP: 10.0.1.123
podIPs:
- ip: 10.0.1.123
qosClass: BestEffort
startTime: "2023-07-31T23:27:16Z"