I have 3 VMS running in localsystemeach 1 Master, 2 Nodes. I have installed weave CNI Network. I am trying to install the Nginx ingress controller with
kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/controller-v0.44.0/deploy/static/provider/cloud/deploy.yaml
But im unable to create it. I have tried the same with the AWS Ec2 instances. It is always crashing
I have seen the describe
getting this error in admission-create pod MountVolume.SetUp failed for volume "kube-api-access-kdhpc" : object "ingress-nginx"/"kube-root-ca.crt" not registered
and the admission-patch,controller pod is keep on restarting
the controller pod output
Im kinda struck over here. I have tried using the flannel cni too and the result is the same.
Any suggestions are appreciated.
2
Answers
I think you should use this one ( for baremetal )
follow this article :
Nginx Ingress Controller – Failed Calling Webhook
Try these steps, these configurations worked with me well.
Ingress Controller
Ingress Service
Apply this NodePort or LoadBalancer as per your configurations:
Role for Ingress
You will need to create a service account for the ingress, any name of your choice, apply these rbac Cluster Role and Cluster Role Binding
Your ingress source is ready to install, refer to https://kubernetes.io/docs/concepts/services-networking/ingress/ and apply the ingress resource