rancher / cluster-template-examples

Apache License 2.0
43 stars 128 forks source link

Provide values to packaged rke2-charts #14

Closed jbartlet closed 1 year ago

jbartlet commented 1 year ago

As part of our rke2 template, we want to deploy Calico as the CNI but with bgp enabled. The rke2-calico chart values here turn bgp off (Calico's default is bgp on). I can enable bgp with a HelmChartConfig after deployment, but it cannot successfully update all pods because the calico node daemonset uses a RollingUpdate strategy, and the pods health check includes being able to use bgp to communicate with a peer...which fails, as all the other pods are waiting on the first to complete.

We don't want to resort to manual pod deletion. Is there a way to pass the value:

installation:
  calicoNetwork:
    bgp: Enabled

to the rke2-calico chart at cluster deployment via the rke2 template?

jbartlet commented 1 year ago

Nvm, just figured out how to use chartValues {} for this very purpose. Thanks.