依赖: 高可用虚地址
裸金属:metallb
公有云:keepalived unicast
https://kubernetes.github.io/ingress-nginx/deploy/#bare-metal
wget -N https://raw.githubusercontent.com/kubernetes/ingress-nginx/master/deploy/static/mandatory.yaml -O ingress-nginx-mandatory.yaml
wget -N https://raw.githubusercontent.com/kubernetes/ingress-nginx/master/deploy/static/provider/baremetal/service-nodeport.yaml -O ingress-nginx-LoadBalancer.yaml
sed -i 's/replicas: 1/replicas: 3/g' ingress-nginx-mandatory.yaml
sed -i 's/type: NodePort/type: LoadBalancer/g' ingress-nginx-LoadBalancer.yaml
kubectl apply -f ingress-nginx-mandatory.yaml
kubectl apply -f ingress-nginx-LoadBalancer.yaml
网友评论