Application version
1.3.0
Chart version
获取chart包
helm fetch ingress-nginx/ingress-nginx --version 4.2.3
#或者curl -LO https://github.com/kubernetes/ingress-nginx/releases/download/helm-chart-4.2.3/ingress-nginx-4.2.3.tgz
#或者curl -LO https://storage.corpintra.plus/ingress-nginx/helm-chart/ingress-nginx-4.2.3.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.3.0" \
--set controller.admissionWebhooks.patch.image.digest="sha256:fe821886866f174069dbb1e3af741662efb44952e39d66488d1fb811673440b7" \
--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.3.tgz
注意如下参数
controller.service.enableHttps //是否打开https,如果ingress前有Nginx或者七层LB,这里可以设置为false
controller.ingressClassResource.name //ingressclass的名称,根据自己的需求修改
controller.replicaCount //pod数量,根据节点数量自行调整
标签:ingress,set,--,image,nginx,controller,Helm
From: https://www.cnblogs.com/zhaojli/p/16642847.html