Skip to content

Commit

Permalink
copy k3s kubeconfig to default location
Browse files Browse the repository at this point in the history
  • Loading branch information
paul-gilber committed Nov 6, 2023
1 parent f698a3d commit 0d9c60a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,14 @@ jobs:
k3s_version: ['', v1.28.2+k3s1, v1.27.7+k3s1, v1.26.10+k3s1]
runs-on: ubuntu-latest
env:
KUBECONFIG: /etc/rancher/k3s/k3s.yaml
K3S_KUBECONFIG: /etc/rancher/k3s/k3s.yaml
steps:
- name: Setup k3s
run: |
curl -sfL https://get.k3s.io | INSTALL_K3S_VERSION=${{ matrix.k3s_version }} sh -
sudo cp ${{ env.K3S_KUBECONFIG }} ~/.kube/config
chown $USER ~/.kube/config
chmod 600 ~/.kube/config
# Kubectl is pre-installed in GitHub-hosted runners: https://github.com/actions/runner-images/blob/main/images/linux/Ubuntu2204-Readme.md#tools
- name: Get Version and Nodes
Expand Down

0 comments on commit 0d9c60a

Please sign in to comment.