kubectl proxy

1 개요[ | ]

kubectl proxy
master:~$ kubectl proxy &
[1] 121575
Starting to serve on 127.0.0.1:8001

master:~$ jobs
[1]+  Running                 kubectl proxy &
master:~$ sudo netstat -tnlp | grep kubectl
tcp        0      0 127.0.0.1:8001          0.0.0.0:*               LISTEN      121575/kubectl
master:~$ curl -s 127.0.0.1:8001/api/v1/namespaces
{
  "kind": "NamespaceList",
  "apiVersion": "v1",
  "metadata": {
    "selfLink": "/api/v1/namespaces",
    "resourceVersion": "12604"
  },
  "items": [
    {
      "metadata": {
....
        "finalizers": [
          "kubernetes"
        ]
      },
      "status": {
        "phase": "Active"
      }
    }
  ]
}
master:~$ jobs
[1]+  Running                 kubectl proxy &
master:~$ kill %1
master:~$ 
[1]+  Terminated              kubectl proxy
master:~$ jobs
master:~$

2 같이 보기[ | ]

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