跳转到内容
GitHub

配置 Helm

把 Helm chart repository 指向 Depsilo /helm/ 路由,并了解 upstream 与 chart 源的对应关系。

Helm 通过 helm repo add 指向 Depsilo 的 /helm/ 路由。一个 Depsilo Helm upstream 对应一个 chart repository;chart 源由服务端 upstream 配置决定,不是 URL 后缀。

终端窗口
helm repo add depsilo http://localhost:23333/helm/
helm repo update
helm search repo depsilo | head

如果团队使用多个 chart 仓库,为每个仓库配置一个 upstream,并使用不同的本地 repo 名称区分;不要假设 /helm/<name> 这样的路径会自动切换上游。

  1. 确认实例就绪

    终端窗口
    curl -fsS http://localhost:23333/ready
  2. 拉取一个 chart

    终端窗口
    helm pull depsilo/<chart> --untar --destination /tmp/depsilo-helm
  3. 在 Admin 中核对

    在 Access logs 中确认 /helm/ 请求;index.yaml 与 chart 包都应经过 Depsilo。