google-compute-engine

Google Cloud Storage Buckets: Mounting in a Linux instance with Global Permissions

感情迁移 提交于 2019-12-22 11:24:31
问题 I've created a standard Google storage bucket that I'm trying to mount in a CentOS Linux compute engine instance, but the permissions don't seem to let me grant access to users other than the root user (who can read and write to the storage location once it's mounted with gcsfuse). If I try to mount as a non-root user, the gcsfuse command says it completes successfully, but attempts to read or write to the bucket result in I/O errors. I'd appreciate guidance from anyone with Google storage

Accessing Google Cloud SQL from Google Compute Engine using private network

南笙酒味 提交于 2019-12-22 10:57:46
问题 is it possible to access Google Cloud SQL from Google Compute Engine using the private network? It appears that Google Cloud SQL sees the public network IP for the Google Compute Engine instance. And, the web console doesn't allow entering the instance private address. 回答1: No it is not possible to access Google Cloud SQL instances via a private IP address. This this page confirms this, it says Note: You must use the external (public) IP address of the GCE instance ...when configuring

Can I create an OS image of more than 10GB on Google Compute Engine?

丶灬走出姿态 提交于 2019-12-22 10:06:39
问题 I need to boot about 500 instances with an specific image to do a job with big files that requires POSIX access to more than 10GB. According to that doc https://developers.google.com/compute/docs/images it's impossible create a boot disk of more than 10GB and I need POSIX access to more than 10 GB. Does this mean I will need to create another non-boot disk on each instance with disk space I need? Is there another way to do that? 回答1: That doc refers to a limit to the size of the operating

GKE Pod Connect to external VM in same subnet

社会主义新天地 提交于 2019-12-22 09:59:50
问题 I Have a pod that needs to connect to a Database located on GCE Vm's with the same subnet as the GKE nodes. I currently have a k8 Service and k8 Endpoint that the pod successfully connects to but the 10.128.0.2 cannot be routed. Im sure this pertains to a GCP firewall rule/route but I havn't had much luck. subnet -> 10.128.0.0/9 cbr0 -> 10.8.15.0/20 eth0 -> 10.128.0.1 k8 services -> 10.11.224/14 Master Version: 1.9.7-gke.3 kind: Endpoints apiVersion: v1 metadata: name: externalDB namespace:

Use oauth2 service account to authenticate to Google API in python

大兔子大兔子 提交于 2019-12-22 09:46:17
问题 I've followed the directions in https://developers.google.com/accounts/docs/OAuth2ServiceAccount to use a service account to authenticate to the Google Cloud Storage API. I tried to send a JWT to google's authenticate servers in python, but got an error: urllib2.HTTPError: HTTP Error 400: Bad Request It looks like there's something wrong with the way I'm making, signing, or sending the JWT? The error wasn't specific so it could be any part of the process. Does anyone have any ideas? import

Google cloud load balancer port 80, to VM instances serving port 9000

被刻印的时光 ゝ 提交于 2019-12-22 09:36:45
问题 I'm new in GCE, and I am confused about setting up the load balancer. If I have two instances, serving on Port 9000, I want to setup a balancer that accepts on port 80, then route requests to my instances in port 9000.. a diagram like this.. LB:port:80 -> VM:port:9000 I have other load balancers from other providers which has a settings like pointing to VM's port. but in GCE, I cant seem to find it, or I am missing something.. I hope I am making a sense, here. thank you in advance 回答1: It isn

Can't disable Google APIs

元气小坏坏 提交于 2019-12-22 09:22:23
问题 From the developer console, I want to disable Google Cloud Deployment Manager API, Google Compute Engine Autoscaler API, Google Compute Engine Instance Group Manager API, Google Compute Engine Instance Groups API, Google Container Engine API. However, those API cannot be disabled. When I disable the service, it show message to me that the api is disabled. However, after some time, they will be turned on again! I don't use compute engine or container engine. How can I disable those APIs? 回答1:

How to restore instance using snapshot in Google Compute Engine?

ε祈祈猫儿з 提交于 2019-12-22 08:57:36
问题 I created a snapshot of a VM instance via cloud console. I would like to know how I can restore an instance using a snapshot. The documentation for compute engine is not very helpful. The instance runs on Ubuntu. Thanks. 回答1: To restore an instance from a snapshot without deleting/re-creating the instance: Shut down the instance and detach the boot disk: gcloud beta compute instances detach-disk INSTANCE_NAME --disk BOOT_DISK_NAME Create a new disk from the snapshot: gcloud compute disks

Google compute engine .NET API examples/samples/tutorials

荒凉一梦 提交于 2019-12-22 08:08:02
问题 I haven't been able to find anything that will clearly explain how to use google compute engine through the .net API (specifically c#). Is there anyone that can point me to anything? P.S. I know about the API reference (https://developers.google.com/resources/api-libraries/documentation/compute/v1/csharp/latest/annotated.html) 回答1: I could not find any detailed tutorial with code samples, but official documentation is available at [1] includes a code sample. There is a tutorial with C# sample

how to get error if starting compute engine instance fails

£可爱£侵袭症+ 提交于 2019-12-22 05:35:13
问题 I am starting an instance using PHP using this code: function startInstance($g_project,$g_instance, $g_zone){ $client = new Google_Client(); $client->setApplicationName('Google-ComputeSample/0.1'); $client->useApplicationDefaultCredentials(); $client->addScope('https://www.googleapis.com/auth/cloud-platform'); $service = new Google_Service_Compute($client); $response = $service->instances->start($g_project, $g_zone, $g_instance); echo json_encode($response); } Today I was lucky enough to