From ffa170117b6e90bee5da623ef7c66f0b6d133671 Mon Sep 17 00:00:00 2001 From: Vegard Hagen Date: Sun, 1 Dec 2024 21:26:39 +0100 Subject: [PATCH] fix(keycloak): new postgres volume --- k8s/infra/auth/keycloak/pvc.yaml | 4 ++-- k8s/infra/auth/keycloak/values.yaml | 2 +- tofu/kubernetes/bootstrap/volumes/README.md | 14 +++++++------- tofu/kubernetes/main.tf | 2 +- 4 files changed, 11 insertions(+), 11 deletions(-) diff --git a/k8s/infra/auth/keycloak/pvc.yaml b/k8s/infra/auth/keycloak/pvc.yaml index ad8fe0f3..dca84a29 100644 --- a/k8s/infra/auth/keycloak/pvc.yaml +++ b/k8s/infra/auth/keycloak/pvc.yaml @@ -1,11 +1,11 @@ apiVersion: v1 kind: PersistentVolumeClaim metadata: - name: keycloak-db + name: keycloak-postgres namespace: keycloak spec: storageClassName: proxmox-csi - volumeName: pv-keycloak + volumeName: pv-keycloak-postgres accessModes: - ReadWriteOnce resources: diff --git a/k8s/infra/auth/keycloak/values.yaml b/k8s/infra/auth/keycloak/values.yaml index c0a450cc..eb6c035c 100644 --- a/k8s/infra/auth/keycloak/values.yaml +++ b/k8s/infra/auth/keycloak/values.yaml @@ -33,5 +33,5 @@ postgresql: values: [ euclid ] persistence: enabled: true - existingClaim: keycloak-db + existingClaim: keycloak-postgres diff --git a/tofu/kubernetes/bootstrap/volumes/README.md b/tofu/kubernetes/bootstrap/volumes/README.md index f7c36788..0f03ad2c 100644 --- a/tofu/kubernetes/bootstrap/volumes/README.md +++ b/tofu/kubernetes/bootstrap/volumes/README.md @@ -20,12 +20,12 @@ curl --request POST \ ## rm state ```shell -tofu state rm "module.volumes.module.proxmox-volume[\"pv-lidarr-config\"].restapi_object.proxmox-volume" -tofu state rm "module.volumes.module.proxmox-volume[\"pv-radarr-config\"].restapi_object.proxmox-volume" -tofu state rm "module.volumes.module.proxmox-volume[\"pv-sonarr-config\"].restapi_object.proxmox-volume" -tofu state rm "module.volumes.module.proxmox-volume[\"pv-plex-config\"].restapi_object.proxmox-volume" -tofu state rm "module.volumes.module.proxmox-volume[\"pv-jellyfin-config\"].restapi_object.proxmox-volume" -tofu state rm "module.volumes.module.proxmox-volume[\"pv-qbittorrent-config\"].restapi_object.proxmox-volume" +tofu state rm 'module.volumes.module.proxmox-volume["pv-lidarr-config"].restapi_object.proxmox-volume' +tofu state rm 'module.volumes.module.proxmox-volume["pv-radarr-config"].restapi_object.proxmox-volume' +tofu state rm 'module.volumes.module.proxmox-volume["pv-sonarr-config"].restapi_object.proxmox-volume' +tofu state rm 'module.volumes.module.proxmox-volume["pv-plex-config"].restapi_object.proxmox-volume' +tofu state rm 'module.volumes.module.proxmox-volume["pv-jellyfin-config"].restapi_object.proxmox-volume' +tofu state rm 'module.volumes.module.proxmox-volume["pv-qbittorrent-config"].restapi_object.proxmox-volume' tofu state rm 'module.volumes.module.proxmox-volume["pv-keycloak"].restapi_object.proxmox-volume' tofu state rm 'module.volumes.module.proxmox-volume["pv-netbird-management"].restapi_object.proxmox-volume' tofu state rm 'module.volumes.module.proxmox-volume["pv-netbird-signal"].restapi_object.proxmox-volume' @@ -58,7 +58,7 @@ tofu state rm module.volumes.module.persistent-volume ```shell tofu import 'module.volumes.module.persistent-volume["pv-jellyfin-config"].kubernetes_persistent_volume.pv' pv-jellyfin-config -tofu import 'module.volumes.module.persistent-volume["pv-keycloak-db"].kubernetes_persistent_volume.pv' pv-keycloak-db +tofu import 'module.volumes.module.persistent-volume["pv-keycloak"].kubernetes_persistent_volume.pv' pv-keycloak-db tofu import 'module.volumes.module.persistent-volume["pv-lidarr-config"].kubernetes_persistent_volume.pv' pv-lidarr-config tofu import 'module.volumes.module.persistent-volume["pv-netbird-management"].kubernetes_persistent_volume.pv' pv-netbird-management tofu import 'module.volumes.module.persistent-volume["pv-netbird-signal"].kubernetes_persistent_volume.pv' pv-netbird-signal diff --git a/tofu/kubernetes/main.tf b/tofu/kubernetes/main.tf index ea88cc84..bb9e5e76 100644 --- a/tofu/kubernetes/main.tf +++ b/tofu/kubernetes/main.tf @@ -128,7 +128,7 @@ module "volumes" { node = "euclid" size = "1G" } - pv-keycloak = { + pv-keycloak-postgres = { node = "euclid" size = "2G" }