add: Traefik ingress with custom host

This commit is contained in:
2026-05-02 23:54:21 +02:00
parent 0d09509cb4
commit c1196b075c
2 changed files with 6 additions and 3 deletions

View File

@@ -4,10 +4,13 @@ metadata:
name: moj-servis-ingress name: moj-servis-ingress
namespace: student-martabulic namespace: student-martabulic
annotations: 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: spec:
ingressClassName: traefik
rules: rules:
- host: martabulic.argocd.fpmoz.sum.ba - host: moj-servis-martabulic.argocd.fpmoz.sum.ba
http: http:
paths: paths:
- path: / - path: /

View File

@@ -11,4 +11,4 @@ spec:
- port: 80 - port: 80
targetPort: 8000 targetPort: 8000
protocol: TCP protocol: TCP
type: NodePort type: ClusterIP