37 lines
844 B
YAML
37 lines
844 B
YAML
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:
|
|
- name: GOLIFEHK_WORKDIR
|
|
value: "/workdir"
|
|
- name: TELEGRAM_API_TOKEN
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: golifehk-conf
|
|
key: TELEGRAM_API_TOKEN
|
|
volumes:
|
|
volumeMounts:
|
|
- mountPath: /workdir
|
|
name: workdir
|
|
volumes:
|
|
- name: workdir
|
|
emptyDir:
|
|
sizeLimit: 10Mi
|