From 9ac5f096b33068a8c74f6aca7a2179a3d9302d39 Mon Sep 17 00:00:00 2001 From: Claude AI Date: Sun, 1 Mar 2026 15:11:22 +0000 Subject: [PATCH] Add apps/nginx/deployment.yaml --- apps/nginx/deployment.yaml | 48 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 apps/nginx/deployment.yaml diff --git a/apps/nginx/deployment.yaml b/apps/nginx/deployment.yaml new file mode 100644 index 0000000..a2ae103 --- /dev/null +++ b/apps/nginx/deployment.yaml @@ -0,0 +1,48 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: nginx + namespace: nginx + labels: + app: nginx +spec: + replicas: 2 + selector: + matchLabels: + app: nginx + template: + metadata: + labels: + app: nginx + spec: + containers: + - name: nginx + image: nginx:1.25-alpine + ports: + - containerPort: 80 + resources: + requests: + cpu: 50m + memory: 64Mi + limits: + cpu: 200m + memory: 128Mi + livenessProbe: + httpGet: + path: / + port: 80 + initialDelaySeconds: 10 + periodSeconds: 30 + readinessProbe: + httpGet: + path: / + port: 80 + initialDelaySeconds: 5 + periodSeconds: 10 + volumeMounts: + - name: nginx-config + mountPath: /etc/nginx/conf.d + volumes: + - name: nginx-config + configMap: + name: nginx-config