kubectl get endpoints

Jmnote (토론 | 기여)님의 2019년 5월 28일 (화) 11:02 판 (→‎개요)
(차이) ← 이전 판 | 최신판 (차이) | 다음 판 → (차이)

1 개요[ | ]

kubectl get ep
kubectl get endpoints
$ kubectl get endpoints
NAME         ENDPOINTS          AGE
kubernetes   172.17.0.16:8443   1m

$ kubectl get endpoints hostnames
NAME        ENDPOINTS
hostnames   10.244.0.5:9376,10.244.0.6:9376,10.244.0.7:9376

testuser@localhost:~$ kubectl create deployment nginx --image=nginx
deployment.apps/nginx created
testuser@localhost:~$ kubectl expose deployment nginx --type=NodePort --port 80
service/nginx exposed
testuser@localhost:~$ kubectl get ep nginx
NAME    ENDPOINTS            AGE
nginx   192.168.235.136:80   6s
testuser@localhost:~$ kubectl scale deployment nginx --replicas=3
deployment.extensions/nginx scaled
testuser@localhost:~$ kubectl get deployments nginx 
NAME    READY   UP-TO-DATE   AVAILABLE   AGE
nginx   3/3     3            3           64s
testuser@localhost:~$ kubectl get ep nginx
NAME    ENDPOINTS                                                AGE
nginx   192.168.189.65:80,192.168.219.68:80,192.168.235.136:80   55s

2 같이 보기[ | ]

3 참고[ | ]

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