74 lines
1.8 KiB
YAML
74 lines
1.8 KiB
YAML
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 |