우선 이것만 만들어주면 됩니다!!!!!!!

apiVersion: gateway.networking.k8s.io/v1
kind: HTTPRoute
metadata:
  name: func-py-str-route # 원하는 이름
  namespace: default # 고정
spec:
  parentRefs:
  - name: yellow-gate # 고정
  hostnames:
  - "user2.haifu.cloud" # 원하는 주소
  rules:
  - matches:
    - path:
        type: PathPrefix
        value: /func2 # 원하는 path
    filters:
    - type: URLRewrite
      urlRewrite:
        path:
          type: ReplacePrefixMatch
          replacePrefixMatch: /
        hostname: func-py-str.runna-workspace.haifu.cloud # ksvc에 적힌 URL 주소
    backendRefs:
    - name: kourier
      namespace: knative-serving
      port: 80

1. 배경 및 목표

image.png

3. 핵심 구현 단계

Step 1: Gateway API 및 Envoy Gateway 설치

Helm을 사용하여 Envoy Gateway(EG) 설치.

helm install eg oci://docker.io/envoyproxy/gateway-helm --version v1.6.1 -n envoy-gateway-system --create-namespace

Step 2: 인프라 구성 (Gateway & EnvoyProxy)

EC2 환경 특성상 NodePort를 사용하고, 특정 노드(group: backend)에 프록시를 배치하기 위해 EnvoyProxy 설정(Blueprint)을 함께 적용.