Welcome to the Linux Foundation Forum!

Where does gcloud store its defaults?

Options
dwschulze
dwschulze 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

  • chrispokorni
    chrispokorni Posts: 2,165
    Options

    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

  • serewicz
    serewicz Posts: 1,000
    edited March 2018
    Options

    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,

     

Categories

Upcoming Training