[Kubernetes] Service - NodePort
DevOps/Kubernetes2022. 5. 23. 00:21[Kubernetes] Service - NodePort

✔️ Service - NodePort svc.spec.type ClusterIP: 클러스터 내에서 사용하는 LB NodePort: 클러스터 외부에서 접근하는 포인트 LoadBalancer: 클러스터 외부에서 접근하는 LB vagrant@k8s-node1  ~  kubectl explain svc.spec.type "NodePort" builds on ClusterIP and allocates a port on every node which routes to the same endpoints as the clusterIP. "LoadBalancer" builds on NodePort and creates an external load-balancer (if supported in the current..

[Kubernetes] Service - Service Discovery (2)
DevOps/Kubernetes2022. 5. 21. 01:17[Kubernetes] Service - Service Discovery (2)

✔️ Challenge default NS에 myweb-svc 서비스를 만드시오 dev 라는 NS를 만들어서 nettool 파드를 띄우시오 그렇다면 nettool Pod(dev NS) ↔ myweb-svc SVC(default NS) 어떻게 통신할 것인가 ? vagrant@k8s-node1  kubectl create ns dev namespace/dev created vagrant@k8s-node1  ~/kubespray/inventory/mycluster/group_vars/k8s_cluster  ➦ e7508d7d  kubectl get ns NAME STATUS AGE default Active 4d6h dev Active 3d4h kube-node-lease Active 4d6h kube..

image