Open camilamacedo86 opened 3 months ago
If we edit the cronjobs like kubectl edit cronjob couchbase-backup-full -n <namespace>
to set
securityContext:
fsGroup: 1000
that works but the BUG is that the HelmChart and Operator (CRD BackupCouchbase) does not allow you set the securityContext to the cronjob :--(
Example
# -- CouchbaseBackups runs a job which preserves data into backups
backups:
my-couchbase-backup:
name: couchbase-backup
strategy: full_incremental
full:
schedule: "0 3 * * 0"
incremental:
schedule: "0 3 * * 1-6"
successfulJobsHistoryLimit: 1
failedJobsHistoryLimit: 3
securityContext:
fsGroup: 1000
The securityContext need also become an spec of CouchbaseBackup.spec
Hi @Lumin343, @tahmmee @etos @ceejatec @jeffdgr8
Folks, could you please add the option for we set the SecurityContext via the HelmChart/CouchBase backup ?
I am facing the error
[Errno 13] Permission denied: '/data/scriptlogs'
such as reported in: https://www.couchbase.com/forums/t/issue-with-file-permissions-setting-up-couchbase-backup-using-operator/34290The SecurityContext option used:
Could you please let us know how we should configure the HelmChart to do the backups and do not face this issue?
Versions: