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
로그인하시면 댓글을 쓸 수 있습니다.