kubectl get deployments -oyaml

Jmnote bot (토론 | 기여)님의 2020년 11월 2일 (월) 00:41 판 (봇: 자동으로 텍스트 교체 (-<source +<syntaxhighlight ))

1 개요

kubectl get deployments -oyaml

<syntaxhighlight lang='console'> $ kubectl get deployments nginx -oyaml apiVersion: extensions/v1beta1 kind: Deployment metadata:

 annotations:
   deployment.kubernetes.io/revision: "1"
 creationTimestamp: "2019-05-28T01:29:39Z"
 generation: 1
 labels:
   app: nginx
 name: nginx
 namespace: default
 resourceVersion: "10437"
 selfLink: /apis/extensions/v1beta1/namespaces/default/deployments/nginx
 uid: 0fdaef0c-80e8-11e9-98ad-000c29cb3aad

spec:

 progressDeadlineSeconds: 600
 replicas: 1
 revisionHistoryLimit: 10
 selector:
   matchLabels:
     app: nginx
 strategy:
   rollingUpdate:
     maxSurge: 25%
     maxUnavailable: 25%
   type: RollingUpdate
 template:
   metadata:
     creationTimestamp: null
     labels:
       app: nginx
   spec:
     containers:
     - image: nginx
       imagePullPolicy: Always
       name: nginx
       resources: {}
       terminationMessagePath: /dev/termination-log
       terminationMessagePolicy: File
     dnsPolicy: ClusterFirst
     restartPolicy: Always
     schedulerName: default-scheduler
     securityContext: {}
     terminationGracePeriodSeconds: 30

status:

 availableReplicas: 1
 conditions:
 - lastTransitionTime: "2019-05-28T01:29:46Z"
   lastUpdateTime: "2019-05-28T01:29:46Z"
   message: Deployment has minimum availability.
   reason: MinimumReplicasAvailable
   status: "True"
   type: Available
 - lastTransitionTime: "2019-05-28T01:29:39Z"
   lastUpdateTime: "2019-05-28T01:29:46Z"
   message: ReplicaSet "nginx-65f88748fd" has successfully progressed.
   reason: NewReplicaSetAvailable
   status: "True"
   type: Progressing
 observedGeneration: 1
 readyReplicas: 1
 replicas: 1
 updatedReplicas: 1

</source>

2 같이 보기

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}