Skip to content

Instantly share code, notes, and snippets.

@rupinus85
Created January 10, 2019 08:03
Show Gist options
  • Save rupinus85/d5522638af489c4641e568126c615a9d to your computer and use it in GitHub Desktop.
Save rupinus85/d5522638af489c4641e568126c615a9d to your computer and use it in GitHub Desktop.
# Service 조회 (kubectl get service 명령어 또는 kubectl get svc 명령어는 같은 의미이므로 선택적으로 사용 가능)
# 8081이 Service에 접근하기 위한 Cluster 내부 포트, 30993이 외부 노출 포트 입니다. 외부포트는 직접 설정하지 않고 자동 부여된 경우 30000-32767 사이에서 random 부여 됩니다.
$ kubectl get service
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
gs-spring-boot-docker-service NodePort 10.99.197.147 <none> 8081:30993/TCP 11s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment