Skip to content

Commit

Permalink
recover latest keycloak backup
Browse files Browse the repository at this point in the history
  • Loading branch information
mmalyska committed Sep 30, 2024
1 parent 40a29f8 commit 8bba240
Show file tree
Hide file tree
Showing 8 changed files with 36 additions and 50 deletions.
File renamed without changes.
File renamed without changes.
16 changes: 1 addition & 15 deletions cluster/projects/system/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,21 +30,6 @@ app-of-apps:
- ServerSideApply=true
- RespectIgnoreDifferences=true
ignoreDifferences:
- name: kubernetes-dashboard
namespace: kubernetes-dashboard
path: dashboard
selfHeal: true
plugin:
env:
- name: SOPS_SECRET_FILE
value: secret.sec.yaml
extraSyncOptions:
- RespectIgnoreDifferences=true
ignoreDifferences:
- name: kubernetes-dashboard-csrf
kind: Secret
jsonPointers:
- /data/csrf
- name: dyndns
namespace: dyndns
path: dyndns
Expand All @@ -57,6 +42,7 @@ app-of-apps:
- name: keycloak
namespace: identity
path: identity/keycloak
enabled: true
selfHeal: true
plugin:
env:
Expand Down
70 changes: 35 additions & 35 deletions cluster/system/identity/keycloak/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ global:
imagePullPolicy: IfNotPresent
server:
name: server
replicas: 1
replicas: 0
podAnnotations: {}
podLabels: {}
containerPort: 8080
Expand Down Expand Up @@ -67,39 +67,39 @@ postgres:
instances: 2
storage:
size: 2Gi
# bootstrap:
# recovery:
# source: crunchy-cluster
# externalClusters:
# - name: crunchy-cluster
# barmanObjectStore:
# serverName: keycloakdb-cnpg
# destinationPath: "s3://k8s-at-home-backup/cnpg/keycloak"
# endpointURL: <secret:s3_endpoint>
# s3Credentials:
# accessKeyId:
# name: keycloakdb-secrets
# key: S3_ACCESS_KEY_ID
# secretAccessKey:
# name: keycloakdb-secrets
# key: S3_ACCESS_SECRET_KEY
bootstrap:
recovery:
source: crunchy-cluster
externalClusters:
- name: crunchy-cluster
barmanObjectStore:
serverName: keycloakdb-cnpg
destinationPath: "s3://k8s-at-home-backup/cnpg/keycloak"
endpointURL: <secret:s3_endpoint>
s3Credentials:
accessKeyId:
name: keycloakdb-secrets
key: S3_ACCESS_KEY_ID
secretAccessKey:
name: keycloakdb-secrets
key: S3_ACCESS_SECRET_KEY
monitoring:
enablePodMonitor: true
backup:
retentionPolicy: "10d"
barmanObjectStore:
destinationPath: "s3://k8s-at-home-backup/cnpg/keycloak"
endpointURL: <secret:s3_endpoint>
s3Credentials:
accessKeyId:
name: keycloakdb-secrets
key: S3_ACCESS_KEY_ID
secretAccessKey:
name: keycloakdb-secrets
key: S3_ACCESS_SECRET_KEY
scheduledBackups:
- name: keycloakdb-cnpg-backup
spec:
immediate: true
schedule: "55 0 0 * * *"
backupOwnerReference: self
# backup:
# retentionPolicy: "10d"
# barmanObjectStore:
# destinationPath: "s3://k8s-at-home-backup/cnpg/keycloak"
# endpointURL: <secret:s3_endpoint>
# s3Credentials:
# accessKeyId:
# name: keycloakdb-secrets
# key: S3_ACCESS_KEY_ID
# secretAccessKey:
# name: keycloakdb-secrets
# key: S3_ACCESS_SECRET_KEY
# scheduledBackups:
# - name: keycloakdb-cnpg-backup
# spec:
# immediate: true
# schedule: "55 0 0 * * *"
# backupOwnerReference: self

0 comments on commit 8bba240

Please sign in to comment.