core/k8s/base/ennoblement-consumer.yml
Dawid Wysokiński 41ffbd4d67
All checks were successful
ci/woodpecker/push/govulncheck Pipeline was successful
ci/woodpecker/push/test Pipeline was successful
chore: add go.uber.org/automaxprocs
2024-03-29 06:58:31 +01:00

51 lines
1.4 KiB
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: twhelp-ennoblement-consumer-deployment
spec:
selector:
matchLabels:
app: twhelp-ennoblement-consumer
template:
metadata:
labels:
app: twhelp-ennoblement-consumer
spec:
containers:
- name: twhelp-ennoblement-consumer
image: twhelp
args: [consumer, ennoblement]
env:
- name: APP_MODE
value: development
- name: LOG_LEVEL
value: debug
- name: DB_CONNECTION_STRING
valueFrom:
secretKeyRef:
name: twhelp-secret
key: db-connection-string
- name: DB_MAX_OPEN_CONNS
value: "3"
- name: DB_MAX_IDLE_CONNS
value: "1"
- name: RABBITMQ_CONNECTION_STRING
valueFrom:
secretKeyRef:
name: twhelp-secret
key: rabbitmq-connection-string
- name: AUTO_MAX_PROCS
value: "true"
livenessProbe:
exec:
command: [cat, /tmp/live]
initialDelaySeconds: 5
periodSeconds: 10
resources:
requests:
cpu: 100m
memory: 100Mi
limits:
cpu: 300m
memory: 300Mi