Application version
1.3.0
Chart version
获取chart包
helm fetch ingress-nginx/ingress-nginx --version 4.2.0
#或者curl -LO https://github.com/kubernetes/ingress-nginx/releases/download/helm-chart-4.2.0/ingress-nginx-4.2.0.tgz
#或者curl -LO https://storage.corpintra.plus/ingress-nginx/helm-chart/ingress-nginx-4.2.0.tgz
自定义安装
helm upgrade ingress-nginx --namespace ingress-nginx --create-namespace --debug --wait --install --atomic /
--set controller.kind="Deployment" /
--set controller.replicaCount="3" /
--set controller.minAvailable="1" /
--set controller.image.registry="registry.cn-hangzhou.aliyuncs.com" /
--set controller.image.image="kubecr/ingress-nginx-controller" /
--set controller.image.tag="v1.3.0" /
--set controller.image.digest="sha256:067673df26a65ec5c2d5b30f25db869bad4d7d391fc81882250134577e581ef0" /
--set controller.ingressClassResource.name="nginx" /
--set controller.ingressClassResource.enable="true" /
--set controller.ingressClassResource.default="false" /
--set controller.service.enabled="true" /
--set controller.service.type="NodePort" /
--set controller.service.enableHttps="false" /
--set controller.service.nodePorts.http="32080" /
--set controller.service.nodePorts.https="32443" /
--set controller.admissionWebhooks.enabled="true" /
--set controller.admissionWebhooks.patch.image.registry="registry.cn-hangzhou.aliyuncs.com" /
--set controller.admissionWebhooks.patch.image.image="kubecr/kube-webhook-certgen" /
--set controller.admissionWebhooks.patch.image.tag="v1.1.1" /
--set controller.admissionWebhooks.patch.image.digest="sha256:78351fc9d9b5f835e0809921c029208faeb7fbb6dc2d3b0d1db0a6584195cfed" /
--set defaultBackend.enabled="true" /
--set defaultBackend.name="defaultbackend" /
--set defaultBackend.image.registry="registry.cn-hangzhou.aliyuncs.com" /
--set defaultBackend.image.image="kubecr/defaultbackend-amd64" /
--set defaultBackend.image.tag="1.5" /
--set defaultBackend.replicaCount="1" /
--set defaultBackend.minAvailable="1" /
--set rbac.create="true" /
--set serviceAccount.create="true" /
./ingress-nginx-4.2.0.tgz
注意如下参数
controller.service.enableHttps //是否打开https,如果ingress前有Nginx或者七层LB,这里可以设置为false
controller.ingressClassResource.name //ingressclass的名称,根据自己的需求修改
controller.replicaCount //pod数量,根据节点数量自行调整
原创文章,作者:506227337,如若转载,请注明出处:https://blog.ytso.com/276359.html