cat < 8080:31252/TCP,27960:31364/TCP,9090:32141/TCP 21s (admin-k8s:default) root@k8s-m:~# # 게임파드가 배포된 노드의 IP 확인 QNAME=$(kubectl get pod -l run=quake -o jsonpath='{.items[0].metadata.name}') QNODE=$(kubectl get pod $QNAME -o jsonpath={.spec.nodeName}) QNODEIP=$(kubectl get node $QNODE -o jsonpath={.status.addresses[0].address}) # 게임 접속하기 위한 NodePort QPORT=$(kubectl get service quake -o jsonpath='{.spec.ports[0].nodePort}') # 게임 접속 웹 URL 접속 확인 echo -e "Quake3 Game Web URL = http://$QNODEIP:$QPORT" (admin-k8s:default) root@k8s-m:~# echo -e "Quake3 Game Web URL = http://$QNODEIP:$QPORT" Quake3 Game Web URL = http://192.168.100.102:31252 3 접속 http://192.168.100.102:31252/ NodePort 웹 접속(http) → 화살표키, CTRL키 , ALT키, Space키 4 kubectl delete deploy,svc quake 감사합니다. kubectl expose deployment quake --port=80 --type=LoadBalancer