Skip to content

Commit

Permalink
Run etcd using tmpfs storage
Browse files Browse the repository at this point in the history
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
  • Loading branch information
dims committed Dec 26, 2023
1 parent 13b68a0 commit 00849a2
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 1 deletion.
8 changes: 8 additions & 0 deletions .github/workflows/periodic_conformance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,21 @@ jobs:
chmod +x ./kind
sudo mv ./kind /usr/local/bin/kind
- name: Create tmpfs for etcd
run: |
sudo mkdir -p /tmp/etcd
sudo mount -t tmpfs tmpfs /tmp/etcd
- name: Create kind cluster with three nodes
run: |
cat <<EOF | kind create cluster --image kindest/node:${K8S_VERSION} --config=-
kind: Cluster
apiVersion: kind.x-k8s.io/v1alpha4
nodes:
- role: control-plane
extraMounts:
- containerPath: /var/lib/etcd
hostPath: /tmp/etcd
- role: worker
- role: worker
EOF
Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/periodic_e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,21 @@ jobs:
chmod +x ./kind
sudo mv ./kind /usr/local/bin/kind
- name: Create tmpfs for etcd
run: |
sudo mkdir -p /tmp/etcd
sudo mount -t tmpfs tmpfs /tmp/etcd
- name: Create kind cluster with three nodes
run: |
cat <<EOF | kind create cluster --image kindest/node:${K8S_VERSION} --config=-
kind: Cluster
apiVersion: kind.x-k8s.io/v1alpha4
nodes:
- role: control-plane
extraMounts:
- containerPath: /var/lib/etcd
hostPath: /tmp/etcd
- role: worker
- role: worker
EOF
Expand Down
16 changes: 15 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,23 @@ jobs:
chmod +x ./kind
sudo mv ./kind /usr/local/bin/kind
- name: Create tmpfs for etcd
run: |
sudo mkdir -p /tmp/etcd
sudo mount -t tmpfs tmpfs /tmp/etcd
- name: Create kind cluster
run: |
kind create cluster --image kindest/node:${K8S_VERSION}
cat <<EOF | kind create cluster --image kindest/node:${K8S_VERSION} --config=-
kind: Cluster
apiVersion: kind.x-k8s.io/v1alpha4
nodes:
- role: control-plane
extraMounts:
- containerPath: /var/lib/etcd
hostPath: /tmp/etcd
- role: worker
EOF
- name: Set up kubectl
run: |
Expand Down

0 comments on commit 00849a2

Please sign in to comment.