"Kubectl get -ojson"의 두 판 사이의 차이

(새 문서: ==개요== {{소문자}} ;kubectl get -ojson * API 오브젝트를 JSON 형식으로 출력한다. <syntaxhighlight lang='console'> testuser@localhost:~# kubectl get ns default NAME...)
 
 
5번째 줄: 5번째 줄:


<syntaxhighlight lang='console'>
<syntaxhighlight lang='console'>
testuser@localhost:~# kubectl get ns default
testuser@localhost:~$ kubectl get ns default
NAME      STATUS  AGE
NAME      STATUS  AGE
default  Active  2y29d
default  Active  2y29d
</syntaxhighlight>
</syntaxhighlight>
<syntaxhighlight lang='console'>
<syntaxhighlight lang='console'>
testuser@localhost:~# kubectl get ns default -ojson
testuser@localhost:~$ kubectl get ns default -ojson
{
{
     "apiVersion": "v1",
     "apiVersion": "v1",

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 }}