add: Traefik ingress with custom host
This commit is contained in:
24
k8s/moj-servis/ingress.yaml
Normal file
24
k8s/moj-servis/ingress.yaml
Normal 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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user