homek8s/apps/base/sirius-growth/deployment-api.yaml

52 lines
1.4 KiB
YAML
Raw Permalink Normal View History

apiVersion: apps/v1
kind: Deployment
metadata:
name: sirius-growth-contact
namespace: sirius-growth
spec:
replicas: 1
selector:
matchLabels:
app: sirius-growth-contact
template:
metadata:
labels:
app: sirius-growth-contact
spec:
tolerations:
- key: dedicated
operator: Exists
effect: PreferNoSchedule
nodeSelector:
kubernetes.io/hostname: siriussec
containers:
- name: contact-api
image: forgejo.siriusdevops.com/sirius/sirius-growth-contact:latest
imagePullPolicy: Always
command: ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "8090"]
ports:
- containerPort: 8090
name: http
env:
- name: TG_TOKEN
valueFrom:
secretKeyRef:
name: sirius-growth-contact
key: TG_TOKEN
- name: TG_CHAT
valueFrom:
secretKeyRef:
name: sirius-growth-contact
key: TG_CHAT
readinessProbe:
httpGet:
path: /health
port: 8090
initialDelaySeconds: 5
periodSeconds: 10
resources:
requests:
cpu: 50m
memory: 128Mi
limits:
memory: 256Mi