-
Notifications
You must be signed in to change notification settings - Fork 2
1. 주요 사용방법 _ 조회
kimsanghoon1 edited this page Mar 19, 2019
·
3 revisions
- Namespace를 선택하여준다. (기본 전체조회)
- 조회 할 리소스를 선택한다. (기본 Pod조회)
# 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
# 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
# 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