Added CI resources

This commit is contained in:
2022-09-14 23:21:27 +08:00
parent 9b48f2ee50
commit 619a99a6dd
4 changed files with 86 additions and 0 deletions

26
k8s/deployments.yaml Normal file
View File

@@ -0,0 +1,26 @@
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: TELEGRAM_API_TOKEN
valueFrom:
secretKeyRef:
name: golifehk-conf
key: TELEGRAM_API_TOKEN