golifehk/k8s/deployments.yaml

36 lines
811 B
YAML
Raw Normal View History

2022-09-14 15:21:27 +00:00
apiVersion: apps/v1
kind: Deployment
metadata:
name: golifehk
spec:
selector:
matchLabels:
app: golifehk
replicas: 1
template:
metadata:
labels:
app: golifehk
srv: go
spec:
imagePullSecrets:
- name: registry-auth
containers:
- name: app
image: registry.k8s.astropenguin.net/golifehk:IMAGE_TAG
env:
2023-01-30 20:36:58 +00:00
- name: GOLIFEHK_WORKDIR
value: "/workdir"
2022-09-14 15:21:27 +00:00
- name: TELEGRAM_API_TOKEN
valueFrom:
secretKeyRef:
name: golifehk-conf
key: TELEGRAM_API_TOKEN
2023-01-30 20:36:58 +00:00
volumeMounts:
- mountPath: /workdir
name: workdir
volumes:
- name: workdir
emptyDir:
sizeLimit: 10Mi