update namespace names
This commit is contained in:
@@ -4,7 +4,7 @@ app = FastAPI()
|
|||||||
|
|
||||||
@app.get("/")
|
@app.get("/")
|
||||||
def root():
|
def root():
|
||||||
return {"message": "Pozdrav svijete!", "autor": "GalicIvan"}
|
return {"message": "Pozdrav svijete!", "autor": "galicivan"}
|
||||||
|
|
||||||
@app.get("/health")
|
@app.get("/health")
|
||||||
def health():
|
def health():
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ apiVersion: apps/v1
|
|||||||
kind: Deployment
|
kind: Deployment
|
||||||
metadata:
|
metadata:
|
||||||
name: priprema-za-kolokvij
|
name: priprema-za-kolokvij
|
||||||
namespace: student-GalicIvan
|
namespace: student-galicivan
|
||||||
spec:
|
spec:
|
||||||
replicas: 1
|
replicas: 1
|
||||||
selector:
|
selector:
|
||||||
@@ -15,7 +15,7 @@ spec:
|
|||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- name: priprema-za-kolokvij
|
- name: priprema-za-kolokvij
|
||||||
image: git.fpmoz.sum.ba/GalicIvan/priprema-za-kolokvij:1.0
|
image: git.fpmoz.sum.ba/galicivan/priprema-za-kolokvij:1.0
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 8000
|
- containerPort: 8000
|
||||||
resources:
|
resources:
|
||||||
|
|||||||
@@ -2,11 +2,11 @@ apiVersion: networking.k8s.io/v1
|
|||||||
kind: Ingress
|
kind: Ingress
|
||||||
metadata:
|
metadata:
|
||||||
name: priprema-ingress
|
name: priprema-ingress
|
||||||
namespace: student-GalicIvan
|
namespace: student-galicivan
|
||||||
spec:
|
spec:
|
||||||
ingressClassName: traefik
|
ingressClassName: traefik
|
||||||
rules:
|
rules:
|
||||||
- host: GalicIvan.argocd.fpmoz.sum.ba
|
- host: galicivan.argocd.fpmoz.sum.ba
|
||||||
http:
|
http:
|
||||||
paths:
|
paths:
|
||||||
- path: /
|
- path: /
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ apiVersion: v1
|
|||||||
kind: Service
|
kind: Service
|
||||||
metadata:
|
metadata:
|
||||||
name: priprema-svc
|
name: priprema-svc
|
||||||
namespace: student-GalicIvan
|
namespace: student-galicivan
|
||||||
spec:
|
spec:
|
||||||
selector:
|
selector:
|
||||||
app: priprema-za-kolokvij # spaja Service s Podovima koji imaju ovaj label
|
app: priprema-za-kolokvij # spaja Service s Podovima koji imaju ovaj label
|
||||||
|
|||||||
Reference in New Issue
Block a user