Questions tagged [google-compute-engine]

Google Compute Engine offers scalable and flexible virtual machine computing capabilities in the cloud.

Official website

6707 questions
2
votes
1 answer

How to access files on Google Cloud Storage using Python

I have files in a Storage Bucket that I can't access from python using the Cloud Shell. I created this simple example: open('gs://iwc/panda.jpg') which results in this: jklieb@cloudshell:~$ python demo.py …
2
votes
1 answer

redis - kill redis-server in google cloud platform

I am playing around Google Cloud Platform and Redis. But is is way more complicated than I expect. I want to shutdown redis-server, in my local version i can just: redis-cli shutdown redis-cli ping // Could not connect to Redis at 127.0.0.1:6379:…
sooon
  • 4,718
  • 8
  • 63
  • 116
2
votes
1 answer

Publish to Google Cloud Compute Engine via Visual Studio - Deleting Live Files

I've got a project I'm deploying in Visual Studio 2015 to Google Compute Engine via Google Cloud Tools for Visual Studio. It all works pretty well apart from one thing: I have an uploaded assets folder on the 'live' site. this contains images…
2
votes
1 answer

kubernetes give public ip to many replicas

I have a multiplayer application consisting of many containers and at the top level i have a REST API. I managed to run this application and i can access the rest api using the public ip. I am using the google cloud kubernetes engine. I would like…
2
votes
0 answers

Redis ECONNRESET from Cloud Function

I am getting a lot of this message Error: Redis connection to x.x.x.x:6379 failed - read ECONNRESET I know what it means, but I don't know how it happens and how to troubleshoot it. My case is I have a redis server running on a Compute Engine…
2
votes
1 answer

Kubernetes cluster in Google (GKE) is over scaling nodes

I have a Kubernetes cluster in GCP running with several node pools with auto-scaling enabled. Seems like the auto-scaler is over scaling... Attached is the list of nodes and their usage (I'm using 32CPU machine type). Can't understand why the…
Idan
  • 2,819
  • 4
  • 33
  • 61
2
votes
0 answers

Google Kubernetes Engine: java.net.UnknownHostException: accounts.google.com

We are frequently seeing (once or twice every day at least) "java.net.UnknownHostException" errors on some of our Google Kubernetes Engine pods. When it happens, these errors come for all external hosts our process on those pods are trying to reach,…
2
votes
0 answers

Google compute engine - how to customize user home directory?

I want to automate customizing a user home directory when running GCE instance - like ~/.profile, ~/.vimrc, add some files into ~/.vim directory... Seems to be very basic, but somehow I cannot figure out how to do this. --startup-script parameter…
2
votes
1 answer

Google Cloud Compute, using environment variables

I have found lots of information on how to use environment variables in Google App Engine projects. However I am yet to find some best practice on what to do with environment variables on compute engine. Is it possible to use Google Cloud Deployment…
2
votes
2 answers

Firebase functions deploy fails with accessdenied

Using firebase-tools v3.18.6, I have 3 different projects in my account simulating dev/qa/prod environments. Deploying to dev and qa works just fine, but deploying to the 3rd project fails with the following debug output (masked possible sensitive…
2
votes
1 answer

Google Cloud compute engine instances automatically created, not by me

I started using Google Cloud for a webapp project of my own. I've been using many of its features such as Standard App Engine for deployment, and its SQL for databases. In the last week I started using Cloud Storage for uploading and retrieving…
2
votes
1 answer

Mount persistent disk with data to VM without formatting

I am trying to mount a persistent disk with data to a VM to use it in Google Datalab. So far no success, ideally I would like to see my files in the Datalab notebook. First, I added the disk in VM settings with Read/Write mode. Second, I ran $lsblk…
2
votes
1 answer

requiredDuringSchedulingRequiredDuringExecution does it works?

As per the kubernetes documents, requiredDuringSchedulingRequiredDuringExecution is still not implemented. But I see some post that it been used. We have a need to use it, so does it works in GCE? Currently, we using…
user1595858
  • 3,700
  • 15
  • 66
  • 109
2
votes
1 answer

For django-storages and GCE, how do you set the GS_CREDENTIALS?

For django-storages and google compute engine (GCE), how do you create and set credentials for a web application? Here is the current documentation: http://django-storages.readthedocs.io/en/latest/backends/gcloud.html
rprasad
  • 366
  • 3
  • 8
2
votes
1 answer

Google Compute Engine: lost exported env after closing SSH

I have an instance on Google computer engine, and i have exported environment variable running $ export my_token=my_token. Everything is fine, it prints my_token running $ echo $my_token. But after closing ssh connection and reconnect to my…
1 2 3
99
100