kubernetes - 您可以禁用在Charts/目录中扩展的依赖项吗

标签 kubernetes kubernetes-helm

使用 Helm ,我知道您可以使用条件禁用 requirements.yaml 中的依赖项。

但是,我有一个依赖项已复制到 Charts / 目录中并进行了扩展,因为我需要对其进行更多控制。

鉴于没有通过 requirements.yaml 而不是通过在图表/文件夹中进行扩展,是否可以有条件地包含此依赖项?

最佳答案

是的,根据helm dependency docs:

Starting from 2.2.0, repository can be defined as the path to the directory of the dependency charts stored locally. The path should start with a prefix of "file://". For example,

# requirements.yaml
dependencies:
- name: nginx
 version: "1.2.3"
 repository: "file://../dependency_chart/nginx"

If the dependency chart is retrieved locally, it is not required to have the repository added to helm by "helm repo add". Version matching is also supported for this case.

关于kubernetes - 您可以禁用在Charts/目录中扩展的依赖项吗,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58028005/

相关文章:

kubernetes - 带有 'roles/container.admin'的Google云服务帐户

Kubernetes 版本升级和停机

amazon-web-services - Terraform helm_release 在设置标签上失败

kubernetes - Helm chart 错误 : could not find expected ':'

macos - Docker错误正在运行镜像hyperkube-amd64:v1.7.0

kubernetes - 使用 iptables 阻止来自集群外部的所有 Kubernetes 节点端口通信

amazon-web-services - K8S Pod 在不同节点上有两个副本

kubernetes-helm - 如何查看Helm版本中使用了哪些自定义值?

kubernetes-helm - 领事 Helm 失败

azure - 是否建议在非工作时间将 AKS 用户节点池缩减至 0?