added example multiple controller install to faq (#7668)
This commit is contained in:
parent
5e6ab651ec
commit
c6bf056327
1 changed files with 24 additions and 0 deletions
|
@ -167,3 +167,27 @@ Bear in mind that, if your `Ingress-Nginx-Controller-nginx2` is started with the
|
|||
|
||||
## I am seeing this error message in the logs of the Ingress-NGINX controller "ingress class annotation is not equal to the expected by Ingress Controller". Why ?
|
||||
- It is highly likely that you will also see the name of the ingress resource in the same error message. This error messsage has been observed on use the deprecated annotation, to spec the ingressClass, in a ingress resource manifest. It is recommended to use the ingress.spec.ingressClassName field, of the ingress resource, to spec the name of the ingressClass of the ingress resource being configured.
|
||||
|
||||
## How to easily install multiple instances of the ingress-NGINX controller in the same cluster ?
|
||||
- Create a new namespace
|
||||
```
|
||||
kubectl create namespace ingress-controller-2
|
||||
```
|
||||
- Use helm to install the additional instance of the ingress controller
|
||||
- Ensure you have helm working (refer to helm documentation)
|
||||
- We have to assume that you have the helm repo for the ingress-NGINX controller already added to your helm config. But, if you have not added the helm repo then you can do this to add the repo to your helm config;
|
||||
```
|
||||
helm repo add ingress-nginx https://kubernetes.github.io/ingress-nginx`
|
||||
```
|
||||
- Make sure you have updated the helm repo data;
|
||||
```
|
||||
helm repo update
|
||||
```
|
||||
- Now you install the additional instance of the ingress-NGINX controller like this ;
|
||||
```
|
||||
helm --namespace ingress-controller-2 install ingcontroller-2 ingress-nginx/ingress-nginx \
|
||||
--set controller.ingressClass=ingress-class-2 \
|
||||
--set controller.ingressClassResource.name=ingress-class-2 \
|
||||
--set controller.ingressClassResource.controllerValue= "k8s.io/ingress-controller-2"
|
||||
```
|
||||
- If you need to install yet another instance, then repeat the procedure to create a new namespace, change the values like names & namespaces (for example from "-2" to "-3"), or anything else that meets your needs.
|
||||
|
|
Loading…
Reference in a new issue