add vault secrets and fix still poiting to election
Some checks failed
Build and Push Container Image / build-and-push (push) Failing after 3m14s

This commit is contained in:
2026-05-13 11:03:14 +02:00
parent 98a77049cd
commit cba49b734c
11 changed files with 83 additions and 50 deletions

View File

@@ -2,14 +2,13 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: election
namespace: vhsmp
name: taskarr
labels:
app: election
app: taskarr
spec:
selector:
matchLabels:
app: election
app: taskarr
replicas: 1
strategy:
rollingUpdate:
@@ -19,13 +18,13 @@ spec:
template:
metadata:
annotations:
kubectl.kubernetes.io/default-container: election
kubectl.kubernetes.io/default-container: taskarr
labels:
app: election
app: taskarr
spec:
containers:
- name: election
image: election
- name: taskarr
image: main
imagePullPolicy: IfNotPresent
resources:
requests:
@@ -44,33 +43,33 @@ spec:
periodSeconds: 10
ports:
- containerPort: 3000
name: election
name: http
env:
- name: DATABASE_URL
valueFrom:
secretKeyRef:
name: election
name: taskarr-app
key: DATABASE_URL
- name: ORIGIN
valueFrom:
secretKeyRef:
name: election
name: taskarr-app
key: ORIGIN
- name: BETTER_AUTH_SECRET
valueFrom:
secretKeyRef:
name: election
name: taskarr-app
key: BETTER_AUTH_SECRET
- name: GITHUB_CLIENT_SECRET
- name: GITEA_CLIENT_SECRET
valueFrom:
secretKeyRef:
name: election
key: GITHUB_CLIENT_SECRET
- name: GITHUB_CLIENT_ID
name: taskarr-app
key: GITEA_CLIENT_SECRET
- name: GITEA_CLIENT_ID
valueFrom:
secretKeyRef:
name: election
key: GITHUB_CLIENT_ID
name: taskarr-app
key: GITEA_CLIENT_ID
restartPolicy: Always
---