add: Traefik ingress with custom host

This commit is contained in:
Petrraa
2026-05-02 15:22:15 +02:00
parent 2010bb227c
commit cdadda403b
2 changed files with 8 additions and 6 deletions

View File

@@ -1,13 +1,16 @@
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: moj-servis-svc
name: moj-servis-ingress
namespace: student-petrraa
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: petrraa.argocd.fpmoz.sum.ba
- host: moj-servis-petrraa.argocd.fpmoz.sum.ba
http:
paths:
- path: /

View File

@@ -2,7 +2,7 @@ apiVersion: v1
kind: Service
metadata:
name: moj-servis-svc
namespace: student-petrraa
namespace: student-VAS_KORISNIK
spec:
selector:
app: moj-servis
@@ -10,5 +10,4 @@ spec:
- port: 80
targetPort: 8000
protocol: TCP
type: NodePort
type: ClusterIP # PROMIJENJENO iz NodePort