Upgrade NGINX ingress controller#
If in your MKE 3 cluster you deployed the Helm-based patched ingress controller
featured in How to Mitigate Risk for NGINX Ingress Controller Vulnerabilities
Affecting Mirantis Kubernetes
Engine,
you must revert back to the embedded version of ingress-nxinx before you
upgrade your MKE 3 cluster to MKE 4. The instructions herein will help you to
you verify, uninstall, and re-enable the default NGINX Ingress Controller in
your MKE 3 cluster.
-
Run the
kubectl get ingressclass -o widecommand to verify whether an ingress controller is running on your MKE 3 cluster. Your next action depends on the output you receive.Output Action to take No resources foundEnable the Nginx ingress controller NAMEisnginx-defaultVerify the configuration NAMEis notnginx-defaultUninstall the patched controller -
If verification returns
No resources found, proceed to step 4 to enable the embedded Nginx ingress controller. If it returnsnginx-default, skip to step 5 to verify the configuration. Otherwise, uninstall the patched ingress controller:-
Uninstall using Helm:
helm uninstall ingress-nginx -n ingress-nginx -
Uninstall using kubectl (offline mode):
kubectl delete ingressclass nginx --ignore-not-found
-
-
Enable the Nginx ingress controller:
-
Use the MKE Dashboard:
-
Log in to the MKE Dashboard as an administrator.
-
In the left-hand navigation panel, go to Admin > Admin Settings > Ingress.
-
Click the Kubernetes tab.
-
Toggle the HTTP Ingress Controller for Kubernetes control to the right.
-
Click Save.
-
-
Use the MKE configuration file:
-
Ensure that the
cluster_config.ingress_controller.enabledconfiguration parameter in the MKE configuration file is set totrue.
-
-
Verify the ingress configuration:
-
Ensure that the
cluster_config.ingress_controller.enabledconfiguration parameter in the MKE configuration file is set totrue.