Skip to content

Commit

Permalink
new try
Browse files Browse the repository at this point in the history
  • Loading branch information
mxschmitt committed Mar 30, 2024
1 parent f4e6814 commit 804acb9
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,15 @@ jobs:
- uses: actions/checkout@v3
- name: Install k3s
run: |
curl -sfL https://get.k3s.io | K3S_KUBECONFIG_MODE=777 INSTALL_K3S_EXEC="server --docker --disable traefik --kubelet-arg=image-gc-high-threshold=85 --kubelet-arg=image-gc-low-threshold=80 --kubelet-arg=eviction-hard=imagefs.available<1%,nodefs.available<1% --kubelet-arg=eviction-minimum-reclaim=imagefs.available=1%,nodefs.available=1%" sudo sh -
mkdir -p /etc/rancher/k3s
sudo bash -c 'cat <<EOL >/etc/rancher/k3s/config.yaml
kubelet-arg:
- "kube-reserved=cpu=500m,memory=1Gi,ephemeral-storage=2Gi"
- "system-reserved=cpu=500m, memory=1Gi,ephemeral-storage=2Gi"
- "eviction-hard=memory.available<500Mi,nodefs.available<10%"
EOL'
curl -sfL https://get.k3s.io | K3S_KUBECONFIG_MODE=777 INSTALL_K3S_EXEC="server --docker --disable traefik --kubelet-arg=image-gc-high-threshold=85 --kubelet-arg=image-gc-low-threshold=80" sudo sh -
mkdir -p ~/.kube
sudo cp /etc/rancher/k3s/k3s.yaml ~/.kube/config
sudo chown $USER ~/.kube/config
Expand All @@ -39,8 +47,6 @@ jobs:
- name: Install Playwright operating system dependencies
run: npx playwright install-deps
working-directory: e2e
- name: Setup tmate session
uses: mxschmitt/action-tmate@v3
- name: Run e2e tests
working-directory: e2e
run: |
Expand Down

0 comments on commit 804acb9

Please sign in to comment.