"Kubectl expose"의 두 판 사이의 차이

(새 문서: ==개요== ;kubectl expose <source lang='console'> $ kubectl get services NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE kubernetes ClusterIP 10.96.0.1 <none...)
 
21번째 줄: 21번째 줄:
* [[kubectl describe]]
* [[kubectl describe]]
* [[kubectl]]
* [[kubectl]]
* [[Dockerfile EXPOSE]]


[[분류: kubectl]]
[[분류: kubectl]]

2019년 5월 23일 (목) 15:17 판

1 개요

kubectl expose
$ kubectl get services
NAME         TYPE        CLUSTER-IP   EXTERNAL-IP   PORT(S)   AGE
kubernetes   ClusterIP   10.96.0.1    <none>        443/TCP   15s
$ kubectl expose deployment/kubernetes-bootcamp --type="NodePort" --port 8080
service "kubernetes-bootcamp" exposed
$ kubectl get services
NAME                  TYPE        CLUSTER-IP     EXTERNAL-IP   PORT(S)          AGE
kubernetes            ClusterIP   10.96.0.1      <none>        443/TCP          22s
kubernetes-bootcamp   NodePort    10.100.84.34   <none>        8080:31392/TCP   5s

2 같이 보기

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