From c1196b075c8740b82e66b87e122bf949310d047a Mon Sep 17 00:00:00 2001 From: Marta Bulic Date: Sat, 2 May 2026 23:54:21 +0200 Subject: [PATCH] add: Traefik ingress with custom host --- k8s/moj-servis/ingress.yaml | 7 +++++-- k8s/moj-servis/service.yaml | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/k8s/moj-servis/ingress.yaml b/k8s/moj-servis/ingress.yaml index 6949eaf..d1c9e5a 100644 --- a/k8s/moj-servis/ingress.yaml +++ b/k8s/moj-servis/ingress.yaml @@ -4,10 +4,13 @@ metadata: name: moj-servis-ingress namespace: student-martabulic annotations: - traefik.ingress.kubernetes.io/router.entrypoints: web + # ── Traefik specifične opcije ── + traefik.ingress.kubernetes.io/router.entrypoints: web,websecure + traefik.ingress.kubernetes.io/router.tls: "true" spec: + ingressClassName: traefik rules: - - host: martabulic.argocd.fpmoz.sum.ba + - host: moj-servis-martabulic.argocd.fpmoz.sum.ba http: paths: - path: / diff --git a/k8s/moj-servis/service.yaml b/k8s/moj-servis/service.yaml index ad8e2ac..8113f15 100644 --- a/k8s/moj-servis/service.yaml +++ b/k8s/moj-servis/service.yaml @@ -11,4 +11,4 @@ spec: - port: 80 targetPort: 8000 protocol: TCP - type: NodePort + type: ClusterIP