Add ingress + ingress sample and documentation

This commit is contained in:
Simon Belmas
2024-06-27 12:14:30 +02:00
parent c3d8cf38b4
commit 60048f74c7
4 changed files with 39 additions and 5 deletions

View File

@@ -2,12 +2,15 @@
Workload to test application behavior while making changes on infrastructure.
Ingress is not included and have to be added on top.
Feel free to customize *replicas* and *content-git-repo* in *config* folder.
Ingress fqdn has to be configured by either:
Git will be displayed in an iframe with node name on top.
* modifying file *ingress-patch-route-name.yaml*
* using this repo as kustomize source and override inn the same way than *ingress-patch-route-name.yaml*
Nnode name is displayed on the top of the page and also in kube-node.json
*replicas* and *content-git-repo* in *config* folder can be customized by modifying files or applying kustomize patch
Connntent git will be displayed in an iframe with node name on top.
Node name is displayed on the top of the page and also in kube-node.json
Thanks to https://github.com/amoldalwai/RoadFighter.git for having something fun to display.

View File

@@ -0,0 +1,4 @@
- op: replace
path: /spec/rules/0/host
value: html-kube-tester.example.com

20
ingress.yaml Normal file
View File

@@ -0,0 +1,20 @@
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: run
annotations:
route.openshift.io/termination: "edge"
spec:
rules:
- host: my.app.example.com
http:
paths:
- backend:
service:
name: html-kube-tester
port:
number: 80
path: /
pathType: Prefix
tls:
- {}

View File

@@ -17,6 +17,7 @@ resources:
- namespace.yaml
- deployment.yaml
- service.yaml
- ingress.yaml
replacements:
- source:
@@ -29,3 +30,9 @@ replacements:
name: html-kube-tester
fieldPaths:
- spec.replicas
patches:
- path: ingress-patch-route-name.yaml
target:
kind: Ingress
name: run