diff --git a/README.md b/README.md index 17bde3a..ee16639 100644 --- a/README.md +++ b/README.md @@ -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* + +*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. diff --git a/ingress-patch-route-name.yaml b/ingress-patch-route-name.yaml new file mode 100644 index 0000000..808510b --- /dev/null +++ b/ingress-patch-route-name.yaml @@ -0,0 +1,4 @@ + +- op: replace + path: /spec/rules/0/host + value: html-kube-tester.example.com \ No newline at end of file diff --git a/ingress.yaml b/ingress.yaml new file mode 100644 index 0000000..7b458aa --- /dev/null +++ b/ingress.yaml @@ -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: + - {} \ No newline at end of file diff --git a/kustomization.yaml b/kustomization.yaml index 0ed609f..b878c96 100644 --- a/kustomization.yaml +++ b/kustomization.yaml @@ -17,6 +17,7 @@ resources: - namespace.yaml - deployment.yaml - service.yaml +- ingress.yaml replacements: - source: @@ -28,4 +29,10 @@ replacements: kind: Deployment name: html-kube-tester fieldPaths: - - spec.replicas \ No newline at end of file + - spec.replicas + +patches: +- path: ingress-patch-route-name.yaml + target: + kind: Ingress + name: run \ No newline at end of file