Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [google-cloud-platform]

Google Cloud Platform provides cloud computing services that let you build applications and websites, store data, and analyze data on Google's infrastructure.

21
votes
1answer
10k views

The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 6A030B21BA07F4FB

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/...
20
votes
5answers
4k 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 ...
16
votes
2answers
15k 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
3answers
7k 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 ...
13
votes
7answers
26k 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 ...
13
votes
2answers
5k views

Using Google's App Engine as CDN for static files

I am planning on moving my static files to Google's App Engine. I was wondering if this is a good idea to do. I have read that is it possible that Google will cache your files on multiple locations, ...
12
votes
5answers
34k 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 (...
12
votes
2answers
4k views

Create a single, outbound IP for a given network

I'm trying to determine the best way in GCP to assign a single, external IP address for OUTBOUND traffic. My use case: I need to provide a static IP to a 3rd party so they can whitelist it, so that my ...
11
votes
3answers
9k views

How to use GOOGLE_APPLICATION_CREDENTIALS with gcloud on a server?

What is the simplest way to use the gcloud command line non-interactively with a Service Account outside of GCE? Preferably without littering the file system with credentials files, which is what ...
11
votes
0answers
1k views

Enable VPC-native (alias IP) on an existing GKE cluster

Is there a way to enable Alias IP on existing GKE cluster (with disabled Alias IP)? (Besides using https://github.com/bowei/k8s-custom-iptables to create NATs on each node)
10
votes
1answer
4k 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 ...
9
votes
2answers
4k 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, ...
9
votes
3answers
4k views

Stable public IP or IP range for outbound connections in GKE

I use Google Kubernetes Engine to run on demand pods. Each pod is publicly exposed to the internet using a nodeport service. I am looking for a way in GKE to get a single IP or an IP range for ...
8
votes
2answers
7k views

Creating MX record in Google cloud DNS

I am trying to add ASPMX.L.GOOGLE.COM as MX record but cannot do so. the error is invalid data record. Anyone know how to fix it ? I am using Google Cloud Platform with Google Cloud DNS. For my mail ...
8
votes
3answers
7k views

Google Cloud DNS vs. Google Domains DNS [closed]

I run a smallish website on Google App Engine. Currently, I use Dreamhost for other things and I buy my domains through them and they provide the name servers. I'm in the process of switching domain ...
8
votes
2answers
3k 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
2answers
4k views

Apply firewall rules to an HTTP load balancer

I'd like to take advantage of the Google Cloud Platform HTTP(s) load balancer, but I need to restrict access to the load balancer to a specific block of IP's. Is it possible to apply firewall rules to ...
7
votes
2answers
2k views

How to create a url in a wordpress that will return code 200?

This is needed because I need to implement a load balancer in GCP for a word press instance. GCP will only forward a request to the wordpress instance if it passes the health test. Here is a ...
7
votes
3answers
11k 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 ...
6
votes
3answers
5k 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 ...
6
votes
3answers
3k views

What's the cheapest way to host hobby projects?

What's the best place to put your hobby web projects(the web app itself, not the code) ? Typically, the projects are such that: a) I just want to test out an interesting idea without exploring the ...
6
votes
2answers
6k views

permission errors using gcsfuse as nonroot user on google compute instance

We are currently trying to demo the google cloud platform for some workloads that require lots of storage. We are trying to use google cloud storage but are having problems mounting the buckets using ...
6
votes
1answer
2k views

NGINX vs. GCE Kubernetes ingress classes

When setting up a Kubernetes ingress on Google Container Engine, you can choose the ingress class (gce or nginx). I realize that the GCE class provisions a load balancer on Google's Cloud Platform, ...
6
votes
1answer
5k views

Insufficient regional quota to satisfy request for resource: “CPUS”

I have scripts that build up and tear down clusters on Google Cloud Platform. After running these scripts several times without error, I am now unable to run the script to build up a cluster, ...
6
votes
2answers
8k views

Using JSON keys with google cloud gsutil

I have a ssh private key in a key.json file, and I want to use this credential to access a storage bucket using gsutil. I can't seem to find anything about how to include json keys as a ...
6
votes
2answers
2k views

Nginx as reverse proxy for Google App Engine application

I want to use nginx as a reverse proxy for Google App Engine application to support naked domain as described here. If I use this scheme, will all the traffic go through the server that hosts nginx or ...
6
votes
1answer
1k 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
2answers
13k views

How do I access a google cloud storage bucket using a service account from the command line?

I thought it would be pretty straight forward to do this, but I can't get it to work: I'm trying to push files from a server (GCE) to a google cloud storage bucket. To avoid granting the gsutil ...
6
votes
0answers
640 views

Tailing logs with GCE and stackdriver

I have a running Kubernetes cluster that aggregates it's logfiles in stackdriver and would like to tail the aggregated logs on the command line. But so far I am only able to view the json stream float ...
5
votes
3answers
3k 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
4answers
4k 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 ...
5
votes
3answers
2k views

Alternative to heroku or google app engine for static files

I'm creating a simple site for my family and which is basically just static files (I don't want a CMS). I've tried using heroku and google app engine but heroku wind down the server which yields a ...
5
votes
2answers
230 views

Does Cloud Computing COST a premium? (or is it competitive with shared/managed/co-location)

Since cloud solutions (Google AppEngine, Amazon, etc.) do more for you, at the end of the day do they cost significantly more than doing it "yourself" with co-location hosting, etc. Not just ...
5
votes
1answer
4k views

Why are Google Cloud Compute Engine WAN speeds less than what Google has documented?

I have a google compute engine instance in us-central1-b running Centos 7 with 1vCPU and 3.75GB RAM. According to the section "Egress throughput caps" on https://cloud.google.com/compute/docs/...
5
votes
2answers
1k views

How to connect networks from different projects, VPC peering analogue

Google recommend to use different projects to control access to resources - ok, it seems reasonable I plan to create one "shared" project with some infrastructure services and then several projects ...
5
votes
1answer
1k views

Slow synchronisation stage on gsutil rsync?

I've just started to use GCS as backup for my web servers. One server has 1.2 million JPEGS (3.5TB) and this all rsynced over flawlessly over 10 hours or so. The other has 2.5 million JPEGS (just ...
5
votes
1answer
2k views

How can I install Stackdriver's monitoring agent on Ubuntu 18.04LTS?

I'm trying to use Stackdriver Monitoring on an Ubuntu 18.04 VM on Google Compute Engine. It looks like 18.04 isn't supported yet, even though it's an LTS release. I tried editing the install script ...
5
votes
1answer
3k views

Static IP address for App Engine app

I'm currently moving my e-commerce app to Google App Engine. I'm using the PHP Flexible runtime (PHP flex). One of the transaction requires a call upon my Payment Provider's HTTP API. The problem ...
5
votes
1answer
2k views

Random failed_to_connect_to_backend errors on GCE LB

I made a simple setup with two GCE instances behind a load balancer. But in the balancer logs, I can see random 502 responses with the following error: "failed_to_connect_to_backend" Al thought the ...
5
votes
1answer
14k views

How to mount drive at Google Cloud (Google Compute Engine)?

I have runned instance in Google Compute Engine with 120Gb boot drive. But I'm not able to use it. 1. sudo df -h Filesystem Size Used Avail Use% Mounted on /dev/sda1 9.9G 1.1G 8.3G ...
4
votes
1answer
1k views

How to prevent a user from creating GCP project

In GCP, any user is able to create a project. An organisation may end up having a lot of projects in its hierarchy. How to we disable all the users from being able to create projects, and only allow ...
4
votes
2answers
1k views

Private address space IP found in X-Forwarded-For

I'm reverse proxying with nginx behind Google Cloud (HTTPS) Load Balancer, so I add the X-Forwarded-For header so that the backend can extract the client (browser) IP. This morning I noticed a 10.x....
4
votes
3answers
2k views

Google Cloud SQL authorize Auto Scale Instance Groups

I have an instance group set up with Auto Scaling and Load Balancing. I'm also using Google Cloud SQL for the MySQL server. Whenever instance group scales up and adds another instance, the instance ...
4
votes
2answers
2k views

How to renew SslCertificate resource on Google Cloud load balancer?

Is there a way to renew an SslCertificate resource on the Google Cloud load balancer when the underlying certificate expires, or do you have to create a new resource with the renewed certificate? I'm ...
4
votes
1answer
7k views

How can you redirect HTTP to HTTPS (GCP Load Balancing)?

I'm playing with GCP Load Balancing and want to redirect HTTP to HTTPS links. But cannot figure out. My Load Balancing looks like: Load balancer name Front End: Protocols IP ...
4
votes
2answers
2k views

Kubernetes - External Connection through single IP

I need to find a way to have 1 IP that is used by all pods everytime they need to connect to the "outside world". FULL VERSION: I'm trying to integrate my application with a Payments Gateway service....
4
votes
1answer
4k views

Google App Engine | domain name mapping | Go Daddy domain name

Right now I have no ahost records set in Godaddy. I read something that said I should set it to 64.202.189.170, but I think that's for the case of domain name forwarding, NOT mapping, and that's not ...
4
votes
1answer
80 views

locked out of ssh and sftp and require new password

I have tried to log into my Google Instance running "CIS CentOS Linux 7 Benchmark Level 1" and get the following message. It's asking for the current password which we don't have. Is there a way to ...
4
votes
1answer
282 views

How to obtain project quotas states (ssd disks, cpu)?

I try to obtain project quotas info for my GCP projects via gcloud or API: gcloud compute project-info describe --project [my-project-id] Unfortunately there is no data for CPUs and ssd disks. I ...
4
votes
1answer
452 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 ...