Files
taskarr-mgr/deploy/base/deployment.yaml
2026-05-13 09:10:47 +02:00

78 lines
1.8 KiB
YAML

# https://kubernetes.io/docs/concepts/workloads/controllers/deployment/
apiVersion: apps/v1
kind: Deployment
metadata:
name: election
namespace: vhsmp
labels:
app: election
spec:
selector:
matchLabels:
app: election
replicas: 1
strategy:
rollingUpdate:
maxSurge: 25%
maxUnavailable: 25%
type: RollingUpdate
template:
metadata:
annotations:
kubectl.kubernetes.io/default-container: election
labels:
app: election
spec:
containers:
- name: election
image: election
imagePullPolicy: IfNotPresent
resources:
requests:
cpu: 100m
memory: 100Mi
limits:
cpu: 100m
memory: 100Mi
livenessProbe:
tcpSocket:
port: 3000
initialDelaySeconds: 5
timeoutSeconds: 5
successThreshold: 1
failureThreshold: 3
periodSeconds: 10
ports:
- containerPort: 3000
name: election
env:
- name: DATABASE_URL
valueFrom:
secretKeyRef:
name: election
key: DATABASE_URL
- name: ORIGIN
valueFrom:
secretKeyRef:
name: election
key: ORIGIN
- name: BETTER_AUTH_SECRET
valueFrom:
secretKeyRef:
name: election
key: BETTER_AUTH_SECRET
- name: GITHUB_CLIENT_SECRET
valueFrom:
secretKeyRef:
name: election
key: GITHUB_CLIENT_SECRET
- name: GITHUB_CLIENT_ID
valueFrom:
secretKeyRef:
name: election
key: GITHUB_CLIENT_ID
restartPolicy: Always
---