Hi Guys,
Somehow kubectl version is failing even if we set KUBECONFIG ( given in the course) in github actions. I’ve almost tried 20 different ways to check if I’m wrong anywhere , Can someone help is there any mistake in kubeconfig itself in the course, Anyone faced this issue before ?
dev-deploy:
needs: docker
runs-on: ubuntu-latest
environment:
name: development
steps:
- uses: actions/checkout@v4
- uses: azure/setup-kubectl@v4
with:
version: v1.31.0
- uses: azure/k8s-set-context@v4
with:
method: kubeconfig
kubeconfig: ${{ secrets.KUBECONFIG }}
context: default # current-context from kubeconfig is used as default
- run: kubectl version -o yaml