Skip to content

helm chart: fix /root/.kube/config (No such file or directory) #11475

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

Closed
wants to merge 1 commit into from

Conversation

gavnate
Copy link
Contributor

@gavnate gavnate commented Mar 28, 2022

What

Describe what the change is solving
Fixes issue where the helm deployment for airbyte tries to interact with the kubernetes API sourcing creds from /root/.kube/config instead of using the token for the service account when using the fabric8 kubernetes java client.

How

Describe the solution

Explicitly setting the following env vars for the worker allows adding new connections to work:

KUBERNETES_AUTH_TRYSERVICEACCOUNT: 'true'
KUBERNETES_AUTH_TRYKUBECONFIG: 'false'

@github-actions github-actions bot added area/platform issues related to the platform kubernetes labels Mar 28, 2022
@CLAassistant
Copy link

CLAassistant commented May 5, 2022

CLA assistant check
All committers have signed the CLA.

@alafanechere alafanechere changed the title Fixes github issue: https://github.com/airbytehq/airbyte/issues/11323 helm-chart: fix /root/.kube/config (No such file or directory) Jun 3, 2022
@alafanechere
Copy link
Contributor

Hey @gavnate , I apologize for the late reply. Your PR was not labelled automatically as a community PR, this is why it was out of our radar. Do you mind checking if the latest helm chart still has the problem you're trying to fix?

@alafanechere alafanechere added bounty bounty-M Maintainer program: claimable medium bounty PR helm labels Jun 3, 2022
@alafanechere alafanechere changed the title helm-chart: fix /root/.kube/config (No such file or directory) helmchart: fix /root/.kube/config (No such file or directory) Jun 3, 2022
@alafanechere alafanechere changed the title helmchart: fix /root/.kube/config (No such file or directory) helm chart: fix /root/.kube/config (No such file or directory) Jun 3, 2022
@davinchia
Copy link
Contributor

@gavnate can you double check this is still an issue? we had previous contributions where this magically solved itself: #12314

@marcosmarxm
Copy link
Member

@gavnate see discourse topic where user had the same issue and solved in latest version: https://discuss.airbyte.io/t/kubernetes-client-exception-errors/1716/3

@alafanechere
Copy link
Contributor

Closing this as it the latest chart should already have this fixed. @gavnate feel free to re-open the PR if you still encounter this problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/platform issues related to the platform bounty bounty-M Maintainer program: claimable medium bounty PR community helm kubernetes reward-100
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

6 participants