Skip to content

apgapg/k8s_ingress_sample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

Ingress Sample

A sample demonstration of k8s Ingress.

Services

Two services running on port 5678

- Apple
- Banana

See apple.yml and banana.yml

Ingress

These services are routed via Ingress.

If endpoint /apple is reached apple-service will be invoked, otherwise for /banana banana-service will be invoked.

Try Out

To run the sample make sure kubernetes and minikube is installed on your machine.

  1. Start minikube via minikube start

Note: you might need to add on ingress in minikube

  1. Then inidividually you can run:
kubectl apply -f apple.yml
kubectl apply -f banana.yml
kubectl apply -f ingress.yml
  1. Check status

Get status of services

kubectl get services 

Get status of ingress

kubectl get ingress 

About

Kubernetes ingress sample

Topics

Resources

Stars

Watchers

Forks

Contributors