본문 바로가기
IT/Knowledge

[K8S] Ingress 개념

by 성준하이 2024. 3. 17.
반응형

Ingress 란,

쿠버네티스 Ingress란 HTTP(S) 기반의 L7 로드밸런싱 기능을 제공하는 컴포넌트이다.

 

L7 에 대해서는 아래 참고 포스팅을 참고 바란다.

 

https://kubernetes.io/docs/concepts/services-networking/ingress/

 

Ingress

Make your HTTP (or HTTPS) network service available using a protocol-aware configuration mechanism, that understands web concepts like URIs, hostnames, paths, and more. The Ingress concept lets you map traffic to different backends based on rules you defin

kubernetes.io

 

공식 홈페이지에서는 이와 같이 기술이 되어있다.

짧게 말하면 외부에서 K8S 내부로 들어오는 네트워크 요청을 어떻게 처리할지 결정하게 된다.

최초로 외부에서 내부로 들어가는 진입 지점이다.

 

아래 그림을 보면 이해가 갈것이다.

 

사용하기 위한 K8S의 기본 명세 manifest 파일은 아래와 비슷한 형식이다.

apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  name: minimal-ingress
  annotations:
    nginx.ingress.kubernetes.io/rewrite-target: /
spec:
  ingressClassName: nginx-example
  rules:
  - host: "test.ok.com"
   http:
      paths:
      - path: /testpath
        pathType: Prefix
        backend:
          service:
            name: test
            port:
              number: 80

 

참고 다른 자료들은 아래와 같다.

https://traefik.io/glossary/kubernetes-ingress-and-ingress-controller-101/

 

What is a Kubernetes Ingress Controller | Traefik Labs

A Kubernetes Ingress and ingress controller enable traffic from the internet to reach internal cluster Services. Let's look into what they are and how they work.

traefik.io


참고 포스팅

https://thenicesj.tistory.com/202

 

로드밸런싱 (Load balancing) 종류 / 알고리즘 / L4장비

먼저 로드밸런싱이란? 트래픽을 분산시켜주는 컴퓨터 네트워크 기법 이고 좀더 정확한 설명은 둘, 셋 이상의 중앙처리 장치 혹은 저장장치와 같은 컴퓨터 자원들에게 작업을 나누는 것을 의미

thenicesj.tistory.com

 

반응형

'IT > Knowledge' 카테고리의 다른 글

톰캣tomcat, 카탈리나catalina, 재스퍼jasper  (28) 2024.03.19
[ISTIO] VirtualService 개념  (26) 2024.03.18
ISTIO 란?  (18) 2024.03.16
Netflix OSS  (18) 2024.03.14
CGI(Common Gateway Interface) 란?  (14) 2024.03.13

댓글