Skip to content

Commit

Permalink
remove existing cluster
Browse files Browse the repository at this point in the history
  • Loading branch information
sgalsaleh committed Jan 23, 2024
1 parent fcab25c commit e2222ca
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/arm64-self-hosted-runner.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ on:
jobs:
create-controller:
runs-on: ubuntu-latest
env:
CLUSTER_NAME: kots-arm64-arc
steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -21,19 +23,24 @@ jobs:
tar -xzf /tmp/replicated.tar.gz -C /tmp
mv /tmp/replicated /usr/local/bin/replicated
- name: Create CMX Cluster
- name: Remove existing CMX Cluster
run: replicated cluster rm --name $CLUSTER_NAME --token '${{ secrets.C11Y_MATRIX_TOKEN }}'

- name: Create new CMX Cluster
run: |
set -euo pipefail
replicated cluster create \
--token '${{ secrets.C11Y_MATRIX_TOKEN }}' \
--distribution eks \
--instance-type m7g.2xlarge \
--name kots-arm64-arc-${{ github.run_id }} \
--name $CLUSTER_NAME \
--ttl 144h \
--wait 120m
replicated cluster kubeconfig --name kots-arm64-arc-${{ github.run_id }}
replicated cluster kubeconfig \
--token '${{ secrets.C11Y_MATRIX_TOKEN }}' \
--name $CLUSTER_NAME
# reference: https://docs.github.com/en/actions/hosting-your-own-runners/managing-self-hosted-runners-with-actions-runner-controller/quickstart-for-actions-runner-controller
- name: Setup Actions Runner Controller (ARC)
Expand Down

0 comments on commit e2222ca

Please sign in to comment.