...
This section describes how to create External References using Helm Chart.
...
Create an External Reference Profile
Create an External Reference Profile with the type Kubernetes Properties described in External Reference (4.
01) and save it.
Change to the YAML tab and click on the download button to download the YAML file of the ConfigMap.
Info |
---|
...
Example - ConfigMap.yaml downloaded from External Reference Profile
|
Note |
---|
Caution! The label, |
Create a Helm chart with config maps
Create a Helm chart with one or more ConfigMaps that will be used in your configuration
...
:
Create an empty Helm chart using the following command:
Code Block $ helm create [name of helm chart]
A new directory is created with the specified name.
Delete everything in the templates directory in the new Helm chart.
Code Block $ rm -rf [name of helm chart]/templates/*
Add your ConfigMap YAML file downloaded in step
1.b2 of Create an External Reference Profile into the templates directory.
External Reference values will be received from the data field. Update the values for your keys.
Install your Helm chart.
Optional step: To easily maintainCode Block $ helm install [release name] ./[name of helm chart]
Move your External Reference data (optional)
Move your External Reference data
...
to the values.yaml file for easy maintenance. (This step is optional):
Add the following parameter in your ConfigMap YAML file in the
templates
directory:
See the following ConfigMap as an example:Code Block data: {{ toYaml .Values.externalReference.data | indent 2 }}
Info |
---|
...
Example - ConfigMap.yaml file
|
Move the data field from your ConfigMap YAML file to the values.yaml file.
...
Info |
---|
...
Example - values.yaml file
|
...
|
...
Note!
All the default values created by Helm can be deleted if you don't want to use them.