Add ingress + ingress sample and documentation
This commit is contained in:
11
README.md
11
README.md
@@ -2,12 +2,15 @@
|
|||||||
|
|
||||||
Workload to test application behavior while making changes on infrastructure.
|
Workload to test application behavior while making changes on infrastructure.
|
||||||
|
|
||||||
Ingress is not included and have to be added on top.
|
Ingress fqdn has to be configured by either:
|
||||||
Feel free to customize *replicas* and *content-git-repo* in *config* folder.
|
|
||||||
|
|
||||||
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*
|
||||||
|
|
||||||
|
*replicas* and *content-git-repo* in *config* folder can be customized by modifying files or applying kustomize patch
|
||||||
|
|
||||||
Nnode name is displayed on the top of the page and also in kube-node.json
|
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.
|
Thanks to https://github.com/amoldalwai/RoadFighter.git for having something fun to display.
|
||||||
|
|||||||
4
ingress-patch-route-name.yaml
Normal file
4
ingress-patch-route-name.yaml
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
|
||||||
|
- op: replace
|
||||||
|
path: /spec/rules/0/host
|
||||||
|
value: html-kube-tester.example.com
|
||||||
20
ingress.yaml
Normal file
20
ingress.yaml
Normal 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:
|
||||||
|
- {}
|
||||||
@@ -17,6 +17,7 @@ resources:
|
|||||||
- namespace.yaml
|
- namespace.yaml
|
||||||
- deployment.yaml
|
- deployment.yaml
|
||||||
- service.yaml
|
- service.yaml
|
||||||
|
- ingress.yaml
|
||||||
|
|
||||||
replacements:
|
replacements:
|
||||||
- source:
|
- source:
|
||||||
@@ -28,4 +29,10 @@ replacements:
|
|||||||
kind: Deployment
|
kind: Deployment
|
||||||
name: html-kube-tester
|
name: html-kube-tester
|
||||||
fieldPaths:
|
fieldPaths:
|
||||||
- spec.replicas
|
- spec.replicas
|
||||||
|
|
||||||
|
patches:
|
||||||
|
- path: ingress-patch-route-name.yaml
|
||||||
|
target:
|
||||||
|
kind: Ingress
|
||||||
|
name: run
|
||||||
Reference in New Issue
Block a user