From c57923922e0be240326cb38a7f7c440efba10673 Mon Sep 17 00:00:00 2001 From: Sam Dowell Date: Thu, 18 Jul 2024 10:02:57 -0700 Subject: [PATCH] test: update kind to use in-memory etcd (#1341) This updates the ClusterConfiguration used to provision kind clusters to mount etcd to a volume backed by tmpfs. This provides memory backed storage for faster i/o. --- e2e/nomostest/clusters/kind.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/e2e/nomostest/clusters/kind.go b/e2e/nomostest/clusters/kind.go index 639f463b2..0fce7b7b1 100644 --- a/e2e/nomostest/clusters/kind.go +++ b/e2e/nomostest/clusters/kind.go @@ -186,12 +186,13 @@ func createKindCluster(p *cluster.Provider, name, kcfgPath string, version KindV }, // Enable ValidatingAdmissionWebhooks in the Kind cluster, as these // are disabled by default. + // Also mount etcd to tmpfs for memory-backed storage. KubeadmConfigPatches: []string{ ` -apiVersion: kubeadm.k8s.io/v1beta2 kind: ClusterConfiguration -metadata: - name: config +etcd: + local: + dataDir: /tmp/etcd apiServer: extraArgs: "enable-admission-plugins": "ValidatingAdmissionWebhook"`,