kelseyhightower / kubernetes-the-hard-way

Bootstrap Kubernetes the hard way. No scripts.
Apache License 2.0
41.3k stars 14.13k forks source link

101 question - very beginner #574

Closed ghost closed 4 years ago

ghost commented 4 years ago

Greetings! I am trying to learn Kubernetes on my own using documentation. I do not have any experience with it. Please pardon me if I am asking very silly questions. Started reading this deck "Prerequisites". My question is, using Google Cloud SDK documentation I have installed gcloud command line utility on a VM instance (created using google cloud platform console)

Google Cloud SDK 293.0.0 alpha 2020.05.15 beta 2020.05.15 bq 2.0.57 core 2020.05.15 gsutil 4.50 kubectl 2020.05.15

I am getting an error when I issue " gcloud init " command like below

WARNING: Listing available projects failed: HttpError accessing https://cloudresourcemanager.googleapis.com/v1/projects?filter=lifecycleState%3AACTIVE&alt=json&pageSize=201: response: <{'status': '403', 'content-l ength': '138', 'x-xss-protection': '0', 'x-content-type-options': 'nosniff', 'transfer-encoding': 'chunked', 'vary': 'Origin, X-Origin, Referer', 'server': 'ESF', 'server-timing': 'gfet4t7; dur=10', '-content-encodi ng': 'gzip', 'cache-control': 'private', 'date': 'Tue, 19 May 2020 22:35:02 GMT', 'x-frame-options': 'SAMEORIGIN', 'content-type': 'application/json; charset=UTF-8', 'www-authenticate': 'Bearer realm="https://accoun ts.google.com/", error="insufficient_scope", scope="https://www.googleapis.com/auth/cloud-platform https://www.googleapis.com/auth/cloud-platform.read-only https://www.googleapis.com/auth/cloudplatformprojects https ://www.googleapis.com/auth/cloudplatformprojects.readonly"'}>, content <{ "error": { "code": 403, "message": "Request had insufficient authentication scopes.", "status": "PERMISSION_DENIED" } }

Enter project id you would like to use:

Not sure which project id I should enter here?

So I bypassed this step and tried with next command, root@node:/home/pkoru001# gcloud auth login You are running on a Google Compute Engine virtual machine. It is recommended that you use service accounts for authentication. You can run: $ gcloud config set account ACCOUNT to switch accounts if necessary. Your credentials may be visible to others with access to this virtual machine. Are you sure you want to authenticate with your personal account? Do you want to continue (Y/n)?

Not sure answer for this as well. I am stuck with my first step. Can someone help?

ghost commented 4 years ago

I missed reading gcloud sdk caused confusion. I am good here. Closing this case.