feat: Move to Cilium
This commit is contained in:
parent
cf10e1e963
commit
a5d3dcf046
@ -33,6 +33,8 @@
|
||||
enable = true;
|
||||
extraFlags = [
|
||||
"--cluster-domain ${inputs.secrets.lab.k3s.clusterDomain}"
|
||||
"--flannel-backend=none"
|
||||
"--disable-network-policy"
|
||||
];
|
||||
disable = [
|
||||
# "coredns" # CoreDNS is required for Flux to be able to bootstrap the cluster (Flux needs to resolve the git repo)
|
||||
@ -41,6 +43,7 @@
|
||||
"local-storage"
|
||||
"metrics-server"
|
||||
"runtimes"
|
||||
# "kube-proxy" # TODO: Move to cilium
|
||||
];
|
||||
manifests = {
|
||||
git-ssh-key = {
|
||||
@ -57,6 +60,20 @@
|
||||
};
|
||||
};
|
||||
autoDeployCharts = {
|
||||
cilium = {
|
||||
name = "cilium";
|
||||
repo = "oci://quay.io/cilium/charts/cilium";
|
||||
version = "1.18.6";
|
||||
hash = "sha256-+yr38lc5X1+eXCFE/rq/K0m4g/IiNFJHuhB+Nu24eUs=";
|
||||
createNamespace = true;
|
||||
targetNamespace = "cilium-system";
|
||||
values = {
|
||||
operator.replicas = 1;
|
||||
};
|
||||
extraFieldDefinitions = {
|
||||
bootstrap = true;
|
||||
};
|
||||
};
|
||||
flux-operator = {
|
||||
name = "flux-operator";
|
||||
repo = "oci://ghcr.io/controlplaneio-fluxcd/charts/flux-operator";
|
||||
@ -152,11 +169,13 @@
|
||||
|
||||
environment.variables = {
|
||||
KUBECONFIG = "/etc/rancher/k3s/k3s.yaml";
|
||||
CILIUM_NAMESPACE = "cilium-system";
|
||||
};
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
fluxcd
|
||||
k9s
|
||||
cilium-cli
|
||||
];
|
||||
|
||||
# Use correct disko profile
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user