From 71a2596f45a598b0687d7faf6c63f57f7b024d4e Mon Sep 17 00:00:00 2001 From: Marija Musa Date: Tue, 31 Mar 2026 11:34:17 +0200 Subject: [PATCH] add: moj-servis k8s manifests (deployment + service) --- deployment.yaml | 27 +++++++++++++++++++++++++++ k8s/moj-servis/service.yaml | 13 +++++++++++++ 2 files changed, 40 insertions(+) create mode 100644 deployment.yaml create mode 100644 k8s/moj-servis/service.yaml diff --git a/deployment.yaml b/deployment.yaml new file mode 100644 index 0000000..d1a6d26 --- /dev/null +++ b/deployment.yaml @@ -0,0 +1,27 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: moj-servis + namespace: student-marijam1909 +spec: + replicas: 1 + selector: + matchLabels: + app: moj-servis + template: + metadata: + labels: + app: moj-servis + spec: + containers: + - name: moj-servis + image: git.fpmoz.sum.ba/marijam1909/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..651ef49 --- /dev/null +++ b/k8s/moj-servis/service.yaml @@ -0,0 +1,13 @@ +apiVersion: v1 +kind: Service +metadata: + name: moj-servis-svc + namespace: student-marijam190 +spec: + selector: + app: moj-servis + ports: + - port: 80 + targetPort: 8000 + protocol: TCP + type: NodePort