From bb2211fc15ee6473317d7040fbb4bd61c1140e6d Mon Sep 17 00:00:00 2001 From: RNRod Date: Fri, 21 Jul 2023 15:10:05 +0200 Subject: [PATCH] install postgres update redis version issue: https://git.badhouseplants.net/badhouseplants/k8s-cluster-config/issues/86\#issuecomment-1612 --- badhouseplants/helmfile.yaml | 5 +++++ badhouseplants/values/secrets.postgres.yaml | 24 +++++++++++++++++++++ badhouseplants/values/values.postgres.yaml | 10 +++++++++ releases.yaml | 12 +++++++++-- 4 files changed, 49 insertions(+), 2 deletions(-) create mode 100644 badhouseplants/values/secrets.postgres.yaml create mode 100644 badhouseplants/values/values.postgres.yaml diff --git a/badhouseplants/helmfile.yaml b/badhouseplants/helmfile.yaml index 1fa6efa..0378438 100644 --- a/badhouseplants/helmfile.yaml +++ b/badhouseplants/helmfile.yaml @@ -67,6 +67,11 @@ releases: namespace: database-service createNamespace: true + - <<: *postgres + installed: true + namespace: database-service + createNamespace: true + bases: - ../environments.yaml - ../repositories.yaml diff --git a/badhouseplants/values/secrets.postgres.yaml b/badhouseplants/values/secrets.postgres.yaml new file mode 100644 index 0000000..a3223c8 --- /dev/null +++ b/badhouseplants/values/secrets.postgres.yaml @@ -0,0 +1,24 @@ +global: + postgresql: + auth: + postgresPassword: ENC[AES256_GCM,data:NopZyPWiTKPPVzLcvVLN3JgMQjQ=,iv:rWVhR2wChvQSIa7eBPrvnWO2ydLZ2D8oF87INiy8NX4=,tag:Xb0qbED6QXu5QBgHY6hrOA==,type:str] +sops: + kms: [] + gcp_kms: [] + azure_kv: [] + hc_vault: [] + age: + - recipient: age1vzkv97n2p7gfkw8dyx8ctz2kumattz89th2jq47zyjyrarmnssysdkw9v8 + enc: | + -----BEGIN AGE ENCRYPTED FILE----- + YWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IFgyNTUxOSBVbENvMm1YQzlSV3UrSEJ4 + VTZ1RWVKTlpsUDFzQlVjMlJEZmIvaldHVXlFCm9SVzN3Z0dwTGo1Y3dnaHhvSmpi + bDIrMlJhbHhKUmRZejdkTmJiSDYvY2MKLS0tIFpRbkwySVh2MDlNWEFNZHVtY2Ns + Wmh3Z29ZSlBhbmFJNkFQZlE3aXpMMk0K14rSXjSF08xkil+fFJpeMV+6XChTJ2/3 + OQecJtg+0NQPyvC+kR5qKq8roiSzNNJgTVg2wwKMdukKVVTbEGi0gA== + -----END AGE ENCRYPTED FILE----- + lastmodified: "2023-07-21T12:58:01Z" + mac: ENC[AES256_GCM,data:ShHWH9RIL4rJ5X0IvThOtyM28AC+1bJLr4PJJdYSLtV9T7Wcs2LbmWxtM2tpRyzMeZjYKJrsstGYgxBevr1BpfGBIeR4+JCwrbdK4AOq2VbLMpH7nMOU/huuUpxOopweRBTwZOEMRBkSkEk4qPvebLHEqUi6aNGdtxOINmHv/fA=,iv:C/iJOSshanbhSQ9Be712aSN2B8aXndPpP4655SQONeQ=,tag:BAJIzrYfh8a59OzkxDOrbw==,type:str] + pgp: [] + unencrypted_suffix: _unencrypted + version: 3.7.3 \ No newline at end of file diff --git a/badhouseplants/values/values.postgres.yaml b/badhouseplants/values/values.postgres.yaml new file mode 100644 index 0000000..db7f7ab --- /dev/null +++ b/badhouseplants/values/values.postgres.yaml @@ -0,0 +1,10 @@ +architecture: standalone + +auth: + database: postgres + +persistence: + size: 1Gi + +metrics: + enabled: false \ No newline at end of file diff --git a/releases.yaml b/releases.yaml index d71cd55..a993cd5 100644 --- a/releases.yaml +++ b/releases.yaml @@ -280,6 +280,14 @@ templates: redis: &redis name: redis chart: bitnami/redis - version: 17.11.2 + version: 17.13.2 inherit: - - template: default-env-values \ No newline at end of file + - template: default-env-values + + postgres: &postgres + name: postgres + chart: bitnami/postgresql + version: 12.6.8 + inherit: + - template: default-env-values + - template: default-env-secrets