Ingress
This commit is contained in:
22
k8s/moj-servis/ingress.yaml
Normal file
22
k8s/moj-servis/ingress.yaml
Normal file
@@ -0,0 +1,22 @@
|
||||
apiVersion: networking.k8s.io/v1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
name: helloo-cicdd-ingress
|
||||
namespace: student-marijanela218
|
||||
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: helloo-cicdd-marijanela218.argocd.fpmoz.sum.ba
|
||||
http:
|
||||
paths:
|
||||
- path: /
|
||||
pathType: Prefix
|
||||
backend:
|
||||
service:
|
||||
name: helloo-cicdd-svc
|
||||
port:
|
||||
number: 80
|
||||
@@ -10,5 +10,6 @@ spec:
|
||||
ports:
|
||||
- port: 80
|
||||
targetPort: 8000
|
||||
type: NodePort
|
||||
protocol: TCP
|
||||
type: ClusterIP
|
||||
|
||||
Reference in New Issue
Block a user