연두색연필
LimePencil's Log
연두색연필
전체 방문자
오늘
어제

About Me

  • GitHub
  • Instagram
  • Gmail

인기 글

  • 분류 전체보기 (70)
    • Machine Learning (3)
      • MNIST (2)
    • PS & Algorithm (9)
    • Web (4)
      • HTML (1)
      • JavaScript (3)
    • Rust (2)
      • The Rust Programming Langua.. (2)
    • 논문 리뷰 (12)
      • Reinforcement Learning (10)
      • Computer Vision (2)
    • DevOps (17)
      • Docker (9)
      • Kubernetes (8)
    • Development (6)
      • SQL (6)
    • 잡다한 것들 (15)
      • 부스트캠프 AI Tech 4기 (13)

최근 댓글

Tag

  • 도커
  • ML
  • Python
  • 부스트캠프
  • 쿠버네티스
  • Kubernetes
  • 백준
  • K8s
  • docker
  • 파이썬
01-21 20:42
hELLO · Designed By 정상우.
연두색연필

LimePencil's Log

DevOps/Kubernetes

[Kubernetes 배우기] Section 7. Services

2024. 1. 9. 12:53

Kubernetes for the Absolute Beginners - Hands-on | Udemy

 

Services enable loose coupling between microservice Kubernetes setups.

  • It forwards requests to a port to another port

Types of services:

  1. NodePort: internal port accessible to external port
  2. ClusterIP: virtual IP inside a cluster to connect applications
  3. LoadBalancer: distribute work among different pods

 

NodePort

NodePort consists of 3 ports where they are connected all together

  1. TargetPort: port of the pod
  2. Port: port of the service
  3. NodePort: port of the node

To link the service to the pod, the section under the “label” of the pod must go under the selector section of the service definition file.

 

kubectl get services: get a list of services in Kubernetes

 

A random algorithm balances the request load when multiple pods of the same label are assigned to the service.

  • when the pods are distributed across different nodes, Kubernetes automatically configures service for all the nodes

 

ClusterIP

Services can be created for each application so that Kubernetes will configure which pod of the service will be connected to another pod of other services.

  • This way, the user does not have to configure for IP address of each pod
  • Effective for microservices

 

LoadBalancer

Setting the service type as LoadBalancer automatically configures one external IP/domain for the end user to easily access cloud services like GCP, Azure, and AWS.

  • instead of having 4 URLs for each of the pods, a single load balancer can give the user access to a single URL.

'DevOps > Kubernetes' 카테고리의 다른 글

[Kubernetes 배우기] Section 9. Kubernetes on Cloud  (0) 2024.01.09
[Kubernetes 배우기] Section 8. Microservices Architecture  (0) 2024.01.09
[Kubernetes 배우기] Section 6. Networking in Kubernetes  (0) 2024.01.09
[Kubernetes 배우기] Section 5. Kubernetes Concepts - Pods, ReplicaSets, Deployments  (1) 2024.01.09
[Kubernetes 배우기] Section 4. YAML Introduction  (0) 2024.01.09
    'DevOps/Kubernetes' 카테고리의 다른 글
    • [Kubernetes 배우기] Section 9. Kubernetes on Cloud
    • [Kubernetes 배우기] Section 8. Microservices Architecture
    • [Kubernetes 배우기] Section 6. Networking in Kubernetes
    • [Kubernetes 배우기] Section 5. Kubernetes Concepts - Pods, ReplicaSets, Deployments
    연두색연필
    연두색연필
    ML, Programming, PS, 삶의 순간을 기록

    티스토리툴바