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

View File

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