Chart 文件结构
Chart 文件结构
wordpress/
Chart.yaml # A YAML file containing information about the chart
LICENSE # OPTIONAL: A plain text file containing the license for the chart
README.md # OPTIONAL: A human-readable README file
requirements.yaml # OPTIONAL: A YAML file listing dependencies for the chart
values.yaml # The default configuration values for this chart
charts/ # A directory containing any charts upon which this chart depends.
templates/ # A directory of templates that, when combined with values,
# will generate valid Kubernetes manifest files.
templates/NOTES.txt # OPTIONAL: A plain text file containing short usage notes
Chart.yaml 文件
apiVersion: The chart API version, always "v1" (required)
name: The name of the chart (required)
version: A SemVer 2 version (required)
kubeVersion: A SemVer range of compatible Kubernetes versions (optional)
description: A single-sentence description of this project (optional)
keywords:
- A list of keywords about this project (optional)
home: The URL of this project's home page (optional)
sources:
- A list of URLs to source code for this project (optional)
maintainers: # (optional)
- name: The maintainer's name (required for each maintainer)
email: The maintainer's email (optional for each maintainer)
url: A URL for the maintainer (optional for each maintainer)
engine: gotpl # The name of the template engine (optional, defaults to gotpl)
icon: A URL to an SVG or PNG image to be used as an icon (optional).
appVersion: The version of the app that this contains (optional). This needn't be SemVer.
deprecated: Whether this chart is deprecated (optional, boolean)
tillerVersion: The version of Tiller that this chart requires. This should be expressed as a SemVer range: ">2.0.0" (optional)
如果熟悉
Charts 和版本控制
每个
nginx-1.2.3.tgz
更复杂的
许多
appVersion 字段
请注意,
弃用charts
在管理
- 更新
chart 的Chart.yaml 以将chart 标记为启用,并且更新版本 - 在
chart Repository 中发布新的chart 版本 - 从源代码库中删除
chart (例如git )
Chart 许可证文件,自述文件和说明文件
chart 提供的应用程序或服务的描述- 运行
chart 的任何前提条件或要求 - 选项
values.yaml
和默认值的说明 - 任何其他可能与安装或配置
chart 相关的信息
templates/NOTES.txt
文件,在安装后以及查看版本状态时将打印出来。此文件将作为模板 template 进行评估,并可用于显示使用说明,后续步骤或任何其他与发布helm install
或 helm status
,建议保持内容简短并把更多细节指向自述文件。