Skip to content

Commit

Permalink
kind infra, run etcd in memory
Browse files Browse the repository at this point in the history
Currently we encounter bad performance of KIND
cluster on DinD setup, we get 'etcdserver: timeout errors'
that causes jobs to fail often.

In such cases it is recommanded [1] to use in-memory etcd
Running etcd in memory should improve performance and
will make sriov provider more stabilized.

[1] kubernetes-sigs/kind#845

Signed-off-by: Or Mergi <[email protected]>
  • Loading branch information
ormergi committed Nov 16, 2020
1 parent c2cf403 commit 428988c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cluster-up/cluster/kind-k8s-sriov-1.17.0/provider.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ export KIND_NODE_IMAGE="kindest/node:v1.17.0"

source ${KUBEVIRTCI_PATH}/cluster/kind/common.sh

ETCD_DATA_DIR="/mnt/tmpfs/etcd"

function up() {
if [[ "$KUBEVIRT_NUM_NODES" -ne 2 ]]; then
echo 'SR-IOV cluster can be only started with 2 nodes'
Expand All @@ -28,6 +30,8 @@ function up() {
readOnly: true
- containerPath: /dev/vfio/
hostPath: /dev/vfio/
- containerPath: /var/lib/etcd
hostPath: "$DATA_ETCD_DIR"
EOF

setup_kind
Expand Down

0 comments on commit 428988c

Please sign in to comment.