add: Traefik ingress with custom host

This commit is contained in:
Ivan Filipovic
2026-05-04 16:47:58 +02:00
parent 221dfe37a6
commit 4c4a81c1a1
2 changed files with 26 additions and 2 deletions

View File

@@ -0,0 +1,24 @@
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: moj-servis-ingress
namespace: student-ivanivso7
annotations:
# ── Traefik specifične opcije ──
traefik.ingress.kubernetes.io/router.entrypoints: web,websecure
traefik.ingress.kubernetes.io/router.tls: "true"
spec:
ingressClassName: traefik
rules:
- host: moj-servis-ivanivso7.argocd.fpmoz.sum.ba
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: moj-servis-svc
port:
number: 80