2026-09-14 23:46:40 -04:00
|
|
|
apiVersion: apps/v1
|
|
|
|
|
kind: Deployment
|
|
|
|
|
metadata:
|
|
|
|
|
name: siriusdevops-contact
|
|
|
|
|
namespace: siriusdevops
|
|
|
|
|
spec:
|
|
|
|
|
replicas: 1
|
|
|
|
|
selector:
|
|
|
|
|
matchLabels:
|
|
|
|
|
app: siriusdevops-contact
|
|
|
|
|
template:
|
|
|
|
|
metadata:
|
|
|
|
|
labels:
|
|
|
|
|
app: siriusdevops-contact
|
|
|
|
|
spec:
|
|
|
|
|
tolerations:
|
|
|
|
|
- key: dedicated
|
|
|
|
|
operator: Exists
|
|
|
|
|
effect: PreferNoSchedule
|
|
|
|
|
nodeSelector:
|
2026-10-20 09:01:01 -04:00
|
|
|
kubernetes.io/hostname: siriussec
|
2026-09-14 23:46:40 -04:00
|
|
|
containers:
|
|
|
|
|
- name: contact-api
|
2026-11-02 17:17:36 -05:00
|
|
|
image: forgejo.siriusdevops.com/sirius/siriusdevops-contact:f0dde2f48c8224fb80d801ecb0d155c93332dc13
|
|
|
|
|
imagePullPolicy: IfNotPresent
|
2026-09-14 23:46:40 -04:00
|
|
|
command: ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "8090"]
|
|
|
|
|
ports:
|
|
|
|
|
- containerPort: 8090
|
|
|
|
|
name: http
|
|
|
|
|
env:
|
|
|
|
|
- name: TG_TOKEN
|
|
|
|
|
valueFrom:
|
|
|
|
|
secretKeyRef:
|
|
|
|
|
name: siriusdevops-contact
|
|
|
|
|
key: TG_TOKEN
|
|
|
|
|
- name: TG_CHAT
|
|
|
|
|
valueFrom:
|
|
|
|
|
secretKeyRef:
|
|
|
|
|
name: siriusdevops-contact
|
|
|
|
|
key: TG_CHAT
|
|
|
|
|
readinessProbe:
|
|
|
|
|
httpGet:
|
|
|
|
|
path: /health
|
|
|
|
|
port: 8090
|
|
|
|
|
initialDelaySeconds: 5
|
|
|
|
|
periodSeconds: 10
|
|
|
|
|
resources:
|
|
|
|
|
requests:
|
|
|
|
|
cpu: 50m
|
|
|
|
|
memory: 128Mi
|
|
|
|
|
limits:
|
|
|
|
|
memory: 256Mi
|