thesandlord / Istio101

⚡ Lightning-Talk Style Demo of Istio and OpenCensus⚡
Apache License 2.0
402 stars 134 forks source link

The project property is set to empty string, which is invalid #9

Open rscircus opened 5 years ago

rscircus commented 5 years ago

First, thank you for this awesome package. :relaxed:.

After starting (hitting this project's: "Open in Cloud Shell" button) with an almost blank G-account and following the README.md's instruction

make create-cluster deploy-istio build push deploy-stuff

everything comes to a sudden halt with:

roland_siegbert_t@cloudshell:~/Istio101$ make create-cluster deploy-istio build push deploy-stuff
ERROR: (gcloud.config.list) The project property is set to the empty string, which is invalid.
To set your project, run:

  $ gcloud config set project PROJECT_ID

After following the instructions, we get a little bit further:

roland_siegbert_t@cloudshell:~/Istio101$ gcloud config set project istio101
Updated property [core/project].
roland_siegbert_t@cloudshell:~/Istio101 (istio101)$ make create-cluster deploy-istio build push deploy-stuff
Your active configuration is: [cloudshell-6085]

But the script crashes at:

WARNING: Starting in 1.12, default node pools in new clusters will have their legacy Compute Engine instance metadata endpoints disabled by default. To create a cluster with legacy instance metadata endpoints disabled in the default node pool, run `clusters create` with the flag `--metadata disable-legacy-endpoints=true`.
This will enable the autorepair feature for nodes. Please see https://cloud.google.com/kubernetes-engine/docs/node-auto-repair for more information on node autorepairs.
This will enable the autoupgrade feature for nodes. Please see https://cloud.google.com/kubernetes-engine/docs/node-management for more information on node autoupgrades.**
ERROR: (gcloud.container.clusters.create) ResponseError: code=404, message=Not found: istio101.
Makefile:32: recipe for target 'create-cluster' failed
make: *** [create-cluster] Error 1

So, I'll revert to the little slower tutorial, which halts after

make create-cluster

with

ERROR: (gcloud.container.clusters.create) ResponseError: code=404, message=Not found: istio101.
Makefile:32: recipe for target 'create-cluster' failed
make: *** [create-cluster] Error 1

too. So, something must be missing in the README.md. I'll start to explore now, I guess, it has something to do with Google Cloud Shell steps which are invisible for a newcomer considering Google Cloud Shell.

rscircus commented 5 years ago

OK, so what I did is:

This changed the error thrown with make create-cluster to:

ERROR: (gcloud.container.clusters.create) ResponseError: code=403, message=Kubernetes Engine API is not enabled for this project. Please ensure it is enabled in Google Cloud Console and try again: visit https://console.cloud.google.com/apis/api/container.googleapis.com/overview?project=istio101 to do so.
Makefile:32: recipe for target 'create-cluster' failed
make: *** [create-cluster] Error 1

Now, I'm searching for how to enable the Kubernetes Engine API for this project...

Getting to GCP, it feels like *holy f*k:

image

But maybe I'll be successful here. The project is already selected somehow.

rscircus commented 5 years ago

image

Nope. I signed up for a free trial to create a cluster using the "Kubernetes Engine". And now credit card information is required... Meh.

rscircus commented 5 years ago

Following the link in the error: https://console.cloud.google.com/apis/api/container.googleapis.com/overview?project=istio101 seems promising:

image

But we need to enter some kind of credit card information. Not everyone has a credit card. And using one makes also not too much sense if one doesn't like to be in debt. But, let's give it a go.

rscircus commented 5 years ago

After filling out step 2 of the free trial (which was billing account, where only credit cards seem to work). An refresh, things seem to be enabled slowly:

image

rscircus commented 5 years ago

After a minute or so, we end up with this:

image

Now, back to the console:

make cluster-create

performs a successful run. :smile:.

rscircus commented 5 years ago

This got me past Fixing the 404. However, I have no clue, how to access the stuff which runs as a named endpoint and locally on the cluster. E.g., can't access the servicegraph: 8088 (dotviz).

rscircus commented 5 years ago

Thanks for keeping the repo mostly up to date, btw. Even with the cost, that it deviated from the Video now. :relaxed: I'm impressed by everything and how fast (1.5h and going) one can start to move with your tutorial (and Makefile :wink: ).

thesandlord commented 4 years ago

I'd say setting up GCP is out of scope for this demo. Going to be cleaning up the makefile and updating to a more modern version of Kubernetes and Istio

rscircus commented 4 years ago

I'd be happy to help.