Questions tagged [google-compute-engine]
Google Compute Engine offers scalable and flexible virtual machine computing capabilities in the cloud.
1,463
questions
59
votes
13
answers
69k
views
The following signatures couldn't be verified because the public key is not available: NO_PUBKEY
My environment:
# uname -a
Linux app11 4.9.0-5-amd64 #1 SMP Debian 4.9.65-3+deb9u2 (2018-01-04) x86_64 GNU/Linux
#
# cat /etc/*release
PRETTY_NAME="Debian GNU/Linux 9 (stretch)"
NAME="Debian GNU/...
38
votes
7
answers
97k
views
Unable to ssh to GCE: "Permission denied (publickey)"
I created a VM via Bitnami in Google Compute Engine. Previously, I was able to ssh via the Bitnami web interface. I tried to ssh via terminal on my Mac but kept getting the Permission denied (...
28
votes
5
answers
8k
views
Expose port 80 and 443 on Google Container Engine without load balancer
Currently I'm working on a small hobby project which I'll make open source once it's ready. This service is running on Google Container Engine.
I chose GCE to avoid configuration hassle, the costs are ...
27
votes
5
answers
29k
views
Google Cloud IN_USE_ADDRESSES quota exceeded.
I am spending the past 3 hours of finding ways to release Google Compute Engine API In-use IP addresses as I have 8/8 in use. I googled, read the manuals but there is no way of releasing it anywhere ...
21
votes
5
answers
16k
views
NO_PUBKEY error in google cloud debian packages update
I have a couple of Google Clouds compute instances (US, Germany, Australia)
While doing
apt-get update
today I get:
> Get:10 http://packages.cloud.google.com/apt
> google-cloud-packages-...
19
votes
5
answers
42k
views
Google Cloud : check disk space usage
How to check the used disk space of Google Persistent Disk without looking into each of them?
19
votes
3
answers
16k
views
Redirect all HTTP traffic to HTTPS when using the HTTP(S) Load Balancer on Google Compute Engine
I have HTTP/HTTPS Load Balancing set up on Google Compute Engine with 2 Global Forwarding Rules (HTTP and HTTPS). Each rule points to a back-end service with a protocol of HTTP.
I want all requests ...
18
votes
3
answers
22k
views
How to choose the external IP address of a Kubernetes load balancer in Google Kubernetes Engine
I'm deploying a web app using Google Kubernetes Engine and I want to make it accessible via a load balancer on an existing static IP address that I control as part of the same project in Google Cloud ...
15
votes
2
answers
2k
views
Why does Google recommend removing SSH keys from GCE for security?
The below reference to Google documentation is no longer true.
Google recommends removing SSH keys from GCE instance to secure SSH. That does not make any sense to me. The keys are there for a ...
14
votes
3
answers
10k
views
Stop China from connecting to my Google Compute Engine server
My company has a Google Compute Engine server hosted in North America. We get so many Chinese IP addresses sending requests to port 11 that it is costing us money for the ingress. Our firewall blocks ...
14
votes
2
answers
4k
views
Kubernetes - can I avoid using the GCE Load Balancer to reduce cost?
I'm deploying a Kubernetes cluster on GCE using Gitlab-CI. I'd like to keep the cost to a minimum - here's my current setup:
Nodes run on 3 f1-micro instances
A system pod running Traefik configured ...
13
votes
4
answers
6k
views
Error creating GCE load balancer: requested address ip is neither static nor assigned to LB
I have a situation where Kubernetes apparently can no longer assign an external IP address to a service upon kubectl create -f Deployment.yaml. kubectl describe service <my-service> reports the ...
13
votes
2
answers
6k
views
df -h only shows 10GB, but I've assigned a 500GB disk to the GCE instance
I keep on running out of disk space while trying to compile gcc and I keep on creating larger and larger disk sizes and after 5 hours of compiling, it runs out of disk space. I've resized the disk 4 ...
12
votes
8
answers
32k
views
VPN server on Google Compute Engine with OpenVPN
I'm trying to use Google Compute Engine server as VPN server for all my traffic (I'm living in Russia, we have some issues with censorship here).
There is mini-tutorial about VPN on GCE, but it's ...
12
votes
1
answer
6k
views
google cloud http(s) load balancer returning 502 despite healthy backend service
I've got a GCE http(s) load balancer configured to direct traffic to 2 backends:
- the default backend
- a second backend with a separate host/path rule (<host>:/*)
Both backends exist on the ...
11
votes
4
answers
10k
views
How does google compute engine create users and how to disable them?
I've got a CoreOS cluster running on GCE and one issue that I've noticed with all GCE instances is that as long as you're auth'd with the project on Google Cloud platform, you can login in as pretty ...
10
votes
2
answers
7k
views
Where are the Google Health check logs
I am running a GCE instance and on it I have a Kubernetes cluster running. An HTTP Load Balancer is also configured to probe the health of the a Kubernetes service running on this instance. But I ...
9
votes
2
answers
42k
views
Google cloud unable to connect to the VM on port 22
I am using Google Compute engine to host couple of sites but I resize the disk and then restarted the instance and now I am unable to connect both from gcs and putty. ( Connection Refused )
Serial ...
9
votes
2
answers
5k
views
No space left on device after growing filesystem
I am using a VM on Google Compute Cloud. I grew my disk from 10G to 200G.
I followed the exact steps here:
https://cloud.google.com/compute/docs/disks#repartitionrootpd
To summarize:
I ran fdisk, ...
8
votes
2
answers
18k
views
Configure postfix to use Google Apps SMTP relay in a Google Compute Engine instance
What are the steps to set up postfix as SMTP relay that uses the Google Apps SMTP relay. There are a bunch of tutorials on the web that explain how to use the smtp.gmail.com gateway with SASL ...
8
votes
2
answers
4k
views
How to add new persistent disk without rebooting the server?
I've got a running instance on GCP and would like to add another persistent disk into it. But it will not show up.
It's an n1-standard-1 instance with a 10 GB storage (named s03). I created another ...
8
votes
1
answer
18k
views
Cannot enable cgroup_enable=memory swapaccount=1 on GCE Debian Jessie instance
In order to support Docker memory limits / quotas I'd like to enable the
cgroup_enable=memory swapaccount=1
Linux kernel command line options on my Debian Jessie Google Cloud Compute Engine ...
7
votes
6
answers
13k
views
How do I change reverse DNS on Google Cloud Compute?
How do I change reverse DNS on Google Cloud Compute?
I want to add reverse DNS to Google Cloud Compute and can't figure out howto do it.
I want to map 11.97.196.104.bc.googleusercontent.com to ns1....
7
votes
2
answers
7k
views
Why a pod can't connect to another network? (In the new version of Kubernetes)
I have two projects in GCP:
With Kubernetes Nodes v1.8.8-gke.0. and a database outside of Kubernetes but in the default network. All pods can connect to this server and all ports
With Kubernetes ...
7
votes
3
answers
9k
views
How to recreate a google compute engine vm from one project in another project?
I have created a VM in project A in GCE. I want to create a new instance based on this VM in another project B.
I reckon I can spawn a new instance based on the a disk snapshot. However I cannot ...
7
votes
3
answers
6k
views
GCP: No access to Container Registry from Compute Engine
I have a Docker image pushed to Google Container Registry at gcr.io/my-project/my-image:latest. In the same project, I created a Google Compute Engine instance based on COS (Container-Optimized OS) ...
7
votes
2
answers
12k
views
Google Cloud HTTPS Loadbalance, how to force http to https
i have activated a HTTPS loadbalancer on GCP, with SSL certificate. On fronted i have specified HTTPS/443 as listening protocol and HTTP to comunication with backend.
https it working nicely, but ...
7
votes
1
answer
11k
views
Cannot edit VM or access it via SSH. error:Supplied fingerprint does not match current metadata fingerprint
I have a Linux machine on Google Cloud, created with Bitnami.
It was working well, and it could be accessed through SSH, usign the web console or putty. However suddenly today it can not be accessed ...
6
votes
1
answer
5k
views
I accidentaly enabled the UFW on my Google Cloud Computer
I accidentally enabled the UFW on my Google Cloud Compute debian instance and unfortunately port 22 is blocked now. I've tried every way to go inside the VM but I can't.
I'm trying to access through ...
6
votes
2
answers
11k
views
Is it safe to execute "sudo reboot" on a Google Compute Engine instance?
I’ve been using Google Compute Engine for 2 months now, I have a bunch of stuff installed on it.
Just installed a new kernel, so a reboot is required. I'd like to know if sudo reboot is safe. Meaning ...
6
votes
3
answers
3k
views
How to migrate to Google managed certificates without downtime?
I'm moving example.com from an external (non-Google) hosting provider into GCP.
When setting up the load balancer, I noticed that I have to point example.com to the load balancer in order for the ...
6
votes
2
answers
1k
views
Google Cloud disk multiple snapshot schedules
Is it possible to have multiple snapshot schedules assigned to a single disk in Google Cloud Compute Engine?
My goal is to have a daily snapshot schedule with a certain retention policy and a weekly ...
6
votes
1
answer
276
views
Why is the pricing of my GCP instance going down every week and comes back up at the beginning of each month?
I'm running on Google Cloud. I was looking at the costs and I noticed something weird - every week the daily cost of running machines is going down, and then on the 1st day of the month, it goes back ...
6
votes
1
answer
7k
views
Open 443 on Google Compute Instance?
For some reason I can't open port 443 on my google compute instance. I have HTTPS server enabled on the instance, and using gcloud compute firewall-rules list returns the rules below:
NAME ...
6
votes
2
answers
21k
views
Error: bad command `nospoof on' in /etc/host.conf file
Iam using a Ubuntu 17.10 VM in GCP. To prevent my server's IP from being spoofed, I did the below changes in my /etc/host.conf file:
Changed from:
# The "order" line is only used by old versions of ...
6
votes
2
answers
4k
views
Stackdriver Extractor fails
I'm trying to get stackdriver working with GCE. I went through the standard instructions to install (executing stack-install.sh --write-gcm), however it doesn't seem to work at all. When I add ...
6
votes
1
answer
2k
views
Google Cloud Storage Fuse vs GlusterFS, pros, cons and costs
I'm setting up some web servers on Google Cloud Compute and I need a directory synced between all the servers to keep the web sites in sync.
I'd also like to use the autoscaling feature to provision ...
6
votes
1
answer
3k
views
How to debug internal 400 errors in Google Cloud
We have a system that we are migrating from AWS to Google Cloud. The servers are containerized and deployed through Kubernetes.
We have the frontend making api calls to the backend. A lot of the time ...
6
votes
3
answers
15k
views
default ssh is not working from GCP Console and browser crashes or hang
After creating an instance in Google Cloud Platform(GCP), I was able to click on SSH and open the browser based SSH console to access the instance. (Auto key copying and connect from console itself ...
6
votes
4
answers
3k
views
How do you securely retrieve the ssh host keys from a google compute engine instance?
I want to update my ~/.ssh/known_hosts with the host key information for a newly created GCE instance. But I'm not sure how to securely retrieve that information.
I thought something like
gcloud ...
6
votes
2
answers
2k
views
Intermittent DNS failures in Google Container Engine
[Question rewritten with details of findings.]
I am running a Google Container Engine cluster with about 100 containers which perform about 100,000 API calls a day. Some of the pods started getting ...
5
votes
2
answers
7k
views
Google compute - SSH - port 22 blocked by ufw
Well, I was doing some server setup reading this article and ran the following commands -
sudo apt-get install ufw
sudo ufw enable
sudo ufw allow 80/tcp
sudo ufw allow 443/tcp
This basically ...
5
votes
2
answers
9k
views
How to change SSH key on Google Cloud?
I need to replace the existing SSH key with a new one, but I don't see such options in Cloud admin panel.
What is the right way to do this?
5
votes
4
answers
33k
views
Why can't I access Metadata Server of GCP Instance?
I am getting Could not resolve host metadata.google.internal or Could not resolve host metadata error when I try to access Metadata Server.
Although I use my own VPC with custom firewall, I don't ...
5
votes
3
answers
7k
views
Resize kubernetes cluster with a different machine type?
I want to add a new node in existing kubernetes cluster, but with a different machine type. For the new node I will add label for it so that only some application will run on it.
I tried the ...
5
votes
1
answer
3k
views
How to disable update notification in gcloud command?
I am using Google Cloud SDK CLI (gcloud command), and the command is great! Although I'd like to output Google Compute Engine's instances list in JSON format (by running gcloud compute instances list -...
5
votes
1
answer
7k
views
GCP VM Disk space alert
How can I configure GCPs monitoring suite to look at % disk utilization (in total space used, not IOPs)?
The only "disk used" metric I see in metrics explorer seems to chart some kind of units per ...
5
votes
2
answers
5k
views
Why might an External IP change on a Google Cloud Platform VM instance?
I realized that the external IP of my VM instance changed to an IP that I don't know. Also, next to the external IP it says "(ephemeral)".
What could cause this to change? How do I prevent that in ...
5
votes
3
answers
21k
views
How do you modify the existing access scope of a Google Cloud Platform service account?
I have a service account, which is asssigned to my GCE instances and is listed as active, which I can verify by running gcloud auth list on any one of the instances. The service account currently has ...
5
votes
1
answer
2k
views
How do I remove internet access from a Google Instance?
One of the cloud instances I manage got hacked. It is powered down at the moment, but I want to bring it up disconnected from the internet. So I can examine and analyze it with it continuing to do it'...