Hands-on with Ingress
You’ll need both of these if you’re following along:
- A Kubernetes cluster
- A clone of the book’s GitHub repo
If your cluster is in the cloud, the examples will create one of your cloud’s internet-facing load balancers, and you’ll work with public IP addresses or public DNS names. If you have a local cluster, such as Docker Desktop, you’ll work with localhost and private IP addresses.
If you don’t already have it, clone the book’s GitHub repo with the following command.
$ git clone https://github.com/nigelpoulton/TheK8sBook.git
Cloning from...
Change into the TheK8sBook/ingress directory and run all commands from there.
You’ll complete all of the following steps:
- Install the NGINX Ingress controller
- Configure an Ingress class
- Deploy a sample app
- Configure an Ingress object
- Inspect the Ingress object
- Configure DNS name resolution
- Test the Ingress