在GitLab工具箱图中禁用对象存储

发布于 2025-01-29 09:05:06 字数 1428 浏览 5 评论 0原文

我使用官方 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文