https://github.com/apgapg/k8s_ingress_sample
Kubernetes ingress sample
https://github.com/apgapg/k8s_ingress_sample
ingress k8s kubernetes
Last synced: 16 days ago
JSON representation
Kubernetes ingress sample
- Host: GitHub
- URL: https://github.com/apgapg/k8s_ingress_sample
- Owner: apgapg
- Created: 2021-07-03T06:52:11.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2021-07-03T06:52:16.000Z (almost 5 years ago)
- Last Synced: 2025-01-27T06:46:46.259Z (over 1 year ago)
- Topics: ingress, k8s, kubernetes
- Homepage:
- Size: 1000 Bytes
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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
2. Then inidividually you can run:
```shell
kubectl apply -f apple.yml
kubectl apply -f banana.yml
kubectl apply -f ingress.yml
```
3. Check status
Get status of services
```shell
kubectl get services
```
Get status of ingress
```shell
kubectl get ingress
```