Hi all,
I setup FDB cluster by FDBCluster operator with TLS (self-signed certificate by cert-manager
). Then I setup FDBBackup that use same TLS certificate. After backup deployment started, only backup_agent
process running inside backup pod, fdbbackup
process is not (1). Then I run fdbbackup start
manual, if I use parameter sc=0
(disable TLS) the backup work, else sc=1
(enable TLS) it not (2).
I have 2 point unclear. First is as FDB backup document, after setup FDB backup by operator, it will start 2 process are backup_agent
and fdbbackup start
, in my case only backup_agent
. Second is TLS is used and worked for communicate inside cluster only, not work for talk to S3.
Here is my config for FDBBackup operator
apiVersion: apps.foundationdb.org/v1beta2
kind: FoundationDBBackup
metadata:
name: fdb-cluster
spec:
blobStoreConfiguration:
accountName: <access_key_id>@s3.us-east-2.amazonaws.com
backupName: daily-backup
bucket: ci-cd-code-deploy
clusterName: fdb-cluster
customParameters:
- "knob_http_request_aws_v4_header=true"
- "knob_http_verbose_level=4"
podTemplateSpec:
spec:
containers:
- env:
- name: FDB_BLOB_CREDENTIALS
value: /var/backup-credentials/credentials
- name: FDB_TLS_CERTIFICATE_FILE
value: /var/fdb-certs/tls.crt
- name: FDB_TLS_CA_FILE
value: /var/trust-ca/ca.crt
- name: FDB_TLS_KEY_FILE
value: /var/fdb-certs/tls.key
name: foundationdb
resources:
limits:
cpu: 250m
memory: 128Mi
requests:
cpu: 250m
memory: 128Mi
securityContext:
runAsGroup: 0
runAsUser: 0
volumeMounts:
- mountPath: /var/fdb-certs
name: fdb-certs
- mountPath: /var/trust-ca
name: trust-ca
- mountPath: /var/backup-credentials
name: backup-credentials
initContainers:
- name: foundationdb-kubernetes-init
resources:
limits:
cpu: 100m
memory: 128Mi
requests:
cpu: 100m
memory: 128Mi
securityContext:
runAsUser: 0
volumes:
- name: backup-credentials
secret:
secretName: aws-credentials
- name: fdb-certs
secret:
secretName: fdb-cluster-certificate
- name: trust-ca
secret:
secretName: root-secret
snapshotPeriodSeconds: 60
version: 6.3.23