From b497c591340f7561e67d100a17f2284a358342f1 Mon Sep 17 00:00:00 2001 From: "francesco.belacca" Date: Sun, 24 Mar 2024 17:18:47 +0100 Subject: [PATCH] added nginx ingress --- deploy/charts/templates/ingress.yaml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 deploy/charts/templates/ingress.yaml diff --git a/deploy/charts/templates/ingress.yaml b/deploy/charts/templates/ingress.yaml new file mode 100644 index 0000000..cdf2ff4 --- /dev/null +++ b/deploy/charts/templates/ingress.yaml @@ -0,0 +1,26 @@ +apiVersion: networking.k8s.io/v1 +kind: Ingress +metadata: + name: webapp-ingress + annotations: + nginx.ingress.kubernetes.io/enable-http2: "true" + nginx.ingress.kubernetes.io/enable-websocket: "true" +spec: + ingressClassName: nginx + rules: + - http: + paths: + - path: / # Assuming the app serves from the root + pathType: Prefix + backend: + service: + name: webapp + port: + number: 6350 + - path: /metrics + pathType: Prefix + backend: + service: + name: webapp + port: + number: 6401