From d89097c8345904f905823ff7cf8d1b4f4ce087b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jelena=20Vu=C4=8Di=C4=87?= Date: Tue, 7 Apr 2026 10:34:52 +0200 Subject: [PATCH] add: moj-servis k8s manifests (deployment + service) --- k8s/moj-servis/deployment.yaml | 28 ++++++++++++++++++++++++++++ k8s/moj-servis/service.yaml | 14 ++++++++++++++ 2 files changed, 42 insertions(+) create mode 100644 k8s/moj-servis/deployment.yaml create mode 100644 k8s/moj-servis/service.yaml diff --git a/k8s/moj-servis/deployment.yaml b/k8s/moj-servis/deployment.yaml new file mode 100644 index 0000000..cd0a72c --- /dev/null +++ b/k8s/moj-servis/deployment.yaml @@ -0,0 +1,28 @@ +# k8s/moj-servis/deployment.yaml +apiVersion: apps/v1 +kind: Deployment +metadata: + name: moj-servis + namespace: student-vucicj +spec: + replicas: 1 + selector: + matchLabels: + app: moj-servis + template: + metadata: + labels: + app: moj-servis + spec: + containers: + - name: moj-servis + image: git.fpmoz.sum.ba/vucicj/moj-servis:1.0 + ports: + - containerPort: 8000 + resources: + requests: + memory: "64Mi" + cpu: "50m" + limits: + memory: "128Mi" + cpu: "200m" diff --git a/k8s/moj-servis/service.yaml b/k8s/moj-servis/service.yaml new file mode 100644 index 0000000..5fd3938 --- /dev/null +++ b/k8s/moj-servis/service.yaml @@ -0,0 +1,14 @@ +# k8s/moj-servis/service.yaml +apiVersion: v1 +kind: Service +metadata: + name: moj-servis-svc + namespace: student-vucicj +spec: + selector: + app: moj-servis + ports: + - port: 80 + targetPort: 8000 + protocol: TCP + type: NodePort