Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
brainfood
/
k8s-helmfiles
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
39600130
authored
2022-07-20 16:13:58 -0500
by
Adam Heath
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Milestone: logical backups of postgres now work.
1 parent
7f159647
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
62 additions
and
0 deletions
postgres-operator/charts/extra-config/extra-config.yaml
postgres-operator/charts/extra-config/kustomization.yaml
postgres-operator/environments/default-values.yaml
postgres-operator/helmfile.yaml
postgres-operator/charts/extra-config/extra-config.yaml
0 → 100644
View file @
3960013
apiVersion
:
v1
kind
:
ConfigMap
metadata
:
name
:
postgres-extra-config
---
apiVersion
:
v1
kind
:
Secret
metadata
:
name
:
postgres-extra-config
---
postgres-operator/charts/extra-config/kustomization.yaml
0 → 100644
View file @
3960013
apiVersion
:
kustomize.config.k8s.io/v1beta1
kind
:
Kustomization
resources
:
-
extra-config.yaml
postgres-operator/environments/default-values.yaml
View file @
3960013
namespace
:
postgres-operator
backup
:
provider
:
s3
s3
:
access_key_id
:
"
"
secret_access_key
:
"
"
bucket
:
"
"
region
:
"
"
endpoint
:
"
"
sse
:
"
AES256"
wale_endpoint
:
"
"
...
...
postgres-operator/helmfile.yaml
View file @
3960013
...
...
@@ -8,7 +8,43 @@ repositories:
---
releases
:
-
name
:
postgres-extra-config
namespace
:
{{
.Values.namespace
}}
chart
:
charts/extra-config
strategicMergePatches
:
-
apiVersion
:
v1
kind
:
ConfigMap
metadata
:
name
:
postgres-extra-config
namespace
:
{{
.Values.namespace
}}
data
:
USE_WALE_BACKUP
:
"
true"
AWS_ACCESS_KEY_ID
:
{{
.Values.backup.s3.access_key_id
}}
WALE_S3_ENDPOINT
:
{{
.Values.backup.s3.wale_endpoint
}}
-
apiVersion
:
v1
kind
:
Secret
metadata
:
name
:
postgres-extra-config
namespace
:
{{
.Values.namespace
}}
stringData
:
AWS_SECRET_ACCESS_KEY
:
{{
.Values.backup.s3.secret_access_key
}}
-
name
:
postgres-operator
namespace
:
{{
.Values.namespace
}}
chart
:
postgres-operator-charts/postgres-operator
disableValidation
:
true
values
:
-
configLogicalBackup
:
logical_backup_provider
:
{{
.Values.backup.provider
}}
logical_backup_s3_access_key_id
:
{{
.Values.backup.s3.access_key_id
}}
logical_backup_s3_bucket
:
{{
.Values.backup.s3.bucket
}}
logical_backup_s3_region
:
{{
.Values.backup.s3.region
}}
logical_backup_s3_endpoint
:
{{
.Values.backup.s3.endpoint
}}
logical_backup_s3_secret_access_key
:
{{
.Values.backup.s3.secret_access_key
}}
logical_backup_s3_sse
:
{{
.Values.backup.s3.sse
}}
configAwsOrGcp
:
aws_region
:
{{
.Values.backup.s3.region
}}
wal_s3_bucket
:
{{
.Values.backup.s3.bucket
}}
configKubernetes
:
pod_environment_configmap
:
{{
.Values.namespace
}}
/postgres-extra-config
pod_environment_secret
:
{{
.Values.namespace
}}
/postgres-extra-config
...
...
Please
register
or
sign in
to post a comment