Skip to content

Commit

Permalink
fix(keycloak): new postgres volume
Browse files Browse the repository at this point in the history
  • Loading branch information
vehagn committed Dec 1, 2024
1 parent acd6052 commit 94b74fd
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion k8s/infra/auth/keycloak/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ kind: Kustomization

resources:
- ns.yaml
- pvc.yaml
# - pvc.yaml
- secret-keycloak-admin.yaml
- secret-keycloak-db-credentials.yaml
- http-route.yaml
Expand Down
4 changes: 2 additions & 2 deletions k8s/infra/auth/keycloak/pvc.yaml
Original file line number Diff line number Diff line change
@@ -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:
Expand Down
2 changes: 1 addition & 1 deletion k8s/infra/auth/keycloak/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,5 @@ postgresql:
values: [ euclid ]
persistence:
enabled: true
existingClaim: keycloak-db
existingClaim: keycloak-postgres

14 changes: 7 additions & 7 deletions tofu/kubernetes/bootstrap/volumes/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion tofu/kubernetes/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ module "volumes" {
node = "euclid"
size = "1G"
}
pv-keycloak = {
pv-keycloak-postgres = {
node = "euclid"
size = "2G"
}
Expand Down

0 comments on commit 94b74fd

Please sign in to comment.