From the course: Kubernetes: Your First Project

Unlock the full course today

Join today to access over 24,000 courses taught by industry experts.

Creating the Ingress

Creating the Ingress

- [Instructor] All right, creating our ingress. First I'm going to pull up the help page for kubectl create ingress. There's a lot of stuff here, but let's scroll up to the top to see the meat of it. So we can see that we have a few options since we're creating a single ingress with a simple writing rule and a simple rule that sends all traffic for the root of explorecalifornia into the explorecalifornia-SVC service that we created earlier. We're going to want something like what we see here on line four. So notice that we didn't actually have to specify an ingress controller name here. That's actually what we want. If we don't provide an ingress controller, Kubernetes will use the default one set up for the cluster. The NGINX ingress controller that we're going to create is configured to be the default for this cluster. So we don't actually have to create one or provide one here. So let's go ahead and paste that command…

Contents