The above example, based loosely on [https://github.com/deis/charts](https://github.com/deis/charts), is a template for a Kubernetes replication controller.
The above example, based loosely on [https://github.com/deis/charts](https://github.com/deis/charts), is a template for a Kubernetes replication controller.
It can use the following four template values:
It can use the following four template values (usually defined in a
`.values.yaml` file):
- `imageRegistry`: The source registry for the Docker image.
- `imageRegistry`: The source registry for the Docker image.
- `dockerTag`: The tag for the docker image.
- `dockerTag`: The tag for the docker image.
@ -266,6 +267,10 @@ require or dictate parameters.
### Predefined Values
### Predefined Values
Values that are supplied via a `values.yaml` file (or via the `--set`
flag) are accessible from the `.Values` object in a template. But there
are other pre-defined pieces of data you can access in your templates.
The following values are pre-defined, are available to every template, and
The following values are pre-defined, are available to every template, and
cannot be overridden. As with all values, the names are _case
cannot be overridden. As with all values, the names are _case
sensitive_.
sensitive_.
@ -333,6 +338,39 @@ Note that only the last field was overridden.
`values.yaml`. But files specified on the command line can be named
`values.yaml`. But files specified on the command line can be named
anything.
anything.
Any of these values are then accessible inside of templates using the