BEFORE YOU START
The following instructions require you to make minor changes to the content of your own hosted Helm repository.
When provisioning new clusters it is often useful to install selected software packages to them as part of their bootstrap process. Weave GitOps Enterprise enables this by installing standard Helm charts to the newly provisioned clusters. This feature lowers the ongoing operational overhead and allows for the clusters to be immediately usable after being provisioned. To set this up you need to:
- Annotate a Helm chart to make it available for installation
- Select which profiles you want installed when creating a cluster
In order for a chart to become available for installation, it needs to include a
weave.works/profile annotation. For example:
annotations: weave.works/profile: observability-profileapiVersion: v1appVersion: 1.0.0description: Observability Helm chart for Kuberneteshome: https://github.com/weaveworks/observability-profilekubeVersion: '>=1.19.0-0'name: observabilitysources:- https://github.com/weaveworks/observability-profileversion: 1.0.0
The annotation value is not important and can be left blank i.e.
"". Helm charts with the
weave.works/profile annotation are called Profiles.
Currenly WGE inspects the current namespace that it is deployed in (in the management cluster) for a
HelmRepository object named
weaveworks-charts. This Kubernetes object should be pointing to a Helm chart repository that includes the profiles that are available for installation.
When creating a cluster from the UI using a CAPI template, these profiles should be available for selection in the
Profiles section of the template. For example:
As shown above, some profiles will be optional whereas some profiles will be required. This is determined when the template is authored and allows for operation teams to control which Helm packages should be installed on new clusters by default.