#minikube #tunneling
- HAProxy Ingress 설치
kubectl create ns haproxy-controller
helm repo add haproxytech https://haproxytech.github.io/helm-charts
helm repo update
helm install haproxy-kubernetes-ingress haproxytech/kubernetes-ingress \
-n haproxy-controller \
--set controller.service.type=LoadBalancer
이 차트는 기본 IngressClass 이름이 haproxy로 설정되어 있어서, Ingress 리소스에 ingressClassName: haproxy를 써야 매칭돼. HAProxy Technologies
-
LoadBalancer 외부 IP 할당
다른 터미널에서:
minikube tunnel
-
Gitea 차트(values)에 IngressClass 맞추기
네가 준 values에
className: traefik만haproxy로 바꾸면 됨:
ingress:
enabled: true
className: haproxy
annotations:
# (필수 아님) HTTP만 쓸 거면 생략 가능
hosts:
- host: gitea.127.0.0.1.nip.io
paths:
- path: /
pathType: Prefix
적용:
helm upgrade --install gitea gitea-charts/gitea -n devops -f values-gitea.yaml
- 확인 & 접속
kubectl get ingress -A
kubectl get svc -n haproxy-controller haproxy-kubernetes-ingress
curl -H 'Host: gitea.127.0.0.1.nip.io' http://127.0.0.1/
Comments
💬 Sign in with GitHub to leave a comment. Comments are public and stored in GitHub Discussions.