commit 1c5849e7ffe6a491a35d3f26b23c81a8d4ff0955 Author: jenkins Date: Mon Jun 17 18:12:04 2024 +0800 Add astro-deployment.yaml diff --git a/astro-deployment.yaml b/astro-deployment.yaml new file mode 100644 index 0000000..e505534 --- /dev/null +++ b/astro-deployment.yaml @@ -0,0 +1,61 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: astro-deployment + namespace: astro-mc-internal + labels: + app: astro-deployment +spec: + minReadySeconds: 3 + strategy: + type: RollingUpdate + rollingUpdate: + maxSurge: 40%a + maxUnavailable: 40% + selector: + matchLabels: + app: astro-pod + template: + metadata: + labels: + app: astro-pod + spec: + containers: + - name: astro + image: pvgharbor.duckdns.org/astro/astro:v1.4 + imagePullPolicy: IfNotPresent + ports: + - name: astro-port + containerPort: 8080 + resources: + limits: + cpu: 400m +# memory: 100Mi + requests: + cpu: 200m +# memory: 50Mi + startupProbe: + tcpSocket: + port: astro-port + initialDelaySeconds: 5 + failureThreshold: 60 + timeoutSeconds: 3 + periodSeconds: 10 + livenessProbe: + tcpSocket: + port: astro-port + failureThreshold: 3 + periodSeconds: 10 + timeoutSeconds: 3 + readinessProbe: + tcpSocket: + port: astro-port + periodSeconds: 3 + timeoutSeconds: 3 + volumeMounts: + - mountPath: /project + name: astro-content + volumes: + - name: astro-content + persistentVolumeClaim: + claimName: astro-data-pv-claim