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