mirror of
https://github.com/ditkrg/db-backup-s3.git
synced 2026-01-25 15:23:03 +00:00
Add example ConfigMap and Secret for MSSQL backup configuration
- Introduced `k8s-mssql-configmap-example.yaml` and `k8s-mssql-secret-example.yaml` to provide templates for non-sensitive and sensitive configurations, respectively. - Updated `README.md` and `k8s-statefulset-test.yaml` to reference the new example files. - Created `k8s-statefulset-with-sidecar.yaml` for deploying MSSQL with a backup sidecar, enhancing the backup functionality. Signed-off-by: Shakar Bakr <5h4k4r.b4kr@gmail.com>
This commit is contained in:
@@ -5,9 +5,9 @@
|
||||
# MSSQL's native backup files.
|
||||
#
|
||||
# Prerequisites:
|
||||
# 1. Create the ConfigMap: kubectl apply -f k8s-mssql-configmap-example.yaml
|
||||
# 2. Create the Secret: kubectl apply -f k8s-mssql-secret-example.yaml
|
||||
# 3. Apply this StatefulSet: kubectl apply -f k8s-statefulset-with-sidecar.yaml
|
||||
# 1. Create the ConfigMap: kubectl apply -f tests/k8s-mssql-configmap-example.yaml
|
||||
# 2. Create the Secret: kubectl apply -f tests/k8s-mssql-secret-example.yaml
|
||||
# 3. Apply this StatefulSet: kubectl apply -f tests/k8s-statefulset-test.yaml
|
||||
#
|
||||
# The backup container will automatically run backups according to the SCHEDULE.
|
||||
#
|
||||
@@ -117,14 +117,14 @@ spec:
|
||||
#
|
||||
# This StatefulSet uses a ConfigMap for non-sensitive config and a Secret for credentials:
|
||||
#
|
||||
# ConfigMap (mssql-config) - See k8s-mssql-configmap-example.yaml
|
||||
# ConfigMap (mssql-config) - See tests/k8s-mssql-configmap-example.yaml
|
||||
# - DATABASE_SERVER, DATABASE_HOST, DATABASE_NAME, DATABASE_PORT
|
||||
# - MSSQL_DATA_DIR, MSSQL_EXTRA_OPTS
|
||||
# - SCHEDULE, BACKUP_KEEP_DAYS
|
||||
# - S3_BUCKET, S3_PREFIX, S3_REGION, S3_ENDPOINT, S3_S3V4
|
||||
# Note: DATABASE_HOST is overridden to "localhost" in the StatefulSet for sidecar pattern
|
||||
#
|
||||
# Secret (mssql-general) - See k8s-mssql-secret-example.yaml
|
||||
# Secret (mssql-general) - See tests/k8s-mssql-secret-example.yaml
|
||||
# - MSSQL_SA_PASSWORD
|
||||
# - DATABASE_USER, DATABASE_PASSWORD
|
||||
# - S3_ACCESS_KEY_ID, S3_SECRET_ACCESS_KEY
|
||||
|
||||
Reference in New Issue
Block a user