https://kubernetes.github.io/ingress-nginx/deploy/#using-helm
Cài đặt metallb trước để auto nhận các service LB
kubectl create ns metallb
helm repo add metallb https://metallb.github.io/metallb
helm install metallb metallb/metallb
Phần config trong file value để tạo 1 range IP cho LB
configInline:
address-pools:
- name: default
protocol: layer2
addresses:
- 192.168.21.240-192.168.21.250
addresses:
- 192.168.21.240-192.168.21.250
Đây là range IP mà bạn sẽ cấp cho các ingress có Type LoadBalancer

kubectl create ns ingress-nginx
helm repo add ingress-nginx https://kubernetes.github.io/ingress-nginx
helm repo update
helm install ingress-nginx ingress-nginx/ingress-nginx
Trước khi intall export value.yaml và sửa 1 số chi tiết sau:


CÒn nếu bạn sài argocd thì


Thực hành tạo ingress trên rancher he. tạo bằng cmd thì người ta chỉ đầy rồi.




ở phần này nói thêm với rancher khi mà bạn tạo ingress mà bạn workload như hình trên hình thì nó sẽ tạo cho bạn 1 service select tới workload của bạn.
Rồi nó nào 1 ingress select vào service mà rancher tạo.
Vì mình đã có service rồi nên ko chơi cách này.



Comments on “[Ingress Nginx/MetalLB] Install Ingress Nginx trên K8s bằng helm”