Stack Exchange Network

Stack Exchange network consists of 174 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
0answers
5 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
17 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 ...
0
votes
1answer
68 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
34 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, ...
0
votes
0answers
26 views

Cannot Access, ie. locked out, Google Compute Instance (via RDP or otherwise)

We have been running a Google Compute Instance (Server 2012 R2, 6Gb RAM, 150Gb HDD) for a couple of years. By and large it hosts JIRA, PIA (PM Software) and our Directory Service (Apache DS). The chap ...
-2
votes
1answer
89 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
0answers
12 views

In Gcloud, my instance template does not save some compiled binaries

Sorry if this is not the correct place for the question. I want to use a custom compiled version of vim (I want python3.6 support for Black, on 16.04 which stopped at python3.5). The core idea is to ...
0
votes
1answer
33 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 ...
0
votes
0answers
10 views

Started a nodejs server on a GCP windows server, how can I access the service with external IP?

just created a windows instance in Compute Engine and installed an application and started service on a port 3000(for testing). How can I access the app with external IP ? Tried to access ...
0
votes
0answers
42 views

client_body_buffer_size app engine

i was wondering if somebody could help me out. I am running a node server on a google app engine (flex) and i see the following warning in the log files: textPayload: "[warn] 32#32: *2096 a client ...
0
votes
0answers
14 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
31 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
0answers
35 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
60 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
29 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
70 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
140 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
300 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
49 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
35 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
163 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
23 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
383 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
145 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
62 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
162 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
167 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
705 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
141 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
165 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 ...
16
votes
1answer
6k 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
309 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
1k 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
240 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
777 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
334 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
430 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 ...
1
vote
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
72 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
297 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
2k 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
210 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
137 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
94 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 ...
0
votes
1answer
70 views

gcloud command to change instance type?

Looking for a quick gcloud example to change an instances type. For example I would like to change an instance from 32vcpus/64GB RAM to 2vcpus/4GB RAM. I know how to do it in the web interface.
0
votes
1answer
267 views

unable to establish remote connection to mariadb (mysql) on centos7 on gcloud from mac or gscipt

newbie here - Issue: unable to establish remote connection to mariadb (mysql) on centos7 from a mac or a gscript - setup: I got 2 lamp machines: one test (107) and another one production (35) 107 - ...
0
votes
1answer
136 views

I can no longer SSH to a VM on GCP after breaking ssh configuration

I am starting to use GCP. I fixed a server (redhat), connected to it (using SSH, directly from GCP console) and deployed my application, everything worked well To try to fix something I played with ...
1
vote
1answer
441 views

Copy list of files (-I flag) with gsutil preserving path

I am trying to copy all pictures and static files to a bucket of mine in Google Cloud Platform. I am attempting this command from the root dir of my app: find -regextype posix-extended -iregex ".*\.(...