Questions tagged [gcp]

For questions about Google Cloud Platform products and services.

Filter by
Sorted by
Tagged with
0
votes
1answer
25 views

how to schedule container in GCP

I have 5 tasks in my project that need to be run periodically. Some of these tasks are run on a daily basis, some on a weekly basis. I try to containerize each task in a Docker image. Here is one ...
1
vote
1answer
42 views

How do I setup a script to run on a schedule in a clean & professional way?

I have a small python piece of code that I want to run on a schedule. The dirty way to do it would be to just spin up an EC2 instance and use CRON to run the script. But I was wondering if there's a ...
0
votes
0answers
5 views

GCP Service Account Credentials Refresh

Is it possible to refresh or recreate a new set of Credentials Key json file via from google.oauth2 import service_account Library i.e programmatically via python libs. I am trying to refresh this ...
0
votes
0answers
7 views

How to pass sensitive data to new gcloud compute instances?

In AWS cloud formation I have some semblance of security in that when I provision a host with some credentials. (at least it appears as a bunch of asterices on the web console). But when I use a ...
1
vote
1answer
22 views

Accelerate autoscaled VM boot time

We're using Google Cloud Platform with an autoscaled pool of VM behind a google's load-balancer. When a new VM is created in the pool it starts from a template then executes a startup-script. The ...
1
vote
1answer
24 views

How to filter all roles with specific user in GCP

gcloud projects get-iam-policy [PROJECT-ID] lists all users with their roles for specific project. There are different filters and formatters available but I can't seem to find the right way to just ...
0
votes
1answer
69 views

Predictive autoscaling on K8s

I am learning about using Machine Learning for provisioning proactive resources on the Kubernetes and I have found some of the interesting articles about it on the internet(for instance for Thoth or ...
1
vote
2answers
165 views

Can we do zero-downtime kubernetes deployment with a single pod?

I've inherited an app with K8s services with the following config spec: ... replicas: 1 strategy: rollingUpdate: maxSurge: 1 maxUnavailable: 1 type: RollingUpdate For most ...
6
votes
1answer
4k views

How to list all users with specific role in GCP

gcloud projects get-iam-policy [PROJECT-ID] lists all users with their roles for specific project. There are different filters and formatters available but I can't seem to find the right way to just ...
1
vote
1answer
93 views

Is Google Kubernetes (GKE) worth it for a program that runs once a week?

My team is on the process of migrating all our cloud applications from AWS to GCP, and we were considering using GKE for our main program, until we got the news that Google will now charge an hourly ...
2
votes
1answer
62 views

SFTP server with third party user management system?

I understand how to set up SFTP servers on Linux and create users and their passwords manually. So basically, the users get authenticated as normal Linux users get authenticated through /etc/passwd. ...
2
votes
1answer
47 views

How to connect GCP Load balancer to Kubernetes cluster(single node cluster)

I'm creating a single node(name: node1) k8 cluster for demos. I have setup a nginx-ingress controller. service/volted-marmot-nginx-ingress-controller LoadBalancer 10.100.132.29 <pending&...
0
votes
2answers
362 views

How deploy public key to newly created VM on GCP?

I create VM instance using ansible module gcp_compute_instance My code: --- - name: Create jenkins node-1 hosts: localhost connection: local gather_facts: no vars: address: <my ip> ...
2
votes
1answer
410 views

GCP - Can't create a tpu on europe-west1

I'my trying to create a tpu for my vm instance from this tutorial but get this error message: ERROR: (gcloud.compute.tpus.create) PERMISSION_DENIED: Location europe-west1-b is not found or access is ...
1
vote
1answer
20 views

GCP compute quota hard caps?

Are there published upper limits or hard caps for the GCE CPU or Managed Instance Group Quota per account? I know that you can request to increase your Quota, but I have not been able to find what the ...
1
vote
1answer
88 views

Compound calculation of GCP GCE SLAs based on number of instances?

GCP publishes a 99.99% uptime SLA for GCE. How would I calculate an estimated SLA if my application used services deployed on 1,000 GCE instances? Assuming that the services were dependent on each ...
4
votes
1answer
368 views

Building a CI/CD pipeline on GCP

I have a containerized web application on GitHub and I would like to build a CI/CD pipeline on GCP consisting of a trigger stage, a build stage and a deployment stage and be able to do continuous ...
4
votes
1answer
1k views

How to download a VM image from GCP?

I do not see a download button. I would like to download a VM image that was created on GCP using Packer and I would like to run it locally in Virtualbox.
2
votes
2answers
72 views

What artifact managers are available in GCP?

I use artifactory and nexus, but I wonder what artifact manager could be used in GCP? Is there a managed artifact manager or do I have to run one myself in a VM?
3
votes
1answer
806 views

Google Cloud Registry and multiple projects

Is it possible to pull images from the same GCR from multiple GCP projects without making the registry public? I want to do this so I do not have to upload multiple times the same image to multiple ...
2
votes
1answer
3k views

Installing Helm charts using Terraform

I have been trying to install Helm charts using Terraform in a cluster which operates in GKE. My question is in two parts: Is it a good practice to use Terraform for installing Helm charts? I have ...
1
vote
1answer
45 views

If we are using Kubernetes do we need to implement HA on both the infrastructure and application level?

Is this something that's going to be covered at the application level with pod autoscaling? Or should we implement both horizontal pod autoscaling and infrastructure high availability within our cloud ...
2
votes
1answer
264 views

How to exclude storage.bucket.list permission on public gcp storage bucket

Google Cloud Platform Storage Buckets can be directly exposed via HTTP. The recommended configuration for this is to have allUsers with the Storage Object Viewer role. The Storage Object Viewer role ...
9
votes
3answers
2k views

How should GCP projects be organized? [closed]

I have recently inherited the previous director of devops duties in managing a transition from Heroku/AWS to GCP. I'm wondering what is best practice for organizing projects in GCP. Should the be ...
7
votes
2answers
2k views

How to know which user created the GCE Instance

We have several billing enabled projects in our GCP account and each of them has several Compute Engine Instances. I want to remove non-critical instances just to reduce the unnecessary billing. But ...
2
votes
2answers
849 views

How to allow users to list authorized buckets in GCP Storage?

I created a storage bucket B and I granted a user as "Storage Object Viewer" on it. The user can view bucket content with a direct link (e.g. https://console.cloud.google.com/storage/browser/B/?...
4
votes
1answer
86 views

How to recreate GCP Preemptible VMs behind LB before they expire?

I created preemptible instances in a managed instance group behind LB, I specified the preemptible option in the instance template. Because GCP Compute Engine always terminates preemptible instances ...