Welcome to the Linux Foundation Forum!

Where does gcloud store its defaults?

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

  • Posts: 2,451

    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

  • Posts: 1,000
    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,

     

Welcome!

It looks like you're new here. Sign in or register to get started.
Sign In

Welcome!

It looks like you're new here. Sign in or register to get started.
Sign In

Categories

Upcoming Training