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 apiVersion: networking.k8s.io/v1
kind: Ingress kind: Ingress
metadata: metadata:
name: moj-servis-svc name: moj-servis-ingress
namespace: student-petrraa namespace: student-petrraa
annotations: 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: spec:
ingressClassName: traefik
rules: rules:
- host: petrraa.argocd.fpmoz.sum.ba - host: moj-servis-petrraa.argocd.fpmoz.sum.ba
http: http:
paths: paths:
- path: / - path: /

View File

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