add: moj-servis k8s manifests (deployment + service)

This commit is contained in:
blazp04
2026-03-31 11:13:49 +02:00
parent 7e25711f80
commit 152bda36c4
2 changed files with 40 additions and 0 deletions

View File

@@ -0,0 +1,27 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: moj-servis-deployment
namespace: student-Blazp04
spec:
replicas: 1
selector:
matchLabels:
app: distribuirani
template:
metadata:
labels:
app: distribuirani
spec:
containers:
- name: distribuirani
image: git.fpmoz.sum.ba/Blazp04/distribuirani:1.0
ports:
- containerPort: 8000
resources:
requests:
memory: "64Mi"
cpu: "50m"
limits:
memory: "128Mi"
cpu: "200m"

View File

@@ -0,0 +1,13 @@
apiVersion: v1
kind: Service
metadata:
name: distribuirani-service
namespace: student-Blazp04
spec:
selector:
app: distribuirani
ports:
- port: 80
targetPort: 8000
protocol: TCP
type: NodePort