aliyun k8s create intranet-ingress-nginx clb
2024-08-22aliyun k8s create intranet-ingress-nginx clb
1、应用/Helm/安装
ack-ingress-nginx-v1-create-intranet-clb.txt
2、部署多个ingress-nginx
controller.ingressClass
3、使用时,请注意更改参数中的controller.ingressClassResource.name和controller.ingressClassResource.controllerValue为唯一值。
名字intranet-ack-nginx-ingress-v1
安装ack-ingress-nginx-v1的时候,
1、定位到61行
ack-ingress-nginx',
# and default name is 'ack-nginx'.
# please both modiy name and controllerValue to unique values.
name: ack-nginx-[base-intranet]
controllerValue: "k8s.io/ack-ingress-nginx-[base-intranet]"
或者
name: ack-nginx-[intranet-1]
controllerValue: "k8s.io/ack-ingress-nginx-[intranet-1]"
2、搜enable internet slb
定位到80行
service:
# enable internet or intranet slb
enabled: true
定位到86行
external:
# enable internet slb
enabled: false
定位到97行
external:
# enable internet slb
enabled: false
3、https://help.aliyun.com/zh/ack/ack-managed-and-ack-dedicated/user-guide/deploy-multiple-ingress-controllers-in-a-cluster?spm=a2c4g.11186623.0.0.3bd85e5azNSDgf
loadBalancerSourceRanges: [172.30.60.0/24]
172.30.60.0/24
4、kubectl get -A ValidatingWebhookConfiguration
kubectl get -A ingress
kubectl get pods,svc -A|grep nginx