1 개요[ | ]
- kubectl get -ojson
- API 오브젝트를 JSON 형식으로 출력한다.
Console
Copy
testuser@localhost:~$ kubectl get ns default
NAME STATUS AGE
default Active 2y29d
Console
Copy
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 같이 보기[ | ]
편집자 Jmnote
로그인하시면 댓글을 쓸 수 있습니다.