A sample demonstration of k8s Ingress.
Two services running on port 5678
- Apple
- Banana
See apple.yml and banana.yml
These services are routed via Ingress.
If endpoint /apple is reached apple-service will be invoked, otherwise for /banana banana-service will be invoked.
To run the sample make sure kubernetes and minikube is installed on your machine.
- Start minikube via
minikube start
Note: you might need to add on ingress in minikube
- Then inidividually you can run:
kubectl apply -f apple.yml
kubectl apply -f banana.yml
kubectl apply -f ingress.yml- Check status
Get status of services
kubectl get services Get status of ingress
kubectl get ingress