Lab 9
Lab 9
_______________________________________________________________________________________________________________
LAB 9
Objective: Deploy an Ingress controller, create an Ingress rule to reach a clusterIP type service.
With the Ingress controller now running, you will repeat part of the lab from Chapter 8 and create an
Ingress rule as well.
To make this straightforward, check the manifest nginx.yaml. You will see the manifest for a Pod, a
service that matches the pod labels, and an Ingress rule. Create it.
You will now see a running pod, a service, and an Ingress rule.
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: nginx
spec:
____________________________________________________________________________________________________________
rules:
- host: nginx.192.168.99.100.nip.io
http:
paths:
- backend:
serviceName: nginx
servicePort: 80
This Ingress rule is used by the Ingress controller (started by the backend.yaml manifest) to
inikube). The rule will proxy
re-configure the nginx proxy running on the head node (in our case, m
requests for host nginx.192.168.99.100.nip.io to the internal service called n
ginx.
We use the nip.io service. It is a wildcard DNS service that is very handy for testing. It will resolve
nginx.192.168.99.100.nip.io to 192.168.99.100 the IP of minikube. Note that you may
need to edit the Ingress rule manifest if the IP of your minikube is different.
Once the rule is implemented by the controller (could take O(10) s), open your browser at
ginx.
nginx.192.168.99.100.nip.io and enjoy n
____________________________________________________________________________________________________________