commit 51cae2db0b59717c6125bec176eb66e00c75cb82 Author: antoniomaric1 Date: Tue Apr 7 07:43:38 2026 +0200 add: moj-servis k8s manifests (deployment + service) diff --git a/k8s/moj-servis/deployment.yaml b/k8s/moj-servis/deployment.yaml new file mode 100644 index 0000000..deba294 --- /dev/null +++ b/k8s/moj-servis/deployment.yaml @@ -0,0 +1,27 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: moj-servis + namespace: student-antoniomaric1 +spec: + replicas: 1 + selector: + matchLabels: + app: moj-servis + template: + metadata: + labels: + app: moj-servis + spec: + containers: + - name: moj-servis + image: git.fpmoz.sum.ba/antoniomaric1/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..d632d01 --- /dev/null +++ b/k8s/moj-servis/service.yaml @@ -0,0 +1,13 @@ +apiVersion: v1 +kind: Service +metadata: + name: moj-servis-svc + namespace: student-antoniomaric1 +spec: + selector: + app: moj-servis + ports: + - port: 80 + targetPort: 8000 + protocol: TCP + type: NodePort