fix(gotosocial): rm pg_super_pass from app env

This commit is contained in:
JJGadgets
2023-05-14 19:54:53 +08:00
parent e612968119
commit 5fff5df910
3 changed files with 28 additions and 0 deletions

View File

@@ -55,6 +55,7 @@ spec:
tls:
- hosts:
- *host
secretName: gotosocial-tls
podSecurityContext:
runAsUser: &uid 568
runAsGroup: *uid
@@ -87,3 +88,5 @@ spec:
envFrom:
- secretRef:
name: gotosocial-pg
- secretRef:
name: gotosocial-pg-superuser

View File

@@ -16,4 +16,12 @@ stringData:
INIT_POSTGRES_DBNAME: *db
INIT_POSTGRES_USER: *user
INIT_POSTGRES_PASS: *pass
---
apiVersion: v1
kind: Secret
metadata:
name: "gotosocial-pg-superuser"
namespace: "gotosocial"
type: Opaque
stringData:
INIT_POSTGRES_SUPER_PASS: "${SECRET_PG_DEFAULT_SUPER_PASS}"

View File

@@ -0,0 +1,17 @@
---
apiVersion: cert-manager.io/v1
kind: Certificate
metadata:
name: &app gotosocial
namespace: *app
spec:
secretName: gotosocial-tls
issuerRef:
name: letsencrypt-production
kind: ClusterIssuer
privateKey:
algorithm: ECDSA
size: 384
commonName: social.jjgadgets.tech
dnsNames:
- social.jjgadgets.tech