RealTheory can notify you if NGINX Ingress Controller is a required component in your environment that is not present on your cluster or if the version of NGINX Ingress Controller that is installed is not in compliance with organizational standards.
If NGINX Ingress Controller is a required component in your Kubernetes environment, it is most likely that a Helm chart or the manifest file needed for the installation already exist. Contact your Operations or DevOps team to determine if there are company resources for installing NGINX Ingress Controller BEFORE using either of the following procedures.
To install NGINX Ingress Controller:
helm repo add ingress-nginx https://kubernetes.github.io/ingress-nginx helm repo updatekubectl create namespace ingress-nginxhelm install ingress-nginx ingress-nginx/ingress-nginx --namespace ingress-nginxhelm install ingress-nginx ingress-nginx/ingress-nginx --namespace ingress-nginx --version <version> <version> is the version number of the NGINX Ingress Controller you want to install.kubectl get pods -n ingress-nginxkubectl get services -n ingress-nginxcurl http://<external-ip> <external-ip> is the external IP or hostname obtained in Step 6.To install NGINX Ingress Controller:
kubectl create namespace ingress-nginxkubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/main/deploy/static/provider/cloud/deploy.yamlkubectl get pods -n ingress-nginxkubectl expose deployment ingress-nginx-controller --type=NodePort --name=ingress-nginx-controller --namespace=ingress-nginxkubectl get services -n ingress-nginx curl http://<external-ip> <external-ip> is the external IP or hostname obtained in Step 5.If a specific version of NGINX Ingress Controller is required in your Kubernetes environment, it is most likely that a Helm chart or the manifest files already exist. Contact your Operations or DevOps team to determine if there are company resources for installing NGINX Ingress Controller BEFORE using either of the following procedures.
To upgrade NGINX Ingress Controller:
helm upgrade ingress-nginx ingress-nginx/ingress-nginx --namespace ingress-nginxhelm upgrade <release-name> ingress-nginx/ingress-nginx --namespace ingress-nginx --version <version> <release-name> is the name of your NGINX Ingress Controller release and <version> is the version number of the NGINX Ingress Controller you want to upgrade to.kubectl get pods -n ingress-nginxTo upgrade NGINX Ingress Controller:
export NGINX_VERSION=<version> curl -O https://raw.githubusercontent.com/kubernetes/ingress-nginx/main/deploy/static/provider/cloud/deploy.yaml <version> is the version number of the NGINX Ingress Controller you want to upgrade to.kubectl apply -f deploy.yamlkubectl get pods -n ingress-nginxkubectl delete -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/main/deploy/static/provider/cloud/deploy.yamlSearch for a command to run...