CKA

Services

백셀건전지 2021. 9. 2. 09:54
  • 어플리케이션의 안팎에 있는 컴포넌트들과 커뮤니케이션을 가능하게 해줌
  • enable loose coupling between microservices
  • NodePort
    • 노드 IP의 Port를 listen하고 있다가 요청을 뒤의 pod로 전달해줌. 이것이 NodePort
    • TargetPort: pod에 열려있는 port no
    • Port: 서비스 관점에서의 자체 Port
    • 30000에서 32767 사이의 숫자만 선택 가능
    • definition의 spec.type에 NodePort 로 선언
    • Pod나 node의 개수에 관계 없이 service는 하나만 생성
  • ClusterIP
    • cluster 내에 virtual IP 생성하여 통신 가능하게 함
    • definition의 spec.type에 ClusterIP로 선언
  • LoadBalancer
    • definition의 spec.type에 LoadBalancer로 선언

'CKA' 카테고리의 다른 글

Declarative commands  (0) 2021.09.02
Imperative commands  (0) 2021.09.02
Namespace  (0) 2021.09.01
Deployments  (0) 2021.08.31
Kube-proxy  (0) 2021.08.30