Unable to run the mandatory command for ingress-nginx setup

9/26/2021

I am unable to run the mandatory command for ingress-nginx setup on Google cloud. I have authenticated to Google cloud using 'gcloud auth login'. Next I execute 'kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/nginx-0.30.0/deploy/static/mandatory.yaml'. I get the error shown belowenter image description here

Please help I am stuck

-- Pinakin Chaubal
ingress-nginx
kubernetes

1 Answer

11/21/2021

I executed the steps below and it worked

1) On the Google cloud account, open the cloud shell and navigate to BPB_MEAN_Framework directory in terminal 2) Execute the command gcloud init, reinitialize the cluster, select the account, project and the region 3) Execute the command gcloud container clusters get-credentials blog-dev 4) Execute the command kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/controller-v1.0.3/deploy/static/provider/cloud/deploy.yaml to configure ingress-nginx

-- Pinakin Chaubal
Source: StackOverflow