美文网首页
部署 ingress nginx HA 常见方式

部署 ingress nginx HA 常见方式

作者: akka9 | 来源:发表于2019-08-21 02:02 被阅读0次

依赖: 高可用虚地址
裸金属: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


相关文章

网友评论

      本文标题:部署 ingress nginx HA 常见方式

      本文链接:https://www.haomeiwen.com/subject/rusvsctx.html