add: Traefik ingress with custom host
This commit is contained in:
@@ -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: /
|
||||||
|
|||||||
@@ -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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user