代码之家  ›  专栏  ›  技术社区  ›  Reddysekhar Gaduputi

如何在requirements.yaml文件中构建具有精确依赖关系的伞形图helm图版本

  •  0
  • Reddysekhar Gaduputi  · 技术社区  · 8 年前

    helm 每个MS都有一个图表,还有一个伞形图表,它添加了所有这些图表,并创建了一个集成的图表,用于简单的部署目的,我们使用Nexus3作为helm repo。
    雨伞图 requirements.yaml 依赖项与版本、存储库一起添加。
    当我们在中指定确切的图表版本时 要求.yaml ,有时它无法在nexus回购中找到该图表,尽管它确实存在。经过调查发现它在 index.yaml 如果需要的版本与 索引.yaml 归档失败。
    索引.yaml 总是包含最新版本,但是如果我们想使用不同于最新版本的版本呢?我们怎样才能解决这个问题?
    以下是 要求.yaml 文件

    dependencies: - name: ms1 version: "1.3.0" repository: http://user:passwd@nexus_host:8081/repository/helm_chart_repo/ms1 - name: ms2 version: "1.3.0" repository: http://user:passwd@nexus_host:8081/repository/helm_chart_repo/ms2 - name: ms3 version: "1.2.0" repository: http://user:passwd@nexus_host:8081/repository/helm_chart_repo/ms3 - name: ms4 version: "1.3.1" repository: http://user:passwd@nexus_host:8081/repository/helm_chart_repo/ms4

    1 回复  |  直到 8 年前
        1
  •  1
  •   Rafał Leszko    8 年前

    如果所需版本的头盔图存在于存储库中,但不存在于 index.yaml ,则意味着 索引.yaml 不正确。它应该包含存储库中的所有版本。

    检查是否 helm repo index <directory> 总是在添加新版本后执行。

    推荐文章