Skip to content

Commit

Permalink
Move felix configuration from env vars to global FelixConfiguration CR
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasferrandiz committed Apr 16, 2024
1 parent d874552 commit 9774b8f
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
11 changes: 11 additions & 0 deletions packages/rke2-canal/charts/templates/felixconfig.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{{ $felixConfig := dict }}
{{ range $key, $value := .Values.calico.felixConfiguration }}
{{ $_ := set $felixConfig $key $value }}
{{ end }}

apiVersion: crd.projectcalico.org/v1
kind: FelixConfiguration
metadata:
name: default
spec:
{{ $felixConfig | toYaml | indent 2 }}
8 changes: 8 additions & 0 deletions packages/rke2-canal/charts/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,14 @@ calico:
# limits:
# cpu: 250m
# memory: 256Mi
felixConfiguration:
wireguardEnabled: false
# Config required to fix RKE2 issue #1541
featureDetectOverride: "ChecksumOffloadBroken=true"
healthPort: 9099
defaultEndpointToHostAction: "Drop"
logSeveritySys: "Info"

global:
systemDefaultRegistry: ""
clusterCIDRv4: ""
Expand Down

0 comments on commit 9774b8f

Please sign in to comment.