add: Traefik ingress with custom host

This commit is contained in:
2026-04-30 17:36:18 +02:00
parent 2d93d7175f
commit 576fe12817
2 changed files with 5 additions and 3 deletions

View File

@@ -5,10 +5,12 @@ metadata:
name: moj-servis-ingress name: moj-servis-ingress
namespace: student-mirko416 namespace: student-mirko416
annotations: annotations:
traefik.ingress.kubernetes.io/router.entrypoints: web traefik.ingress.kubernetes.io/router.entrypoints: web,websecure
traefik.ingress.kubernetes.io/router.tls: "true"
spec: spec:
ingressClassName: traefik
rules: rules:
- host: mirko416.argocd.fpmoz.sum.ba - host: moj-servis-mirko416.argocd.fpmoz.sum.ba
http: http:
paths: paths:
- path: / - path: /

View File

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