|
@@ -149,7 +149,7 @@ tail -f /var/log/haproxy.log
|
|
|
```sh
|
|
|
helm repo add ingress-nginx https://kubernetes.github.io/ingress-nginx
|
|
|
kubectl create namespace ingress-nginx
|
|
|
- helm install nginx-ingress ingress-nginx/ingress-nginx --set controller.service.type=NodePort --set controller.service.nodePorts.http=30080 --set controller.service.nodePorts.https=30443 --set ingressClassResource.default=true --namespace ingress-nginx
|
|
|
+ helm install ingress-nginx ingress-nginx/ingress-nginx --set controller.service.type=NodePort --set controller.service.nodePorts.http=30080 --set controller.service.nodePorts.https=30443 --set ingressClassResource.default=true --namespace ingress-nginx
|
|
|
```
|
|
|
|
|
|
2. **配置防火墙**:
|
|
@@ -189,7 +189,7 @@ tail -f /var/log/haproxy.log
|
|
|
重新启动 Nginx Ingress Controller 以使配置更改生效:
|
|
|
|
|
|
```sh
|
|
|
- kubectl rollout restart deployment nginx-ingress-controller -n ingress-nginx
|
|
|
+ kubectl rollout restart deployment ingress-nginx-controller -n ingress-nginx
|
|
|
```
|
|
|
|
|
|
# 总结
|