From aeb58449984980406f146a2de30298ed279847d0 Mon Sep 17 00:00:00 2001 From: Ubuntu Date: Fri, 13 Jun 2025 02:22:58 +0000 Subject: [PATCH] Initial manifest structure --- README.md | 1 + smarketing/deployments/member-deployment.yaml | 59 +++++++++++++++++++ 2 files changed, 60 insertions(+) create mode 100644 README.md create mode 100644 smarketing/deployments/member-deployment.yaml diff --git a/README.md b/README.md new file mode 100644 index 0000000..0ce0bf5 --- /dev/null +++ b/README.md @@ -0,0 +1 @@ +# Smarketing Kubernetes Manifests diff --git a/smarketing/deployments/member-deployment.yaml b/smarketing/deployments/member-deployment.yaml new file mode 100644 index 0000000..6a6995c --- /dev/null +++ b/smarketing/deployments/member-deployment.yaml @@ -0,0 +1,59 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: member + namespace: won-smarketing-ns +spec: + replicas: 2 + selector: + matchLabels: + app: member + template: + metadata: + labels: + app: member + spec: + containers: + - name: member + image: wonacr.azurecr.io/smarketing/member:latest + imagePullPolicy: Always + ports: + - containerPort: 8080 + envFrom: + - configMapRef: + name: member-config + - secretRef: + name: member-secret + resources: + requests: + cpu: 256m + memory: 256Mi + limits: + cpu: 1024m + memory: 1024Mi + startupProbe: + httpGet: + path: /actuator/health + port: 8080 + initialDelaySeconds: 30 + periodSeconds: 10 + timeoutSeconds: 5 + failureThreshold: 10 + livenessProbe: + httpGet: + path: /actuator/health + port: 8080 + initialDelaySeconds: 30 + periodSeconds: 30 + timeoutSeconds: 5 + failureThreshold: 3 + readinessProbe: + httpGet: + path: /actuator/health + port: 8080 + initialDelaySeconds: 5 + periodSeconds: 10 + timeoutSeconds: 5 + failureThreshold: 3 + imagePullSecrets: + - name: acr-secret