You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by "Xierfei (via GitHub)" <gi...@apache.org> on 2023/08/01 07:18:14 UTC

[GitHub] [apisix-ingress-controller] Xierfei commented on issue #1884: request help: How to deploy multiple in an environment apisix Ingress Controller + apisix

Xierfei commented on issue #1884:
URL: https://github.com/apache/apisix-ingress-controller/issues/1884#issuecomment-1659712997

   > it's a configuration item of ingress controller.
   
   I have successfully deployed the first Ingress Controller, but I encountered an error when trying to deploy the second Ingress Controller. What should I do?
   ```
   Error: INSTALLATION FAILED: rendered manifests contain a resource that already exists. Unable to continue with install: ClusterRole "apisix-clusterrole" in namespace "" exists and cannot be imported into the current release: invalid ownership metadata; annotation validation error: key "meta.helm.sh/release-namespace" must equal "ingress-apisix-public": current value is "ingress-apisix-private"
   ```
   I deployed it using Helm。
   ```
   helm install apisix apisix/apisix \
     --set dashboard.enabled=true \
     --set ingress-controller.enabled=true \
     --set ingress-controller.config.apisix.serviceNamespace=ingress-apisix-private \
     --set gateway.tls.enabled=true \
     --set ingress-controller.config.kubernetes.ingressClass=apisix-private \
     --namespace ingress-apisix-private
   
   
   helm install apisix apisix/apisix \
     --set dashboard.enabled=true \
     --set ingress-controller.enabled=true \
     --set ingress-controller.config.apisix.serviceNamespace=ingress-apisix-public \
     --set gateway.tls.enabled=true \
     --set ingress-controller.config.kubernetes.ingressClass=apisix-public \
     --namespace ingress-apisix-public
   
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org