Advertisement
supermaca

Untitled

Mar 17th, 2023
763
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 2.62 KB | None | 0 0
  1. #171 kubectl get pod/demo -o yaml
  2. apiVersion: v1
  3. kind: Pod
  4. metadata:
  5.   creationTimestamp: "2023-03-18T01:35:58Z"
  6.   labels:
  7.     run: demo2
  8.   name: demo2
  9.   namespace: default
  10.   resourceVersion: "120652"
  11.   uid: 22802fea-742f-48d6-9055-a6eb864e4a08
  12. spec:
  13.   containers:
  14.   - image: httpd
  15.     imagePullPolicy: Always
  16.     name: demo2
  17.     resources: {}
  18.     terminationMessagePath: /dev/termination-log
  19.     terminationMessagePolicy: File
  20.     volumeMounts:
  21.     - mountPath: /var/run/secrets/kubernetes.io/serviceaccount
  22.       name: kube-api-access-qfmvq
  23.       readOnly: true
  24.   dnsPolicy: ClusterFirst
  25.   enableServiceLinks: true
  26.   nodeName: minikube
  27.   preemptionPolicy: PreemptLowerPriority
  28.   priority: 0
  29.   restartPolicy: Always
  30.   schedulerName: default-scheduler
  31.   securityContext: {}
  32.   serviceAccount: default
  33.   serviceAccountName: default
  34.   terminationGracePeriodSeconds: 30
  35.   tolerations:
  36.   - effect: NoExecute
  37.     key: node.kubernetes.io/not-ready
  38.     operator: Exists
  39.     tolerationSeconds: 300
  40.   - effect: NoExecute
  41.     key: node.kubernetes.io/unreachable
  42.     operator: Exists
  43.     tolerationSeconds: 300
  44.   volumes:
  45.   - name: kube-api-access-qfmvq
  46.     projected:
  47.       defaultMode: 420
  48.       sources:
  49.       - serviceAccountToken:
  50.           expirationSeconds: 3607
  51.           path: token
  52.       - configMap:
  53.           items:
  54.           - key: ca.crt
  55.             path: ca.crt
  56.           name: kube-root-ca.crt
  57.       - downwardAPI:
  58.           items:
  59.           - fieldRef:
  60.               apiVersion: v1
  61.               fieldPath: metadata.namespace
  62.             path: namespace
  63. status:
  64.   conditions:
  65.   - lastProbeTime: null
  66.     lastTransitionTime: "2023-03-18T01:35:58Z"
  67.     status: "True"
  68.     type: Initialized
  69.   - lastProbeTime: null
  70.     lastTransitionTime: "2023-03-18T01:36:02Z"
  71.     status: "True"
  72.     type: Ready
  73.   - lastProbeTime: null
  74.     lastTransitionTime: "2023-03-18T01:36:02Z"
  75.     status: "True"
  76.     type: ContainersReady
  77.   - lastProbeTime: null
  78.     lastTransitionTime: "2023-03-18T01:35:58Z"
  79.     status: "True"
  80.     type: PodScheduled
  81.   containerStatuses:
  82.   - containerID: docker://9c386aa67863e2322d93550963aac6dfe8d6a6ddef7bd5fbaaeefe6652875d47
  83.     image: httpd:latest
  84.     imageID: docker-pullable://httpd@sha256:76618ddd53f315a1436a56dc84ad57032e1b2123f2f6489ce9c575c4b280c4f4
  85.     lastState: {}
  86.     name: demo2
  87.     ready: true
  88.     restartCount: 0
  89.     started: true
  90.     state:
  91.       running:
  92.         startedAt: "2023-03-18T01:36:01Z"
  93.   hostIP: 192.168.49.2
  94.   phase: Running
  95.   podIP: 172.17.0.12
  96.   podIPs:
  97.   - ip: 172.17.0.12
  98.   qosClass: BestEffort
  99.   startTime: "2023-03-18T01:35:58Z"
  100.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement