From e14184f87f5698dc765649c0c769fc8ec4931262 Mon Sep 17 00:00:00 2001 From: tyknkd <78797823+tyknkd@users.noreply.github.com> Date: Wed, 15 May 2024 18:52:25 +0900 Subject: [PATCH] build: add k8s ingress --- deployment/templates/ingress.yaml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 deployment/templates/ingress.yaml diff --git a/deployment/templates/ingress.yaml b/deployment/templates/ingress.yaml new file mode 100644 index 0000000..396a03a --- /dev/null +++ b/deployment/templates/ingress.yaml @@ -0,0 +1,23 @@ +apiVersion: networking.k8s.io/v1 +kind: Ingress +metadata: + name: newsanalyzer-ingress +spec: + rules: + - host: newsanalyzer.io + http: + paths: + - path: / + pathType: Prefix + backend: + service: + name: web-service + port: + number: 8888 + - path: /monitoring + pathType: Prefix + backend: + service: + name: grafana-service + port: + number: 3000 \ No newline at end of file