Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Kubernetes cluster unreachable #44

Open
jcputter opened this issue Oct 21, 2022 · 4 comments
Open

Kubernetes cluster unreachable #44

jcputter opened this issue Oct 21, 2022 · 4 comments
Labels
bug Something isn't working

Comments

@jcputter
Copy link

jcputter commented Oct 21, 2022

Error: Kubernetes cluster unreachable: Get "http://localhost:8080/version": dial tcp 127.0.0.1:8080: connect: connection refused

I'm doing the following to pass kubeconfig

      - name: Set Kube Config
        run: |
          aws eks update-kubeconfig --name ${{ env.CLUSTER_NAME }} --region ${{ env.AWS_REGION }}
          echo 'KUBE_CONFIG_DATA<<EOF' >> $GITHUB_ENV
          echo $(cat ~/.kube/config | base64) >> $GITHUB_ENV
          echo $(cat ~/.kube/config)
          echo 'EOF' >> $GITHUB_ENV
echo $(cat ~/.kube/config)

confirms the correct details

     - name: Deploy DB
        uses: koslib/helm-eks-action@v1.25.4
        env:
          KUBE_CONFIG_DATA: ${{ env.KUBE_CONFIG_DATA }}
        with:
          command: "helm upgrade --install db --namespace=${{ needs.build.outputs.branch }} --create-namespace ./dbs/mariadb --set tag=${{ needs.build.outputs.branch }} --wait"
@koslib
Copy link
Owner

koslib commented Oct 21, 2022

Hello @jcputter, can you post the snippet which shows how this action is used and the env keys/values provided?

@jcputter
Copy link
Author

jcputter commented Oct 21, 2022

sure, i updated the original post

@koslib
Copy link
Owner

koslib commented Oct 22, 2022

@jcputter I have almost identical setups and it works for me. Can I propose two ideas to try out?

  1. Stick to the same setup however pin the action's version to v1.25.2
  2. Try out the experimental branch (instead of a version tag) to confirm it's not any dependency version issues

Also can you somehow confirm the correct value ends up in the github env?

@koslib koslib added the bug Something isn't working label Oct 22, 2022
@smagurauskas
Copy link

Confirming that fixing version to v1.25.2 solves the issue for time being.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants