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

Fix-bastion-errors #79

Merged
merged 3 commits into from
Aug 15, 2022
Merged

Fix-bastion-errors #79

merged 3 commits into from
Aug 15, 2022

Conversation

openoms
Copy link
Contributor

@openoms openoms commented Aug 11, 2022

Fixing the errors seen when logging in to the bastions:

  • bos completion needs to be sourced, not displayed

  • the error needing the gke-gcloud-auth-plugin is displayed when running: kauth:

openoms_galoy_io@galoy-staging-bastion:~$ kauth
Fetching cluster endpoint and auth data.
CRITICAL: ACTION REQUIRED: gke-gcloud-auth-plugin, which is needed for continued use of kubectl, was not found or is not executable. Install gke-gcloud-auth-plugin for use with kubectl by following https://cloud.google.com/blog/products/containers-kubernetes/kubectl-auth-changes-in-gke
kubeconfig entry generated for galoy-staging-cluster.

this needs to be installed with apt

@@ -10,7 +10,7 @@ apt-add-repository "deb [signed-by=/usr/share/keyrings/cloud.google.gpg] https:/

# Keep make and terraform the first items installed as they are needed
# for testflight to complete
apt-get update && apt-get install -y make terraform jq tree wget redis postgresql vault
apt-get update && apt-get install -y make terraform jq tree wget redis postgresql vault google-cloud-sdk-gke-gcloud-auth-plugin
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This didn't work before, and I removed it. Debugging it, I found that the apt-add-repo on line 9 wasn't working. Re-adding it without fixing the addition of the repo wouldn't work.

Copy link
Contributor Author

@openoms openoms Aug 11, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

in 6608713 changed the apt key and repo addition to the current recommendation at https://cloud.google.com/sdk/docs/install#deb (works on the bastions), but removed the sudo-s as it is running with root already

left the

apt-get install -y google-cloud-sdk-gke-gcloud-auth-plugin

line separate and last so nothing else will be missing if it fails.

Hope this will work.

@openoms openoms merged commit cef7fe7 into main Aug 15, 2022
@openoms openoms deleted the fix-bastion-errors branch August 15, 2022 10:42
fireballpoint1 pushed a commit to fireballpoint1/galoy-infra that referenced this pull request Aug 26, 2022
* fix: bos completion on the bastion
* fix: install gke-gcloud-auth-plugin with apt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants