(새 문서: ==개요== ;kubectl get endpoints <source lang='console'> $ kubectl get endpoints NAME ENDPOINTS AGE kubernetes 172.17.0.16:8443 1m </source> ---- <source lang='...) |
(→개요) |
||
| (같은 사용자의 중간 판 6개는 보이지 않습니다) | |||
| 1번째 줄: | 1번째 줄: | ||
{{소문자}} | |||
==개요== | ==개요== | ||
;kubectl get ep | |||
;kubectl get endpoints | ;kubectl get endpoints | ||
| 12번째 줄: | 14번째 줄: | ||
NAME ENDPOINTS | NAME ENDPOINTS | ||
hostnames 10.244.0.5:9376,10.244.0.6:9376,10.244.0.7:9376 | hostnames 10.244.0.5:9376,10.244.0.6:9376,10.244.0.7:9376 | ||
</source> | |||
---- | |||
<source lang='console'> | |||
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 | |||
</source> | </source> | ||
==같이 보기== | ==같이 보기== | ||
* [[kubectl]] | * [[kubectl]] | ||
* [[kubectl get]] | |||
* [[kubectl get services]] | |||
* [[kubectl cluster-info]] | |||
* [[엔드포인트]] | |||
==참고== | ==참고== | ||
2019년 5월 28일 (화) 11:02 기준 최신판
1 개요[ | ]
- kubectl get ep
- kubectl get endpoints
Console
Copy
$ kubectl get endpoints
NAME ENDPOINTS AGE
kubernetes 172.17.0.16:8443 1m
Console
Copy
$ kubectl get endpoints hostnames
NAME ENDPOINTS
hostnames 10.244.0.5:9376,10.244.0.6:9376,10.244.0.7:9376
Console
Copy
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 참고[ | ]
편집자 Jmnote
로그인하시면 댓글을 쓸 수 있습니다.