简体   繁体   English

当我执行 helm install XYZ 时,哪个文件/脚本首先运行?

[英]Which file/script runs first when i do helm install XYZ?

When I do hel install <app_name> which file or script among the chart.yaml, values.yaml or any other.当我安装 <app_name> 时,chart.yaml、values.yaml 或任何其他文件或脚本中的哪个文件或脚本。

Thanks in advance.提前致谢。

The only thing that matters is the order in which resources are submitted to the Kubernetes cluster.唯一重要的是资源提交到 Kubernetes 集群的顺序。 The Chart.yaml and values.yaml files do not contain any executable code and they don't "run" per se . Chart.yamlvalues.yaml文件不包含任何可执行代码,它们本身并不“运行”。 Each of the files in templates/ is processed independently, there is no global state, and a template file doesn't produce anything other than its YAML output, so the template files could be processed in any order or even all at the same time and you'd get the same result. templates/中的每个文件都是独立处理的,没有全局状态,模板文件除了 YAML 输出之外不会产生任何东西,因此模板文件可以按任何顺序处理,甚至可以同时处理,并且你会得到相同的结果。

Helm does have a specific order in which it submits different kinds of objects to a cluster. Helm 确实有一个特定的顺序,它向集群提交不同类型的对象。 These are intended to minimize problems from object dependencies being unresolved.这些旨在最大程度地减少未解决的对象依赖关系所带来的问题。 For example, a Deployment can reference a ConfigMap, so ConfigMap is early in that list and Deployment much later on.例如,一个 Deployment 可以引用一个 ConfigMap,因此 ConfigMap 在该列表的前面,而 ​​Deployment 则在后面。 Within each Kubernetes object kind, the objects are submitted in arbitrary order.在每个 Kubernetes 对象类型中,对象以任意顺序提交。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Helm:如何从repo安装最新的helm图表 - Helm : how do I Install the latest helm chart from repo 在头盔安装过程中,头盔“预安装”钩子调用脚本 - Helm `pre-install `hook calling to script during helm install 如何使用 crossplane 将 helm charts(使用 provider-helm)安装到其他集群中 - How do I use crossplane to Install helm charts (with provider-helm) into other cluster 我如何等待一个钩子,这是一个在掌舵中完成的工作? - How do I wait for a hook which is a job to complete in helm? 我有一个 python 脚本在 kubernetes pod 的容器内运行。如何停止与 pod 一起运行的脚本? - I have a python script running inside a container of kubernetes pod.How do i stop the script which runs along with the starting of the pod? 如何在yaml文件中使用json变量(Helm) - How do I use json variables in a yaml file (Helm) 调用 helm install 时 Celery 任务停止 - Celery task stops when calling helm install 我的 JupyterHub 配置文件有什么问题? 使用 helm 安装 Jupyter 时出错 - What is wrong with my JupyterHub config file ? Error when using helm to install Jupyter 使用Helm安装时如何配置nginx? - How to configure nginx when using Helm to install? 如何使用 Helm 安装 Prometheus 以便它可以从浏览器中使用? - How do I install Prometheus with Helm so that it's available from the browser?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM