"Kubectl proxy"의 두 판 사이의 차이

3번째 줄: 3번째 줄:
;kubectl proxy
;kubectl proxy
<source lang='console'>
<source lang='console'>
$ kubectl proxy
master:~$ kubectl proxy &
Starting to serve on 127.0.0.1:8001
[1] 121575
master:~$ Starting to serve on 127.0.0.1:8001
 
master:~$ sudo netstat -tnlp | grep kubectl
tcp        0      0 127.0.0.1:8001          0.0.0.0:*              LISTEN      121575/kubectl 
</source>
</source>
:→ 계속 실행중
* 다른 세션에서...
<source lang='console'>
<source lang='console'>
$ curl http://localhost:8001/version
$ curl -s 127.0.0.1:8001/api/v1/namespaces
{
{
   "major": "1",
   "kind": "NamespaceList",
   "minor": "10",
   "apiVersion": "v1",
   "gitVersion": "v1.10.0",
   "metadata": {
  "gitCommit": "fc32d2f3698e36b93322a3465f63a14e9f0eaead",
    "selfLink": "/api/v1/namespaces",
  "gitTreeState": "clean",
    "resourceVersion": "12604"
   "buildDate": "2018-04-10T12:46:31Z",
  },
  "goVersion": "go1.9.4",
   "items": [
  "compiler": "gc",
    {
  "platform": "linux/amd64"
      "metadata": {
....
        "finalizers": [
          "kubernetes"
        ]
      },
      "status": {
        "phase": "Active"
      }
    }
  ]
}
}
</source>
</source>

2019년 5월 28일 (화) 17:07 판

1 개요

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

master:~$ sudo netstat -tnlp | grep kubectl
tcp        0      0 127.0.0.1:8001          0.0.0.0:*               LISTEN      121575/kubectl
$ 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"
      }
    }
  ]
}

2 같이 보기

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