google-compute-engine

How can i setup remote project with PhpStorm with Google Compute Engine running LEMP?

别说谁变了你拦得住时间么 提交于 2019-12-25 08:47:19
问题 I was working on a web cloud app and setup Google compute Engine with micro instance (Ubuntu 14.4) with nginx, Laravel, MySQL and PHP. Now I want to setup my PhpStorm IDE with this setup to make development fast. Kindly help me with this thing. 回答1: To make development faster with PHPStorm follow the steps below: Make sure you generate a SSH key-pair(public+private) with PuttyGen. Paste the contents of your public key in GCE in the SSH Key section. You can find that section when you go to

External IPs not assigned within VM

人盡茶涼 提交于 2019-12-25 05:30:45
问题 I have a couple of Centos 6 VMs that I am trying to setup. I assigned static IPs to them but when running ifconfig, I do not see the external IPs, just the internal IPs. Does Google not allow this capability? 回答1: In addition to what Anderson said, this is the command to query for the external IP from the instance itself: curl "http://metadata.google.internal/computeMetadata/v1/instance/network-interfaces/0/access-configs/0/external-ip" -H "Metadata-Flavor: Google" 回答2: DHCP only supports

Is it possible to run gRPC or HTTP/2 application in a AppEngine Managed VM?

让人想犯罪 __ 提交于 2019-12-25 05:30:14
问题 I am trying to build a gRPC backend and trying to deploy it on an AppEngine Managed VM. Is HTTP/2 supported? If not, can I simply expose it on a separate port and disable health checks or should I deploy this on compute engine/container engine. 回答1: At this point http/2 is not supported by Managed VMs. The best current solution is to run your http/2 server on a different port and specify the port number to forward in app.yaml (doc link). You can keep health checking active on the default

error opening a port in Google Compute Engine

坚强是说给别人听的谎言 提交于 2019-12-25 02:55:28
问题 I am trying to open a port via ssh in my VM instance in Google Compute engine but I keep getting error messages. Here is my command: myname@instance-2:~$ gcloud compute firewall-rules create baasbox-console-port --allow tcp:9000 --source-range s=0.0.0.0/0 here is the error message: NAME NETWORK SRC_RANGES RULES SRC_TAGS TARGET_TAGS ERROR: (gcloud.compute.firewall-rules.create) Some requests did not succeed: - Insufficient Permission pls what am i doing wrong? 回答1: gcloud auth login Go to the

Connecting PHP code on Compute Engine to Cloud SQL securely

早过忘川 提交于 2019-12-25 02:24:31
问题 I'm trying to connect drupal cms running on a Compute Instance to Cloud SQL database but every combination I try fails. I can connect to Cloud SQl from another server but I'm not sure what path the MySQL connection takes from my instance to Cloud SQL but also want to configure as secure as possible connection to and from the db server Here is the configuration I have Servers Cloud SQL with external IP address assigned. Also authorized external IP address of compute instance & Independent

Can't install language pack

南笙酒味 提交于 2019-12-25 01:32:30
问题 I'm trying to install italian language pack on a VM instance with Debian. I've tried almost everything but it still can't find the language pack. $ apt-get update $ apt-get install language-pack-it-base $ apt-get install language-pack-it It returns: E: Unable to locate package language-pack-it It's the same with other languages. Any hint? 回答1: To install language-pack-it-base: $ wget http://archive.ubuntu.com/ubuntu/pool/main/l/language-pack-it-base/language-pack-it-base_14.10+20141020_all

Google kubernetes engine node-pool problem

旧城冷巷雨未停 提交于 2019-12-25 01:12:02
问题 When i try to create a node-pool using n2 and e2 machines in google kubernetes engine it shows this error Creation of node-pool with N1 machine type Create node pool "pool-1" in Kubernetes Engine cluster 11 minutes ago Insufficient regional quota to satisfy request: resource "N2_CPUS": request requires '2.0' and is short '2.0'. project has a quota of '0.0' with '0.0' available. View and manage quotas at Create node pool "pool-5" in Kubernetes Engine cluster 9 minutes ago Deploy error: Not all

Google Cloud: can't add disk to instance template with write permission

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-24 20:16:03
问题 I am running preemptable instance on Google Cloud. To keep it up, I am using instance group that spawns this instance from an instance template once it gets killed. I want to run Mongo on this instance (I understand that it is a bad idea, it is good enough for me) so I need to add a persistent disk to the instance. When I add a disk to the instance template, the mode radio button is greyed out and set on read-only . There is a warning stating that I can change mode only when manually spawn an

uploading custom windows server 2012R2 image on Google cloud

跟風遠走 提交于 2019-12-24 17:12:04
问题 I want to upload Windows Server 2012 R2 image on Google cloud to save license cost from Google, as i already have spare licenses to use. please let me know the procedure. 回答1: I believe you're asking about a possibility of bringing your existing Windows Server licenses to Google Compute Engine (BYOL). Windows Server licensing terms are quite complicated and can sometimes vary from customer to customer, so it is recommended to contact Microsoft licensing specialists that can give you the most

Configure port range mapping into containers.yaml for google container engine

半世苍凉 提交于 2019-12-24 16:38:52
问题 I followed all the google documentation to deploy a docker image into goole compute (this one) but I can't find more informations about google-container-manifest options. For example I can't add a port range. I tried that without success : ports: - containerPort: 80 hostPort: 80 - containerPort: 443 hostPort: 443 - containerPort: "10000-20000" hostPort: "10000-20000" Where can we find all parameters we can use for google container manifest ? And is it possible to add a port range mapping ?