kubectl所需要的kubeconfig可以放在helm执行的当前目录吗
是的,可以将kubeconfig文件放在helm执行的当前目录下,然后在helm chart中通过环境变量或命令行参数引用它。例如,在helm chart中可以使用以下方式引用kubeconfig文件:
通过环境变量:
env:
- name: KUBECONFIG
value: /path/to/kubeconfig
通过命令行参数:
helm install my-chart --set kubeconfig=/path/to/kubeconfig
原文地址: https://www.cveoy.top/t/topic/gTzK 著作权归作者所有。请勿转载和采集!