Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(etcd-backup): add custom CA support #78

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ The following options are used:
- `OCP_BACKUP_S3`: Use S3 to store etcd-backup snapshots
- `OCP_BACKUP_S3_NAME`: MinIO client host alias name
- `OCP_BACKUP_S3_HOST`: S3 host endpoint (with scheme)
- `OCP_BACKUP_S3_CA`: S3 host CA (if needed)
- `OCP_BACKUP_S3_BUCKET`: S3 bucket name
- `OCP_BACKUP_S3_ACCESS_KEY`: access key to access S3 bucket
- `OCP_BACKUP_S3_SECRET_KEY`: secret key to access S3 bucket
Expand Down
4 changes: 4 additions & 0 deletions backup-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ data:
OCP_BACKUP_S3: "false"
OCP_BACKUP_S3_NAME: "minio"
OCP_BACKUP_S3_HOST: "http://minio.local:9000"
OCP_BACKUP_S3_CA: |
-----BEGIN CERTIFICATE-----
...
-----END CERTIFICATE-----
OCP_BACKUP_S3_BUCKET: "etcd-backup"
OCP_BACKUP_S3_ACCESS_KEY: "randomaccesskey"
OCP_BACKUP_S3_SECRET_KEY: "secretkey"
Expand Down
6 changes: 6 additions & 0 deletions backup-cronjob.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,9 @@ spec:
- name: volume-backup
persistentVolumeClaim:
claimName: etcd-backup-pvc
- name: custom-ca
configMap:
name: backup-config
items:
- key: OCP_BACKUP_S3_CA
path: /etc/pki/ca-trust/source/anchors/ca.crt
Loading