apiVersion: apps/v1
kind: Deployment
metadata:
name: todo
spec:
replicas: 1
selector:
matchLabels:
component: todo
template:
metadata:
labels:
component: todo
spec:
containers:
- name: main
image: ghcr.io/xdavidwu/c/todosrht:3535
volumeMounts:
- name: secrets
mountPath: /etc/sr.ht/config.ini
subPath: config.ini
readinessProbe:
httpGet:
port: 5003
- name: api
image: ghcr.io/xdavidwu/c/todosrht:3535
command:
- /usr/bin/todo.sr.ht-api
- todosrht.app:app
volumeMounts:
- name: secrets
mountPath: /etc/sr.ht/config.ini
subPath: config.ini
readinessProbe:
httpGet:
port: 5103
path: /query/api-meta.json
- name: webhooks
image: ghcr.io/xdavidwu/c/todosrht:3535
command:
- /usr/bin/celery
- -A
- todosrht.webhooks
- worker
- --loglevel=info
- --concurrency=2
volumeMounts:
- name: secrets
mountPath: /etc/sr.ht/config.ini
subPath: config.ini
volumes:
- name: secrets
secret:
secretName: secrets