Welcome to the new Linux Foundation Forum!

Where does gcloud store its defaults?

dwschulzedwschulze Posts: 4
edited March 2018 in LFS258 Class Forum

Following the Quick Start at

https://cloud.google.com/kubernetes-engine/docs/quickstart

I set a default project like this

$ gcloud config set project lfs258

Updated property [core/project].

$ gcloud config get-value project

lfs258

The project lfs258 doesn't exist on my GCP account, though, so I'm surprised that I could set it as the default.

Where does gcloud store its defaults?  kubectl stores them in .kube/config but I can't find a similar config file for gcloud.

Thansk.

Comments

  • Hi, running 'gcloud projects list' should list all the projects available under you account, which should be the default one and any other projects you created.

    -Chris

  • serewiczserewicz Posts: 454
    edited March 2018

    Hello,

    I think the directory you are looking for would be something like this:   ~/.config/gcloud/configurations/  but may be different depending on the operating system you are using. This is where it is saved on an Ubuntu system. 

    Regrads,

     

Sign In or Register to comment.