Gitlab Toolbox Cron backups fail to backup repositories due to Istio injection turned off
(BB 1.43.0) Running into issues utilizing gitlab toolbox backup cron due to the bb defaults istio injection to off on the job. Fails to dump repositories due to connection reset. Gitaly data backend is EBS
2022-09-22 16:30:55 +0000 -- Dumping repositories ...
{"command":"create","gl_project_path":"gitlab-instance-574b6209.wiki","level":"info","msg":"started create","relative_path":"@groups/d4/73/d4735e3a265e16eee03f59718b9b5d03019c07d8b6c51f90da3a666eec13ab35.wiki.git","storage_name":"default","time":"2022-09-22T16:30:55.578Z"}
{"command":"create","error":"manager: isEmpty: rpc error: code = Unavailable desc = connection closed before server preface received","gl_project_path":"gitlab-instance-574b6209.wiki","level":"error","msg":"create failed","relative_path":"@groups/d4/73/d4735e3a265e16eee03f59718b9b5d03019c07d8b6c51f90da3a666eec13ab35.wiki.git","storage_name":"default","time":"2022-09-22T16:30:55.582Z"}
Was able to fix with
postRenderers:
- kustomize:
patchesJson6902:
- patch:
- op: replace
path: >-
/spec/jobTemplate/spec/template/metadata/annotations/sidecar.istio.io~1inject
value: 'true'
target:
group: batch
kind: CronJob
name: gitlab-toolbox-backup
namespace: gitlab
version: v1
and
gitlab:
toolbox:
backups:
cron:
extraArgs:
"--s3tool awscli && sleep 5 && curl -X POST http://localhost:15020/quitquitquit"
Edited by Austin Denton