在GitLab工具箱图中禁用对象存储
我使用官方 gitlab工具箱图表 生成的备份 https://rancher.com/docs/k3s/latest/en/storage/“ rel =“ nofollow noreferrer”> k3s default local-path
。
这是我的配置。
toolbox:
enabled: true
replicas: 1
backups:
cron:
enabled: true
concurrencyPolicy: Replace
persistence:
enabled: false
accessMode: 'ReadWriteOnce'
size: '50Gi'
schedule: '0 1 * * *'
persistence:
storageClass: 'local-path'
enabled: true
accessMode: 'ReadWriteOnce'
size: '50Gi'
这是kubectl exec<工具箱pod name>的输出。 - it-备份
。
2022-05-17 06:40:57 +0000 -- Dumping repositories ... done
Dumping registry ...
empty
Dumping uploads ...
done
Dumping artifacts ...
empty
Dumping lfs ...
empty
Dumping packages ...
empty
Dumping external_diffs ...
empty
Dumping terraform_state ...
empty
Dumping pages ...
empty
Packing up backup tar
[DONE] Backup can be found at s3://gitlab-backups/1652769629_2022_05_17_14.10.2-ee_gitlab_backup.tar
由于某些原因,工具箱仍然使用s3
作为存储创建。 是否有人知道如何在gitlab工具箱中禁用ObjectStorage
并将备份保存在local-path
中?
I use the official Gitlab Toolbox Chart in K3S and want to to store the generated backup in K3S default local-path
.
This is my config.
toolbox:
enabled: true
replicas: 1
backups:
cron:
enabled: true
concurrencyPolicy: Replace
persistence:
enabled: false
accessMode: 'ReadWriteOnce'
size: '50Gi'
schedule: '0 1 * * *'
persistence:
storageClass: 'local-path'
enabled: true
accessMode: 'ReadWriteOnce'
size: '50Gi'
And this is the output of kubectl exec <Toolbox pod name> -it -- backup-utility
.
2022-05-17 06:40:57 +0000 -- Dumping repositories ... done
Dumping registry ...
empty
Dumping uploads ...
done
Dumping artifacts ...
empty
Dumping lfs ...
empty
Dumping packages ...
empty
Dumping external_diffs ...
empty
Dumping terraform_state ...
empty
Dumping pages ...
empty
Packing up backup tar
[DONE] Backup can be found at s3://gitlab-backups/1652769629_2022_05_17_14.10.2-ee_gitlab_backup.tar
For some reason the toolbox still uses s3
as storage and I am not able to access the backup
in the local-path
even though a toolbox volume gets created.
Does anybody know how to disable the objectStorage
in Gitlab Toolbox and save the backup in local-path
?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论