google-compute-engine

Anyone else encountering “unknown error” when Initializing Cloud Engine?

谁说胖子不能爱 提交于 2020-02-03 05:43:07
问题 I am trying to launch an instance of Discourse on Google's Cloud Platform using their recently released "Launcher" (https://cloud.google.com/launcher/#/details/bitnami-launchpad:discourse?q=discourse) It is able to create a new project, but during the step "Initializing Cloud Engine" it fails -- citing "Unknown error." as the reason. Is anyone else experiencing this? Know how to get around it? 回答1: Add billing information to account and your problem should be resolved. 回答2: I had to generate

How do I create a persistent volume claim with ReadWriteMany in GKE?

為{幸葍}努か 提交于 2020-02-03 05:07:09
问题 What is the best way to create a persistent volume claim with ReadWriteMany attaching the volume to multiple pods? Based off the support table in https://kubernetes.io/docs/concepts/storage/persistent-volumes, GCEPersistentDisk does not support ReadWriteMany natively. What is the best approach when working in the GCP GKE world? Should I be using a clustered file system such as CephFS or Glusterfs? Are there recommendations on what I should be using that is production ready? I was able to get

How to preserve source IP from traffic arriving on a ClusterIP service with an external IP?

纵饮孤独 提交于 2020-02-01 04:56:25
问题 I currently have a service that looks like this: apiVersion: v1 kind: Service metadata: name: httpd spec: ports: - port: 80 targetPort: 80 name: http protocol: TCP - port: 443 targetPort: 443 name: https protocol: TCP selector: app: httpd externalIPs: - 10.128.0.2 # VM's internal IP I can receive traffic fine from the external IP bound to the VM, but all of the requests are received by the HTTP with the source IP 10.104.0.1 , which is most definitely an internal IP – even when I connect to

Logging into google compute engine with a service account

时光总嘲笑我的痴心妄想 提交于 2020-01-25 09:33:05
问题 I have spent the entire day today reading documentations and questions on stackexchange on trying to use service account to logon to a compute engine but have got no where. I am new to google cloud, so pardon my knowledge. We are trying to setup a long running service on a google compute engine. We want the service to be run as a system account but not on individual account so as to allow troubleshooting privileges across the team but not specific users. We thought that service account of GCP

Writing Data to h5py on SSD disk appears slow: What can I do to speed it up

做~自己de王妃 提交于 2020-01-24 22:42:29
问题 I'm trying to write data to a h5py dataset but using a high memory 12 core GCE instance to write to an SSD disk but it runs for 13 hours with no end in sight. I'm running Jupyter Notebook on the GCE instance to unpickle a large number of small files (stored on a 2nd non-ssd disk) before adding them to a h5py dataset in a file stored on the ssd disk Max shape= (29914, 251328) Chunks = (59, 982) compression = gzip dtype = float64 My code is listed below #Get a sample minsample = 13300

Yii CDbConnection failed to open the DB connection: could not find driver with google cloud sql

痴心易碎 提交于 2020-01-24 22:05:33
问题 I'm having an issue with Yii and a mysql database running on Google Cloud sql. Quick overview: We have moved this from an existing server where it all worked with no issues at all and have now set up a Google Compute Engine server with php and all the relivant drivers mysql_pdo being one of them. We also have a Google Cloud SQL database storing all of our existing database information. What I have tried I have written a simple php script which uses PDO('mysql:<IPADDRESS>;dbname=<MYDBNAME>,

Yii CDbConnection failed to open the DB connection: could not find driver with google cloud sql

送分小仙女□ 提交于 2020-01-24 22:05:05
问题 I'm having an issue with Yii and a mysql database running on Google Cloud sql. Quick overview: We have moved this from an existing server where it all worked with no issues at all and have now set up a Google Compute Engine server with php and all the relivant drivers mysql_pdo being one of them. We also have a Google Cloud SQL database storing all of our existing database information. What I have tried I have written a simple php script which uses PDO('mysql:<IPADDRESS>;dbname=<MYDBNAME>,

connecting to postgres server on google compute engine

烂漫一生 提交于 2020-01-24 21:51:29
问题 I have installed a PostgreSQL on google cloud and I want to be able to access it remotely from my PC using preferably pg-admin. I do get the following error when I try to connect to my instance: Unable to connect to server: could not connect to server: Connection refused (0x0000274D/10061) Is the server running on host "[external IP of my VM instance]" and accepting TCP/IP connections on port 5432? I think this could because google cloud firewall is blocking me (maybe!), I specified the

Logging in GCP and locally

淺唱寂寞╮ 提交于 2020-01-24 19:33:12
问题 I am building a system that is intended to run on Virtual Machines in Google Cloud Platform. However, as a form of backup, it may be run locally as well. That being said, my issue currently is with logging. I have two loggers, both work, a local logger and a cloud logger. Cloud logger import google.cloud.logging from google.cloud.logging.handlers import CloudLoggingHandler from google.oauth2 import service_account CREDS = google.cloud.logging.Client( project=PROJECT, credentials=service

Deleted Compute Engine default service account

此生再无相见时 提交于 2020-01-24 18:18:30
问题 I cannot create a virtual machines in GCE.. While creating it is showing the error message, i have attached my screen-shot of error message.. i will briefly explain what i have done.. --> I have deleted my compute engine default service account from my service account list.. later i created new service account.. --> While creating virtual machines i selected newly created service account, vm creating was failed but the error shows the deleted service account id is not found under service