Questions tagged [gcloud]

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

211 questions
2
votes
1 answer

List NTP information of gcloud kubernetes

Is there an option to show, that metadata.google.internal is used as NTP when i connect to a pod or to the kubernetes VM? I tried the following: ntpq -p, which results in command not found, but was listed on…
2
votes
1 answer

Will I be charged for a VM instance which was in a project I shut down recently?

I recently shut down a project in gcloud. I had a VM instance running in that. Will that project charge my free trial credit even after shut down?
1
vote
1 answer

How to set instance group manager created instances not simultaneously?

I need instance group manager created multiple instances and then let each instance run a start-up script. But I hope this instance creation has some order or intervals. Cause if multiple nodes run same start up script at same time. This will made…
wzf1943
  • 11
  • 1
1
vote
1 answer

kubectl not showing new context created in GCP

From client A, I created a new kubernetes cluster in GCP as follows: $ gcloud container clusters create my-new-cluster --num-nodes 3 From client A, I can see the new context was created: $ kubectl config get-contexts CURRENT NAME …
jersey bean
  • 125
  • 1
  • 8
1
vote
1 answer

Guidance with the usage of `gcloud vm instance persistent route`

Can anyone help with adding persistent routes to VM instances created on GCP? Specifically with Debian 9 and Ubuntu 16.04. For anyone not familiar, editing the /etc/network/interfaces file will not work for example.
1
vote
1 answer

gcloud error: Network connection problems may be due to proxy or firewall settings

I want to open a an ssh session to my GCP VM instances using gcloud, but I seem to have problems because of my http proxy server. After installing the google-cloud-sdk in Ubuntu I ran gcloud into --run-diagnostics which failed with an error…
Damian
  • 113
  • 1
  • 7
1
vote
1 answer

ImagePullBackOff Kubernetes from Google Cloud Container Registry

The standard Hello-World app as available on https://cloud.google.com/kubernetes-engine/docs/tutorials/hello-app does not work. There appears to be some pull access issue, despite the fact that things should work right off the box when working with…
1
vote
0 answers

ERROR: gcloud crashed (UnicodeDecodeError): 'ascii' codec can't decode byte 0xbb in position 3: ordinal not in range(128)

My environment: $ cat /etc/redhat-release CentOS Linux release 7.6.1810 (Core) $ python --version Python 2.7.5 $ I followed Quickstart for Red Hat and Centos  |  Cloud SDK Documentation  |  Google Cloud and now trying to run gcloud init, yet…
alexus
  • 13,112
  • 32
  • 117
  • 174
1
vote
2 answers

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 space? how can I do it. On doing df Filesystem …
1
vote
1 answer

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 to use the 99% of cpu. Now I cannot connect…
Luis Lopez
  • 133
  • 1
  • 9
1
vote
3 answers

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 not the case). We need a solution, something to…
1
vote
1 answer

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 allowed: > - IPProtocol: tcp ports: > - '80'…
franck
  • 133
  • 4
1
vote
1 answer

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 StackDriver. From this API I'm logging Json…
1
vote
1 answer

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-instance-group-ab12 --zone=us-central1-b ... about the…
1
vote
1 answer

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

When running the following gcloud command on my existing GKE cluster…