|
@@ -40,7 +40,7 @@
|
|
```sh
|
|
```sh
|
|
helm repo add ingress-nginx https://kubernetes.github.io/ingress-nginx
|
|
helm repo add ingress-nginx https://kubernetes.github.io/ingress-nginx
|
|
kubectl create namespace ingress-nginx
|
|
kubectl create namespace ingress-nginx
|
|
-helm install nginx-ingress ingress-nginx/ingress-nginx --set controller.kind=DaemonSet --set controller.service.type=NodePort --set controller.service.nodePorts.http=80 --set controller.service.nodePorts.https=443 --set controller.service.externalTrafficPolicy=Local --set ingressClassResource.default=true --namespace ingress-nginx
|
|
|
|
|
|
+helm install ingress-nginx ingress-nginx/ingress-nginx --set controller.kind=DaemonSet --set controller.service.type=NodePort --set controller.service.nodePorts.http=80 --set controller.service.nodePorts.https=443 --set controller.service.externalTrafficPolicy=Local --set ingressClassResource.default=true --namespace ingress-nginx
|
|
```
|
|
```
|
|
|
|
|
|
### 4. 配置 Ingress Controller 以支持 Proxy Protocol
|
|
### 4. 配置 Ingress Controller 以支持 Proxy Protocol
|
|
@@ -78,7 +78,7 @@ kubectl apply -f nginx-configmap.yaml
|
|
重新启动 Nginx Ingress Controller 以使配置更改生效:
|
|
重新启动 Nginx Ingress Controller 以使配置更改生效:
|
|
|
|
|
|
```sh
|
|
```sh
|
|
-kubectl rollout restart deployment nginx-ingress-controller -n ingress-nginx
|
|
|
|
|
|
+kubectl rollout restart deployment ingress-nginx-controller -n ingress-nginx
|
|
```
|
|
```
|
|
|
|
|
|
### 5. **DNS 配置**:
|
|
### 5. **DNS 配置**:
|