18 questions
0
votes
0
answers
56
views
GCP Healthcheck that accepts non-200 code
Have a use case where I need to check an HTTP web server's health, but need to accept a non-200 code (so 3xx, 4xx, and even 5xx).
I know this isn't possible with HTTP or HTTPS checks, but it seems it ...
0
votes
1
answer
117
views
How to attach two instance schedules to one compute instance in Google Cloud?
I have a Compute Instance on Google Cloud which had an instance schedule attached which launched it on every Monday at 12:00. Then, I needed it to also launch every 1st day of the Month, in addition ...
1
vote
1
answer
749
views
How do I use ansible to connect to gcp compute instances without manual ssh keys?
I am trying to set up ansible for my gcp compute instances.
I want to know if there is some way to use gcp credentials for logging into compute instances.
I am aware of the ansible gcp_compute module ...
0
votes
0
answers
28
views
Error calling RegisterAgent, code = DeadlineExceeded while booting GCP VM
14 of my VMs weren't booted properly, here are logs from one VM
WARNING 2024-05-17T01:37:44.888977751Z [resource.labels.instanceId: 3727978341256079848] Error calling RegisterAgent, attempt 1, ...
0
votes
1
answer
1k
views
how to calculate the cost analysis of the composer and scheduler running time vs total cost per day in GCP?
I have a requirement to cost optimization in my project, for this i need to do a check of how to calculate the cost analysis of the composer and scheduler running time vs total cost per day in GCP?
I ...
0
votes
1
answer
750
views
Using host SSL cert across Docker containers
Goal
I want to make sure the SSL cert that is installed on my host machine can be used by my Docker containers running on that machine.
My Setup
VM: My virtual machine is a Google Cloud Compute Engine ...
2
votes
1
answer
727
views
API for getting GCP Committed-use discounts and it's applied resources
Is there any GCP API or GCP Java Client methods for getting Committed-use discounts details and resources for which CUD's applied?
0
votes
1
answer
1k
views
Get the operating system of a GCP instance without pre-defined features
How can I get a GCP Instance operating system type?
I need to be able to tell if an instance os type is Linux or Windows using the API / .Net Client SDK.
So far I found answers such as get-guest-...
0
votes
1
answer
548
views
GCP compute engine: how to check instance type (custom Linux) from the instance terminal?
I have custom Linux that I can boot up on AWS and GCP.
In AWS I can check EC2 instance type easily from terminal:
aws-instance-xyz:/ # dmidecode -s system-product-name
m6i.4xlarge
I would like to be ...
2
votes
1
answer
57
views
docker-compose volume on gcp are rewritting name depending on user
I am using a startup script on gcp that launches a docker compose file at instance startup.
The issue is coming from docker-compose that does not launch same volume name if I start it as jeorfevre or ...
0
votes
2
answers
141
views
How can i restore my Suspended Virtual Machine On Google Cloud Platform
About 1 month later I did crypto mining on my VM and then got a alert and then i just deleted that VM and then I created a new VM to do Codes and after a month GCP deleted my VM and said that i ...
1
vote
1
answer
591
views
How do I connect VSCode Remote Explorer to a Google Cloud instance
I have created a GCP Linux instance.
I am running VSCode in Windows.
I have run the following commands in the VSCode Terminal:
gcloud auth login
gcloud config set project ecxxxast-377213
gcloud config ...
2
votes
1
answer
3k
views
using Terraform, how to increase root disk of GCP instance without destroying the instance
I have a GCP instance created using Terraform. When I increase the size of its root disk, Terraform tries to destroy and recreate a new instance which is unacceptable. Here is my terraform code:
...
0
votes
1
answer
663
views
How to Autoscale a GCP Managed Instance Group using a Rabbitmq VM outside the group
I am using GCP and I have a specific problem to solve where I want to use the metrics from a RabbitMQ instance to control the autoscaling requirements of a Managed Instance Group. Do note that this ...
0
votes
0
answers
538
views
Is it possible to find previous machine type used by a GCP VM instance after changing to a different machine type?
In GCP Compute Engine, after changing a VM's machine type from for example, from e2-medium-2 to e2-standard-4, is there a way to list exactly when the machine type was changed from which type to which ...