Questions tagged [gcp]
For questions about Google Cloud Platform products and services.
33
questions
0
votes
0
answers
10
views
How to Scale Down Nodes on GKE if there are Cluster-Wide Minimal Resource Limits?
I am pretty new to Kubernetes and GKE. I have a cluster which has two node pools and I get a notification for them:
Can't scale down nodes because it would violate cluster-wide minimal resource limits
...
1
vote
1
answer
28
views
What are the core differences between DevOps and Agile ? And Is both two different approach to solve the similar problem?
I read some articles related to DevOps and Agile and found both are two different methodologies for software development.
My questions is, If both methodology is solution for same problem then what is ...
0
votes
0
answers
36
views
Argo workflows health checks failing in GKE
I am trying to expose my argo workflows deployment to a domain but I keep getting Server Error when I access the domain: argo.example.com. I setup a GKE ingress and been trying to fix the health ...
0
votes
1
answer
13
views
Why is my GCP managed Cert not working with kubernetes
I have the following that seems to work...
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: test-ingress
namespace: test
annotations:
kubernetes.io/ingress.global-static-ip-...
0
votes
0
answers
45
views
Access denied while pushing image to GCR via a Jenkins job
I'm running into a strange issue where my Jenkins job fails with the following error while pushing the docker images to GCR.
Although if I SSH into that particular Jenkins worker node and run the step ...
0
votes
0
answers
19
views
Cloud Run not connect in VM Google
I have a question and problem regarding GCloud services and I'm not finding a solution:
I created a serverless with Cloud Run from Google, uploaded my application and everything went fine.
My problem ...
0
votes
1
answer
135
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 ...
2
votes
1
answer
46
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
0
answers
6
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
0
answers
9
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
1
answer
24
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
1
answer
68
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
1
answer
180
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
2
answers
227
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 ...
7
votes
2
answers
5k
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
1
answer
114
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
1
answer
81
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
1
answer
54
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
2
answers
546
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
1
answer
619
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
1
answer
23
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
1
answer
108
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
1
answer
384
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
1
answer
2k
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
2
answers
78
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
1
answer
937
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
1
answer
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
1
answer
46
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
1
answer
327
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
3
answers
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
2
answers
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
2
answers
916
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
1
answer
91
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 ...