add missing files
This commit is contained in:
@@ -0,0 +1,27 @@
|
|||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: priprema-za-kolokvij
|
||||||
|
namespace: student-GalicIvan
|
||||||
|
spec:
|
||||||
|
replicas: 1
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: priprema-za-kolokvij
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: priprema-za-kolokvij
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: priprema-za-kolokvij
|
||||||
|
image: git.fpmoz.sum.ba/GalicIvan/priprema-za-kolokvij:1.0
|
||||||
|
ports:
|
||||||
|
- containerPort: 8000
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
memory: "64Mi"
|
||||||
|
cpu: "50m"
|
||||||
|
limits:
|
||||||
|
memory: "128Mi"
|
||||||
|
cpu: "200m"
|
||||||
@@ -0,0 +1,13 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: priprema-svc
|
||||||
|
namespace: student-GalicIvan
|
||||||
|
spec:
|
||||||
|
selector:
|
||||||
|
app: priprema-za-kolokvij # spaja Service s Podovima koji imaju ovaj label
|
||||||
|
ports:
|
||||||
|
- port: 80 # port koji Service eksponira (Ingress ce slati ovdje)
|
||||||
|
targetPort: 8000 # port containera (uvicorn slusa na 8000)
|
||||||
|
protocol: TCP
|
||||||
|
type: ClusterIP # samo unutar K8s clustera — Ingress rjesava vanjski pristup
|
||||||
Reference in New Issue
Block a user