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 [gcloud]

Questions relating to the usage of the Google Cloud SDK's `gcloud` command-line tool.

0
votes
2answers
104 views

gcloud no space left on device

My deployment was not successful with gcloud error log as. error building image: error building stage: write /kaniko/888833023: no space left on device Finished Step #1 Do I need to increase ...
1
vote
1answer
52 views

How to handle retention policies in GCP Container Registry

GCP Container Registry is built on top of GCP Cloud Storage and one can set quite complex retention policies there. However there's no such functionality in Container registry and as there's no ...
0
votes
1answer
27 views

How to monitor Kafka Consumer lag in Stackdriver?

I can view all the Kafka broker metrics by using the JMX exporter -> stackdriver monitoring agent and is displayed in the Stackdriver but i cant see any consumer metrics, i am particularly interested ...
2
votes
1answer
24 views

GCLOUD IAM VPN into gcp network

We want to create a VPN into our GCP network where users are authorized using their IAM credentials. This way we can hide our development servers from the outside world but not from the office/for our ...
0
votes
1answer
55 views

Enabling OS Login fails at gcloud beta compute instances add-iam-policy-binding

I'm trying to enable os login for an instance. I've already set the Metadata os-login: TRUE and added my public key to my account with the gcloud compute os-login ssh-keys add command. Now, I'm trying ...
0
votes
0answers
39 views

GCE DNS forwarding

I'm trying to setup local DNS forwarder for the VPC network to use LDAP controller which is running DNS server. I have few GCP projects which should be able to communicate over already built VPN ...
0
votes
0answers
33 views

ERROR: (gcloud.app.deploy) INVALID_ARGUMENT: This deployment has too many files

How do I fix this. I need to deploy and webapp that has almost 20000 files. AppEngine returns with the error 'ERROR: (gcloud.app.deploy) INVALID_ARGUMENT: This deployment has too many files. New ...
0
votes
1answer
61 views

How to use JSON keys with google cloud gsutil to manage multiple Keys

We have multiple GCP Service account keys from different environment such as DEV,STAGING,..PROD. I would like to run a command in my jenkins box which is there in Dev environment to create access DEV ...
0
votes
1answer
44 views

gcloud compute networks subnets list powershell equivalent

Is there any Get-GCE* PowerShell command that will do the same as "gcloud compute networks subnets list"? I have installed the latest Google Cloud SDK and PowerShell cmdlet's.
0
votes
1answer
101 views

gcloud compute ssh requires password even after using json key file for authentication

Hi Google cloud experts, I am trying to authenticate gcloud using json key and even doing everything as per docs it requires for password when I run gcloud compute ssh root@production Here is ...
2
votes
1answer
159 views

Google cloud platform: k8s master cannot ssh to nodes

I have a very strange issue on google cloud platform with one of my K8S clusters. Two days ago, everything worked like a charm. But yesterday every helm commands used to deploy on this cluster ...
0
votes
1answer
38 views

How can I compute only current instance disks

I need some help with Google cloud. I need a shell script for creating a current instance snapshot. I have researched and found some shell script which can create snapshots for all project instances, ...
-2
votes
1answer
355 views

Unable to connect to remote host: Connection refused [duplicate]

I have created vm instance in gcloud. And setup firewall rule to allow connection from port 5000.I added network tag to my vm instance. But if i test the connection by teneting to port 5000 I get ...
0
votes
1answer
58 views

Google Compute Engine new Ubuntu instance cannot login

I have just created a new GCE VM Ubuntu instance using the most basic way it is possible, and I cannot login to it. When I opened the interactive serial console -> Serial port 1 using the browser, I ...
-1
votes
1answer
33 views

Disable gcloud notification

Is there any way to disable this notification: * - There is an upgrade available for your cluster(s). To upgrade nodes to the latest available version, run $ gcloud container clusters upgrade NAME ...
1
vote
1answer
39 views

I cannot connect to Gcloud instance using ssh, since cpu is 99.9% of use

I have a gcloud vm instance of type custom (4 vCPUs, 8 GB memory), with ubuntu 16.04, 10Gb disk space. Today at specific time (7:30 am), start using the 99% of cpu. I restart the machine but continue ...
0
votes
1answer
81 views

mount GCPs buckets with write access

I can successfully mount my bucket using the following command sudo mount -t gcsfuse -o rw,noauto,user,implicit_dirs,allow_other fakebucket thebucket/ I can go into the bucket find the subfolders ...
0
votes
1answer
63 views

SFTP Authentication Failed, cannot use sudo, cannot edit hosts file

I have used a snapshot on google cloud to create a new instance. My original instance has not been deleted...I don't want it deleted, I just need to access files on a backup from 24 hours ago that ...
0
votes
3answers
32 views

Create Gcloud maintenance to restart instance if stops responding on port 80

we're using Google Cloud Platform, and running an instance Ubuntu which has Apache listening on port 80. Sometimes the instance stops responding, and the server goes down in Cloudflare (but that's ...
0
votes
2answers
83 views

gcloud cannot create Route Based VPN

In the google cloud documentation it describes how to create route based VPN using gcloud. When I follow the instructions, it always creates vpn tunnel with policy based routing. It is different than ...
0
votes
1answer
198 views

Appengine deployment failed with custom docker file

I am trying to deploy my vue.js code on appengine with custom docker file but I am getting error The docker file is working fine on my local machine. Can anyone please tell me what is the issue ? ...
0
votes
1answer
35 views

default firewall rules not executed on gcloud compute engine

I notice something weird behavior on my gcloud compute engine" this default firewall rules has no effect: > $ gcloud compute --project "plop" firewall-rules > describe default-allow-http ...
0
votes
1answer
611 views

vm.max_map_count problems on GKE ElasticSearch StatefulSet

A problem appeared on working ElasticSearch cluster on GKE. Nodes with "data" roles began to crash unexpectedly with an error: max virtual memory areas vm.max_map_count [65530] is too low, increase ...
0
votes
0answers
53 views

Problems trying to SSH/reset SSH for gcloud compute

I'm trying to SSH into gcloud. I'm currently inside ~/.ssh and have some VNC keys stored in there that was given to me. I have followed instructions with gauth login and set my project id to clear-...
0
votes
1answer
41 views

terraform IAM vs cloud console IAM

I am using a Terraform google_project_iam_policy resource to manage a number of roles for a project. I have noticed that it does not always remove a member from a role when I am expecting it to - ...
0
votes
1answer
237 views

How to get application_default_credentials.json file in GCP?

I'm developing an application locally(python), I want to list the details of all the projects & their instances. In order to perform this, I have generated application_default_credentials.json ...
0
votes
1answer
25 views

Encrypted config kubernetes on Google Cloud

I recently saw this page on the ability to encrypt secrets at rest. I am currently running kubernetes on Google Cloud, but I can't figure out how to set it up with the kube-apiserver. Any help is ...
0
votes
0answers
551 views

504 Gateway Time-out Nginx -> PHP-FPM kubernetes

I've been trying to get my nginx connection to work with php-fpm for several days now. The problem is, he always gives me a 504 and gives me the next error log: 2018/07/09 10:57:25 [error] 5#5: *10 ...
0
votes
2answers
166 views

Giving friendly names to authorised networks via gcloud command

I'm authorising instances access to PostgreSQL via the gcloud command: gcloud sql instances patch blah-sql-dev --authorized-networks 10.1.1.2/32,10.1.1.3/32,..... What I'm seeing under Cloud SQL's ...
0
votes
0answers
70 views

Error 22, gcloud deploy app; wrong slashes? From installing python tools with linux and using gloud shell on windows?

On Windows 10, I run glcoud app deploy And it fails, the stack trace starts like this ERROR: gcloud crashed (IOError): Got exception Traceback (most recent call last): File "C:\Program Files (...
0
votes
0answers
204 views

Configured libreswan(openswan) in google cloud vpn not working, what could be the issue?

I need to connect to a vpn from my gcloud vps. I configured openswan in a centos 7. Enabled ip forwarding by editing /etc/systemctl.conf by adding ip forwarding rule and reloaded systemctl. Added ...
0
votes
0answers
216 views

How to get the Compute Engine logs to end up in the structured jsonPayload instead of the textPayload?

I'm running an API on a Linux VM as a Compute Instance in the Google Cloud. The API is being run with systemd, and it's logging to syslog. I run the StackDriver logging agent to transfer the logs to ...
1
vote
3answers
1k views

How ssh Kubernetes engine instances and check public IPs of Kubernetes engine?

How can I access through ssh to the machine running the Kubernetes Engine? How can I check a public IP of the machines running the Kubernetes engine?
0
votes
1answer
194 views

gcloud compute instances describe self

I am in google cloud, in google compute engine. I am inside an instance in a managed instance group, What is the best command for giving me the output of... gcloud compute instances describe my-...
5
votes
1answer
213 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 ...
19
votes
1answer
8k 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/...
1
vote
1answer
376 views

When creating a regional node pool with gcloud. The nodes do not register

When running the following gcloud command on my existing GKE cluster SCOPES=( https://www.googleapis.com/auth/compute https://www.googleapis.com/auth/devstorage.read_write https://www.googleapis.com/...
0
votes
2answers
2k 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 ...
0
votes
1answer
298 views

Sync files between GCLOUD instances of same group

Have four instances in GCLOUD with SO: Linux (Ubuntu). I have to replicate the files uploaded through ftp to one machine and then to the remaining 3 machines. I have been thinking to use Rsync, but I ...
0
votes
0answers
1k 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 ...
0
votes
1answer
409 views

Gcloud kubernetes nginx unable to find upstream host after cluster upgrade

I have just upgraded my cluster and nodes to v1.7.12 and recreated all pods successfully except for my nginx pod which keeps on failing with the error: nginx 2018-02-17T08:38:07.965745644Z nginx: [...
0
votes
1answer
523 views

How to block port 80 in Google AppEngine

I want to block port 80 in Google AppEngine For example, when I run: sudo nmap -O <project-id>.appspot.com It shows: Starting Nmap 7.60 ( https://nmap.org ) at 2018-02-06 16:36 EST Nmap scan ...
2
votes
1answer
2k 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 ...
0
votes
0answers
82 views

Dynamic firewall rules in Google cloud - granting access from all kubernetes nodes to one instance

Let's say that you have a kubernetes cluster with a few nodes in a project in google cloud, and you have one separate instance in that project that all the nodes should have access to. How do you go ...
1
vote
1answer
2k views

How ephemeral (short lived) is the IP on a gcloud Compute Engine?

VM instance details report the external IP is ephemeral. Dictionary says this means "lasting for a very short time". Does anyone know how short? Static enough to aim DNS to this? If not very short, ...
0
votes
1answer
345 views

gcloud docker — push request canceled while waiting for connection

Trying to push docker image to gcloud and started getting this error. gcloud docker -- push us.gcr.io/purple01-192114/purple_cloud:80only The push refers to repository [us.gcr.io/purple01-192114/...
1
vote
2answers
3k views

Google Cloud Platform - SSH Connection Refused

After clearing a project and instance of SSH key metadata and running gcloud compute ssh (which will create a new key pair and update project metadata), I am no longer able to SSH in without getting ...
0
votes
3answers
259 views

can't access from rdp after change MAC address with powershell on Google compute enginge

I have changed the MAC address of a Google compute engine vm. After that, I can't access from rdp to that vm any more. The vm is not pingable also. I've tried to access from serial port with no luck. ...
0
votes
0answers
156 views

`gcloud docker` command refreshing access token on each invocation

macOS Google Cloud SDK 183.0.0 beta 2017.09.15 bq 2.0.27 core 2017.12.08 gcloud gsutil 4.28 kubectl I have tried revoking the login and logging in again but every command of gcloud docker refreshes ...
0
votes
1answer
96 views

gcloud ubuntu instance not receiving port traffic

I have an Ubuntu 16.04 GCloud Compute Engine instance. I was using port 8085 with that instance with no issues until one day I stopped the instance and then started it again, right now I cannot access ...