Comments (4)
I ended up doing the following:
#!/bin/bash
sudo -E env "PATH=$PATH" gcloud --quiet components update kubectl
sudo chmod 757 /home/ubuntu/.config/gcloud/logs -R
gcloud auth activate-service-account --key-file ./my/key.json
gcloud config set project $GCLOUD_PROJECTID
gcloud container clusters get-credentials my-cluster \
--project=$GCLOUD_PROJECTID --zone=$CLOUDSDK_COMPUTE_ZONE
It's really weird that "gcloud container clusters get-credentials" couldn't read the environment variables correctly and requires us to manually specify --project and --zone. but once specified, this is working. kubectl can work fine after these commands.
from circleci-docs.
No wait.. even sudo won't work. Everything started to fail after running gcloud components update with sudo.
from circleci-docs.
Your original assertion was correct. Using sudo and the full path is the way to use it, ran into this issue myself on an upcoming guide. We'll need to update the docs you pointed out.
What is the new error you're getting with updating?
from circleci-docs.
@kunchenguid Once again, thanks for pointing this out. I was aware of the need to use sudo and the entire path but didn't realize the gcloud binary also has trouble with environment variables.
Docs has been updated to reflect using the long, unwieldy command while we investigate getting the command to work the way it should from within the image.
from circleci-docs.
Related Issues (20)
- Command for artefacts downloading is wrong HOT 1
- Broken links for CircleCI academy HOT 1
- OICD AWS Provider - Old AWS orb version not consistent with > 4.0 version causing issues with AWS Credentials configuration HOT 1
- Suggestion: add a one-liner for downloading all artefacts from a workflow HOT 3
- Prerequisites for machine runner on macOS are confusing HOT 1
- Broken YAML rendering with NoScript
- Incorrect link to blog post in ip-ranges HOT 1
- I am looking for an API to stop building a project
- --timings-type Valid timing types are not documented correctly HOT 2
- Nightly jobs, incorrect docs HOT 1
- Incorrect workaround for PostgreSQL binaries
- Bug
- Retro
- EU Pedro Ferreira Morais no meu desenvolvimento e carteira PayPal só encontro ERRO e Debug algo parecido. https://github.com/ASSIAPLI/.github/blob/master/CONTRIBUTING.md ASSIAPLI'BANCK
- <<pipeline.git.tag>> is no longer working to trigger when step HOT 1
- feat: Add how to deploy in azure container apps
- Circle CI VSCode extension keeps writing to .vscode/settings.json HOT 2
- How to set up the gradle version of CI HOT 4
- Suggestion on Rerun Tests Documentation
- Please provide a schema for the `config.yml`, in particular version 2.1 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from circleci-docs.