kubectl get -ojson

Jmnote (토론 | 기여)님의 2022년 3월 29일 (화) 11:13 판 (→‎개요)
(차이) ← 이전 판 | 최신판 (차이) | 다음 판 → (차이)

1 개요[ | ]

kubectl get -ojson
  • API 오브젝트를 JSON 형식으로 출력한다.
testuser@localhost:~$ kubectl get ns default
NAME      STATUS   AGE
default   Active   2y29d
testuser@localhost:~$ kubectl get ns default -ojson
{
    "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 }}