feat: Let flux manage cilium after bootstrap

This commit is contained in:
2025-12-02 02:21:16 +01:00
parent 2d2573f2fa
commit 75f6c62d03
13 changed files with 104 additions and 6 deletions

View File

@@ -1,5 +1,6 @@
#!/usr/bin/env bash
set -euo pipefail
root=$(git rev-parse --show-toplevel)
tools=(talosctl cilium-cli yq helm)
cilium_version=1.18.4
@@ -101,6 +102,7 @@ elif [ ! $count -eq 0 ]; then
echo " [Success]"
fi
cluster_env=$(kubectl get configmaps -n flux-system cluster-variables -o jsonpath={.data.cluster_env})
if ! helm status -n kube-system cilium &> /dev/null; then
echo "Installing cilium..."
helm repo add cilium https://helm.cilium.io/ > /dev/null
@@ -110,7 +112,8 @@ if ! helm status -n kube-system cilium &> /dev/null; then
cilium/cilium \
--version ${cilium_version} \
--namespace kube-system \
--values cilium.yaml
--values ${root}/controllers/cilium/base/values.yaml \
--values ${root}/controllers/cilium/${cluster_env}/values.yaml
fi
cilium-cli status --wait