Customizing calico helm chart

Hi,
we are currently deploying calico via flux2 in our k8s clusters:
Repo:

apiVersion: source.toolkit.fluxcd.io/v1beta1
kind: HelmRepository
metadata:
  name: projectcalico
  namespace: flux-system
spec:
  interval: 5m
  url: https://docs.projectcalico.org/charts

Helmrelease:

apiVersion: helm.toolkit.fluxcd.io/v2beta1
kind: HelmRelease
metadata:
  name: projectcalico
  namespace: calico-system
spec:
  chart:
    spec:
      chart: tigera-operator
      interval: 1m
      sourceRef:
        kind: HelmRepository
        name: projectcalico
        namespace: flux-system
      version: 3.x
  interval: 5m

Is there a way to customize the values of the chart, particularly the node variables like:
IP_AUTODETECTION_METHOD

for instance:

  values:
    node:
      env:
        - name: IP_AUTODETECTION_METHOD
          value: can-reach=www.google.de 

doesn’t seem to work.

Thanks

See the “customize-the-helm-chart” section in Install using Helm

In this case, I think you want to set installation.calicoNetwork.nodeAddressAutodetectionV4: can-reach=www.google.de

in values.yaml.

1 Like

Unfortunately this does not work. Helm shows the correct values applied by flux though:

helm get -n calico-system values projectcalico

USER-SUPPLIED VALUES:
installation.calicoNetwork.nodeAddressAutodetectionV4: canReach=www.google.de

but the calico pods still have this values applied:

kubectl get po -n calico-system calico-node-7kvcb -o yaml | grep -2 AUTO
    - name: IP
      value: autodetect
    - name: IP_AUTODETECTION_METHOD
      value: first-found
    - name: IP6