Skip to content

Commit

Permalink
test: update kind to use in-memory etcd (#1341)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
sdowell authored Jul 18, 2024
1 parent dd17329 commit c579239
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions e2e/nomostest/clusters/kind.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`,
Expand Down

0 comments on commit c579239

Please sign in to comment.