Files
ermnvldmr.com/ci/k8s/apps/umami/deployment.yaml
T

56 lines
1.3 KiB
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: umami
namespace: com-ermnvldmr
spec:
replicas: 1
strategy:
type: RollingUpdate
rollingUpdate:
maxUnavailable: 0
maxSurge: 1
selector:
matchLabels:
app: umami
template:
metadata:
labels:
app: umami
annotations:
config/tracker-script-name: "trace.js"
spec:
containers:
- name: umami
image: ghcr.io/umami-software/umami:postgresql-v2.14.0
imagePullPolicy: IfNotPresent
ports:
- name: http
containerPort: 3000
envFrom:
- configMapRef:
name: umami-config
- secretRef:
name: umami-secrets
resources:
requests:
cpu: 50m
memory: 128Mi
limits:
cpu: 250m
memory: 256Mi
readinessProbe:
httpGet:
path: /api/heartbeat
port: 3000
initialDelaySeconds: 10
periodSeconds: 10
timeoutSeconds: 3
livenessProbe:
httpGet:
path: /api/heartbeat
port: 3000
initialDelaySeconds: 20
periodSeconds: 20
timeoutSeconds: 3