diff --git a/k8s.yaml b/k8s.yaml new file mode 100644 index 0000000..e6b77f5 --- /dev/null +++ b/k8s.yaml @@ -0,0 +1,42 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: drinkool_frontend + labels: + app: web +spec: + replicas: 1 + selector: + matchLabels: + app: web + template: + metadata: + labels: + app: web + spec: + containers: + - name: nginx-container + image: nginx:latest + ports: + - containerPort: 80 + resources: + limits: + cpu: "50m" + memory: "32Mi" + requests: + cpu: "10m" + memory: "16Mi" +--- +apiVersion: v1 +kind: Service +metadata: + name: my-web-service +spec: + type: NodePort + selector: + app: web + ports: + - protocol: TCP + port: 80 + targetPort: 80 + nodePort: 30080 \ No newline at end of file