Create an Ingress Controller on a Cluster
Prerequisites
Configure Ingress Controller
Create deployments
Expose deployments
Accessing services with Ingress
Once we have the services to be routed by the ingress we define the file demo-ingress.yaml
This file defines an Ingress with the path
hello-world.info
for the serviceweb
andhello-wold.info/v2
for the service web2
To test locally execute the following and copy the IP assigned to the Ingress we created
Add the host and ip at the end of the file /etc/hosts
You can also just ssh into the cluster and test with curl
Reference Links
PreviousCommunicate two microservices in a Kubernetes clusterNextConfigure Kubernetes Horizontal Pod Autoscaler
Last updated