init k2 app
This commit is contained in:
23
k8s/ingress.yaml
Normal file
23
k8s/ingress.yaml
Normal file
@@ -0,0 +1,23 @@
|
||||
# TODO: napiši Ingress
|
||||
# Ime: k2-ingress | Namespace: kolokvij2-IME-PREZIME
|
||||
# ingressClassName: traefik
|
||||
# Host: IME-PREZIME.argocd.fpmoz.sum.ba -> k2-svc:80
|
||||
|
||||
apiVersion: networking.k8s.io/v1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
name: k2-ingress
|
||||
namespace: kolokvij2-ivan-galic
|
||||
spec:
|
||||
ingressClassName: traefik
|
||||
rules:
|
||||
- host: galicivan.argocd.fpmoz.sum.ba
|
||||
http:
|
||||
paths:
|
||||
- path: /
|
||||
pathType: Prefix
|
||||
backend:
|
||||
service:
|
||||
name: k2-svc # mora odgovarati service.yaml
|
||||
port:
|
||||
number: 80 # port Servicea (ne containera!)
|
||||
Reference in New Issue
Block a user