From 37f2bca56d6c3c943f02e1331270ec0db51c1e21 Mon Sep 17 00:00:00 2001 From: Aleksei Sizov Date: Wed, 24 Jul 2024 08:30:16 -0500 Subject: [PATCH] HMC-104: change default network provider to calico for k0s --- .../aws-hosted-cp/templates/k0smotroncontrolplane.yaml | 6 +++++- templates/aws-standalone-cp/templates/k0scontrolplane.yaml | 4 ++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/templates/aws-hosted-cp/templates/k0smotroncontrolplane.yaml b/templates/aws-hosted-cp/templates/k0smotroncontrolplane.yaml index 97dc5cac0..372f9bb32 100644 --- a/templates/aws-hosted-cp/templates/k0smotroncontrolplane.yaml +++ b/templates/aws-hosted-cp/templates/k0smotroncontrolplane.yaml @@ -20,6 +20,10 @@ spec: name: {{ include "k0sconfig.name" . }} namespace: {{ .Release.Namespace }} spec: + network: + provider: calico + calico: + mode: ipip extensions: helm: repositories: @@ -39,4 +43,4 @@ spec: - --cluster-name={{ include "cluster.name" . }} # Removing the default `node-role.kubernetes.io/control-plane` node selector # TODO: it does not work - # nodeSelector: "" \ No newline at end of file + # nodeSelector: "" diff --git a/templates/aws-standalone-cp/templates/k0scontrolplane.yaml b/templates/aws-standalone-cp/templates/k0scontrolplane.yaml index 98a713ac9..b2e3ad31f 100644 --- a/templates/aws-standalone-cp/templates/k0scontrolplane.yaml +++ b/templates/aws-standalone-cp/templates/k0scontrolplane.yaml @@ -21,6 +21,10 @@ spec: api: extraArgs: anonymous-auth: "true" + network: + provider: calico + calico: + mode: ipip extensions: helm: repositories: