Skip to content

1. 주요 사용방법 _ 조회

kimsanghoon1 edited this page Mar 19, 2019 · 3 revisions

선택한 Namespace와 리소스를 기준으로 결과를 조회하여 표시한다.

조회 방법

  1. Namespace를 선택하여준다. (기본 전체조회)
  2. 조회 할 리소스를 선택한다. (기본 Pod조회)

결과 화면

podresult

1. Namespace Default를 기준으로 Pod를 조회한 화면

아래의 Kubernetes 명령어와 같다.
# pod 조회
example@ex~$ kubectl get po
NAME                                       READY   STATUS    RESTARTS   AGE
deploy-monitor-676768f57b-vksn2            2/2     Running   0          4d
pod-monitor-576ddd78b-xf7rm                2/2     Running   0          6d
service-kube-controller-5f68c6b48d-vgp9n   2/2     Running   0          4d
service-monitor-6bc8dd946-pn2g7            2/2     Running   0          6d
serviceapi-bb7d6458b-nmznt                 2/2     Running   0          4d
serviceui-679b6b749f-lpjl4                 2/2     Running   0          10d

deployresult

2. Namespace Default를 기준으로 Deployment를 조회한 화면

아래의 Kubernetes 명령어와 같다.
# deployment 조회
example@ex~$ kubectl get deploy
NAME                      DESIRED   CURRENT   UP-TO-DATE   AVAILABLE   AGE
deploy-monitor            1         1         1            1           6d
pod-monitor               1         1         1            1           6d
service-kube-controller   1         1         1            1           6d
service-monitor           1         1         1            1           6d
serviceapi                1         1         1            1           6d
serviceui                 1         1         1            1           10d

svcresult

3. Namespace Default를 기준으로 Service를 조회한 화면

아래의 Kubernetes 명령어와 같다.
# service 조회
example@ex~$ kubectl get svc
NAME         TYPE           CLUSTER-IP       EXTERNAL-IP            PORT(S)          AGE
kubernetes   ClusterIP      CLUSTER-IP       <none>                 443/TCP          26d
serviceapi   ClusterIP      CLUSTER-IP       <none>                 8080/TCP         6d
serviceui    LoadBalancer   LoadBalancer     <none>                 8080:30856/TCP   10d