Skip to main content

Kubernetes Daily Task Aug 12 Lets Test Ingress


Geoff Burke
Forum|alt.badge.img+22

We enabled ingress and ingress-dns and we can test this from our host. The ingress-dns addon was created for this purpose and there is a page on the Kubernetes documentation page that we can follow to try out our test at the bottom of the post.

 

After enabling the ingress and ingress-dns addons in windows we need to perform the following powershell command:

 

Add-DnsClientNrptRule -Namespace ".test" -NameServers "$(minikube ip)"


Get-DnsClientNrptRule | Where-Object {$_.Namespace -eq '.test'} | Remove-DnsClientNrptRule -Force; Add-DnsClientNrptRule -Namespace ".test" -NameServers "$(minikube ip)"

 

Now back in the command line bash (type bash) apply this manifest:

 

kubectl apply -f https://raw.githubusercontent.com/kubernetes/minikube/master/deploy/addons/ingress-dns/example/example.yaml

 

now try to do a dns lookup on the ingress that was created:

 

nslookup hello-john.test $(minikube ip)
nslookup hello-jane.test $(minikube ip)

 

You should be able to ping from the host (laptop in my case) as well:

 

ping hello-john.test
ping hello-jane.test

 

 

 

Here is the link to the tasks that we performed.

 https://minikube.sigs.k8s.io/docs/handbook/addons/ingress-dns/

 

 

2 comments

Chris.Childerhose
Forum|alt.badge.img+21
  • Veeam Legend, Veeam Vanguard
  • 8521 comments
  • August 12, 2022

Awesome will do this Monday. πŸ‘


Chris.Childerhose
Forum|alt.badge.img+21
  • Veeam Legend, Veeam Vanguard
  • 8521 comments
  • August 15, 2022

Completed this lab.  One suggestion - when putting down the commands to run you say to go to BASH for the one but then the NSLookup and Ping should be at the normal PS prompt not in bash as they don’t seem to work - also the screenshots are normal prompt too.

Maybe say to switch back to PS prompt as well like when you indicate to switch to BASH. πŸ˜‰


Comment