commit 1263dbc62698995d5c59782c00dd71a36ac186ce Author: Leonarda Prusina Date: Tue Mar 31 11:34:58 2026 +0200 add: moj-servis k8s manifests (deployment + service) diff --git a/deployment.yaml b/deployment.yaml new file mode 100644 index 0000000..e5c4ae1 --- /dev/null +++ b/deployment.yaml @@ -0,0 +1,27 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: moj-servis + namespace: student-Leonarda11 +spec: + replicas: 1 + selector: + matchLabels: + app: moj-servis + template: + metadata: + labels: + app: moj-servis + spec: + containers: + - name: moj-servis + image: git.fpmoz.sum.ba/Leonarda11/moj-servis:1.0 + ports: + - containerPort: 8000 + resources: + requests: + memory: "64Mi" + cpu: "50m" + limits: + memory: "128Mi" + cpu: "200m" \ No newline at end of file diff --git a/service.yaml b/service.yaml new file mode 100644 index 0000000..e341ee9 --- /dev/null +++ b/service.yaml @@ -0,0 +1,13 @@ +apiVersion: v1 +kind: Service +metadata: + name: moj-servis-svc + namespace: student-Leonarda11 +spec: + selector: + app: moj-servis + ports: + - port: 80 + targetPort: 8000 + protocol: TCP + type: NodePort