kubectl get -oyaml

1 개요[ | ]

kubectl get -oyaml
  • API 오브젝트를 YAML 형식으로 출력한다.
testuser@localhost:~$ kubectl get ns default
NAME      STATUS   AGE
default   Active   2y29d
testuser@localhost:~$ kubectl get ns default -oyaml
apiVersion: v1
kind: Namespace
metadata:
  creationTimestamp: "2020-02-28T15:55:05Z"
  name: default
  resourceVersion: "143"
  uid: b03b2df8-5a42-11ea-bfd9-42010ab20fe1
spec:
  finalizers:
  - kubernetes
status:
  phase: Active

2 같이 보기[ | ]

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