add: Traefik ingress with custom host

This commit is contained in:
2026-05-01 12:35:08 +02:00
parent 424a82aaaa
commit 2bf5debbfd
2 changed files with 14 additions and 12 deletions

View File

@@ -4,16 +4,18 @@ metadata:
name: moj-servis-ingress name: moj-servis-ingress
namespace: student-leonarda11 namespace: student-leonarda11
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: leonarda11.argocd.fpmoz.sum.ba - host: moj-servis-leonarda11.argocd.fpmoz.sum.ba
http: http:
paths: paths:
- path: / - path: /
pathType: Prefix pathType: Prefix
backend: backend:
service: service:
name: moj-servis-svc name: moj-servis-svc
port: port:
number: 80 number: 80

View File

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