129. index.yaml 与基于 git 的 Rancher App 仓库中图表显现的优先级
Situation 地理位置Rancher supports git-based repositories in the Apps feature, enabling deployment of Helm charts into Rancher-managed clusters, from a git repository. An example of such a git repository is provided by the RKE2 cluster template examples at https://github.com/rancher/cluster-template-examplesRancher 在 Apps 功能中支持基于 git 的仓库 使 Helm 图表能够从 git 仓库部署到 Rancher 管理的集群中。RKE2 集群模板示例提供了此类 git 仓库的示例 https://github.com/rancher/cluster-template-examplesWithin an Apps git repository, two formats are supported:在 Apps git 仓库中支持两种格式Un-archived and un-compressed Helm charts can be defined within sub-directories of the git repository, as in the example at https://github.com/rancher/cluster-template-examples/tree/main/charts未归档和未压缩的 Helm 图表可以在 git 仓库的子目录中定义如 https://github.com/rancher/cluster-template-examples/tree/main/charts 的示例Archived and compressed Helm charts can be included within the git-repository and referenced from a Helm index.yaml file, as in the example at https://github.com/rancher/cluster-template-examples/blob/main/index.yaml归档和压缩后的 Helm 图表可以包含在 git 仓库中并从 Helm index.yaml 文件中引用如 https://github.com/rancher/cluster-template-examples/blob/main/index.yaml 的示例If both formats are present in a single git repository, which takes precedence when Rancher loads available charts?如果两个格式都存在于同一个 git 仓库中那么当 Rancher 加载可用图表时哪个格式优先Resolution 结局When an index.yaml file is present on the repository, this takes precedence and Rancher will load the list of charts and the referenced chart archives from the index file. This skips the process of walking the repository directory to build the index dynamically from charts in sub-directories.当仓库中存在 index.yaml 文件时该文件优先Rancher 会从索引文件加载图表列表和参考图表存档。这样可以跳过从子目录中的图表动态移动仓库目录来构建索引的过程。访问Rancher-K8S解决方案博主企业合作伙伴 https://blog.csdn.net/lidw2009
本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.coloradmin.cn/o/2497526.html
如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈,一经查实,立即删除!