question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

automatically run `gcloud services enable container.googleapis.com`

See original GitHub issue

When I executed tools/start.sh, the error below occurred. That’s because I haven’t enabled container.googleapis.com. How about running gcloud services enable container.googleapis.com in the script? Do you think it’s better to leave it to users?

$ ./tools/start.sh
(snip)
ERROR: (gcloud.beta.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=kubernetes-native-testbed to do so.
Fetching cluster endpoint and auth data.
ERROR: (gcloud.container.clusters.get-credentials) ResponseError: code=404, message=Not found: projects/kubernetes-native-testbed/locations/asia-northeast1/clusters/testbed.
No cluster named 'testbed' in kubernetes-native-testbed.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
oke-pycommented, Apr 27, 2020

Thanks. I’ll try it.

0reactions
MasayaAoyamacommented, Apr 27, 2020

@oke-py I think we need to run “service enable” at once, so init.sh is good location. But if “services enable” command will be finished rapidly, it is ok to locate command instart.sh.

In addition, we need to consider about enable other services,

Read more comments on GitHub >

github_iconTop Results From Across the Web

gcloud services enable | Google Cloud CLI Documentation
API-first integration to connect existing data and applications. ... Solution to bridge existing care systems and apps on Google Cloud. ... No-code development ......
Read more >
How Can One Use gcloud To Enable APIs - Stack Overflow
Use gcloud service-management list to list available services so you can find the name of the service you want to enable.
Read more >
How to deploy on Google Cloud Run? - NuxtJS
Google Cloud Run is a fully managed compute platform for deploying and scaling containerized applications quickly and securely.
Read more >
datashare-toolkit/PREREQUISITES.md at master - GitHub
Google Cloud Platform Marketplace solution prerequisites. Summary ... gcloud services enable container.googleapis.com ... Execute the following commands.
Read more >
Deploying to Google Cloud Platform - JHipster
You can deploy JHipster applications to Google Cloud Platform and run on: ... Enable API: gcloud services enable container.googleapis.com ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found