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

This commit is contained in:
Petrraa
2026-03-31 11:28:37 +02:00
commit 1e77c8fa0f
2 changed files with 40 additions and 0 deletions

View File

@@ -0,0 +1,27 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: moj-servis
namespace: student-petrraa
spec:
replicas: 1
selector:
matchLabels:
app: moj-servis
template:
metadata:
labels:
app: moj-servis
spec:
containers:
- name: moj-servis
image: git.fpmoz.sum.ba/petrraa/moj-servis: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: moj-servis-svc
namespace: student-petrraa
spec:
selector:
app: moj-servis
ports:
- port: 80
targetPort: 8000
protocol: TCP
type: NodePort