From d5bd27b76d24e879415c9e4ced7b9b5f9075671c Mon Sep 17 00:00:00 2001 From: Matheus Fidelis Date: Fri, 4 Jul 2025 11:04:26 -0300 Subject: [PATCH] ingress support --- main.py | 1 - manifests/templates/ingress.yaml | 27 +++++++++++++++++++++++++++ 2 files changed, 27 insertions(+), 1 deletion(-) create mode 100644 manifests/templates/ingress.yaml diff --git a/main.py b/main.py index 2ea5ba7..1e6c32e 100644 --- a/main.py +++ b/main.py @@ -65,7 +65,6 @@ def startup_check(): def redirect_to_docs(): return RedirectResponse(url="/docs") - # Funções de simulação diff --git a/manifests/templates/ingress.yaml b/manifests/templates/ingress.yaml new file mode 100644 index 0000000..946d85e --- /dev/null +++ b/manifests/templates/ingress.yaml @@ -0,0 +1,27 @@ + +apiVersion: networking.k8s.io/v1 +kind: Ingress +metadata: + name: semanadevops-ingress + namespace: default + annotations: + alb.ingress.kubernetes.io/scheme: "internet-facing" + alb.ingress.kubernetes.io/target-type: "ip" + alb.ingress.kubernetes.io/listen-ports: '[{"HTTP": 80}]' + alb.ingress.kubernetes.io/healthcheck-path: "/health" + alb.ingress.kubernetes.io/healthcheck-port: "traffic-port" + alb.ingress.kubernetes.io/healthcheck-protocol: "HTTP" + labels: + app: semana-devops +spec: + ingressClassName: alb + rules: + - http: + paths: + - path: / + pathType: Prefix + backend: + service: + name: semana-devops + port: + number: 8081 \ No newline at end of file