Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kuritka/demo
Different version of ingresses with simple webapp behind
https://github.com/kuritka/demo
ingress ingress-nginx kubernetes simple-w
Last synced: 24 days ago
JSON representation
Different version of ingresses with simple webapp behind
- Host: GitHub
- URL: https://github.com/kuritka/demo
- Owner: kuritka
- Created: 2023-02-28T13:22:15.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-03-22T13:40:24.000Z (over 1 year ago)
- Last Synced: 2024-10-05T11:23:26.353Z (about 1 month ago)
- Topics: ingress, ingress-nginx, kubernetes, simple-w
- Homepage:
- Size: 16.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Ingress DEM⭕
The demo is used to deploy a super-simple web application for testing purposes.
The goal of this project is to test accessibility for different versions of ingresses
and service type LoadBalancer. The whole demo uses only the standard `busybox` image and the whole configuration is
in one `demo.yaml` file. The advantage of this is that you only need to copy-paste the command into the terminal
to run the demo. In practice, you don't even need to clone the repository to run the demo.## Quickstart
for `ingressv1` use command below, but you can apply different ingress versions:
```shell
DEMO_HOST=whatever.demo.cloud.example.com && \
DEMO_DIR=networking.k8s.io-v1 && \
kubectl apply -f https://raw.githubusercontent.com/kuritka/demo/main/$DEMO_DIR/demo.yaml && \
kubectl -n demo patch ingress demo-ingress --type=json \
-p='[{"op": "replace", "path": "/spec/rules/0/host", "value":"'$DEMO_HOST'"}]'
``````shell
export DEMO_DIR=networking.k8s.io-v1 && \
kubectl delete -f https://raw.githubusercontent.com/kuritka/demo/main/$DEMO_DIR/demo.yaml
```## Ingress genesis
Since [email protected] the Ingress with version `extensions/v1beta1` nor `networking.k8s.io/v1beta1`
are no longer supported. The only supported version is now `networking.k8s.io/v1`
Ingress@v1 was there since 1.19. See [[1]](https://cloud.google.com/kubernetes-engine/docs/deprecations/apis-1-22)## Support
- networking.k8s.io-v1
- networking.k8s.io-v1beta1
- extensions-v1beta1
- ~~ServiceType: Loadbalancer~~ingress is configured to host `demo.cloud.example.com`. You have to change it if you are
testing against another host.## port-forward
Although it is a secondary thing, it is good to see that the application runs at least port-forward. Run the following command and type http://localhost:8080 into your browser. If nothing is running on port 8080, you should see the demo.```shell
kubectl -n demo port-forward deployment/web-app 8080:8404
```## Contribution
any contribution is welcome.