From edcb5d149e13016913fc475e786c80e9ea1be808 Mon Sep 17 00:00:00 2001 From: gitea_admin Date: Thu, 2 Apr 2026 16:57:10 +0000 Subject: [PATCH] Add environments/pubmedis/base/deployment.yaml --- environments/pubmedis/base/deployment.yaml | 74 ++++++++++++++++++++++ 1 file changed, 74 insertions(+) create mode 100644 environments/pubmedis/base/deployment.yaml diff --git a/environments/pubmedis/base/deployment.yaml b/environments/pubmedis/base/deployment.yaml new file mode 100644 index 0000000..3fc33a2 --- /dev/null +++ b/environments/pubmedis/base/deployment.yaml @@ -0,0 +1,74 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: pubmedis + labels: + app.kubernetes.io/name: pubmedis + app.kubernetes.io/part-of: infinicaretech +spec: + replicas: 2 + revisionHistoryLimit: 5 + selector: + matchLabels: + app.kubernetes.io/name: pubmedis + strategy: + type: RollingUpdate + rollingUpdate: + maxUnavailable: 0 + maxSurge: 1 + template: + metadata: + labels: + app.kubernetes.io/name: pubmedis + spec: + imagePullSecrets: + - name: gitea-registry + automountServiceAccountToken: false + containers: + - name: pubmedis + image: 10.0.0.3:31427/gitea_admin/pubmedis:latest + ports: + - name: http + containerPort: 3000 + protocol: TCP + envFrom: + - secretRef: + name: pubmedis-env + env: + - name: PORT + value: "3000" + - name: NODE_ENV + value: "production" + - name: HOSTNAME + value: "0.0.0.0" + resources: + requests: + cpu: 200m + memory: 512Mi + limits: + cpu: "1" + memory: 1Gi + startupProbe: + httpGet: + path: / + port: http + initialDelaySeconds: 10 + periodSeconds: 5 + failureThreshold: 30 + timeoutSeconds: 3 + livenessProbe: + httpGet: + path: / + port: http + initialDelaySeconds: 0 + periodSeconds: 30 + timeoutSeconds: 5 + failureThreshold: 3 + readinessProbe: + httpGet: + path: / + port: http + initialDelaySeconds: 0 + periodSeconds: 10 + timeoutSeconds: 3 + failureThreshold: 2 \ No newline at end of file