init: FastAPI priprema-za-kolokvij + k8s manifesti (monorepo)
This commit is contained in:
@@ -1,20 +1,20 @@
|
|||||||
apiVersion: apps/v1
|
apiVersion: apps/v1
|
||||||
kind: Deployment
|
kind: Deployment
|
||||||
metadata:
|
metadata:
|
||||||
name: priprema-za-kolokvij
|
name: priprema-za-kolokvij2
|
||||||
namespace: student-tony773
|
namespace: student-tony773
|
||||||
spec:
|
spec:
|
||||||
replicas: 1
|
replicas: 1
|
||||||
selector:
|
selector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
app: priprema-za-kolokvij
|
app: priprema-za-kolokvij2
|
||||||
template:
|
template:
|
||||||
metadata:
|
metadata:
|
||||||
labels:
|
labels:
|
||||||
app: priprema-za-kolokvij
|
app: priprema-za-kolokvij2
|
||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- name: priprema-za-kolokvij
|
- name: priprema-za-kolokvij2
|
||||||
image: git.fpmoz.sum.ba/tony773/priprema-za-kolokvij:1.0
|
image: git.fpmoz.sum.ba/tony773/priprema-za-kolokvij:1.0
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 8000
|
- containerPort: 8000
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ metadata:
|
|||||||
namespace: student-tony773
|
namespace: student-tony773
|
||||||
spec:
|
spec:
|
||||||
selector:
|
selector:
|
||||||
app: priprema-za-kolokvij # spaja Service s Podovima koji imaju ovaj label
|
app: priprema-za-kolokvij2 # spaja Service s Podovima koji imaju ovaj label
|
||||||
ports:
|
ports:
|
||||||
- port: 80 # port koji Service eksponira (Ingress ce slati ovdje)
|
- port: 80 # port koji Service eksponira (Ingress ce slati ovdje)
|
||||||
targetPort: 8000 # port containera (uvicorn slusa na 8000)
|
targetPort: 8000 # port containera (uvicorn slusa na 8000)
|
||||||
|
|||||||
Reference in New Issue
Block a user