Hot answers tagged

7

Note: I'm not a GCE user yet, the answer is based solely on documentation. You could be Viewing Audit Logs in the Google Cloud Console, more specifically the Admin Activity logs: Admin Activity logs contain log entries for API calls or other administrative actions that modify the configuration or metadata of resources. For example, the logs record ...


5

Speaking primarily from the Google App Engine (GAE) perspective. My preference is for environment-driven project split. This might be of interest: Advantages of implementing CI/CD environments at GAE project/app level vs service/module level? I wouldn't go for architecturally-driven project split unless there are serious reasons for doing so (if you feel ...


3

Is there anyway to configure K8s to actually bring up a new pod, direct new traffic to it, and only then shutdown the old pod? This is the default behavior. MaxSurge is number of additional pods that runs during upgrade. What you also have to check is how the load balancer is handling traffic, does it have capability to detect that you have deployed a new ...


3

I don't know of a way to get the actual GCE VM images. But it's possible to export the images to GCS (as a tar.gz archive): If you need to move your Compute Engine boot disk data outside of your Compute Engine project, you can export a boot disk image to Cloud Storage as a tar.gz file. You can export a custom image as backup or for sharing by ...


3

If the artifacts in question are docker images then the recommended artifact management solution is the Container Registry, well integrated with other GCP products producing and/or using such images. AFAIK they don't have a real artifact manager for other kinds of artifacts, they suggest the rather general purpose Cloud Storage for that. You can find an ...


2

Your application requirements really do influence your options here, maybe add more detail about the app because this subject is very much about your application architecture too. The application state is fixed, pod's are rebuilt as per the spec or source container that defines them and the replication sets take care of the deployment so I'd say the ...


2

I am not entirely sure what configs you were using, but here is a process using CLI (gcloud and gsutil). The end product is a new custom role replacing the current standard roles/storage.objectViewer on allUsers for a GCP Bucket. Recommend using GCP Cloud Cloud Shell in your Project: https://cloud.google.com/shell Create a new Role with the Custom ...


2

Google's recommended best practice is to create an Organisation within GCP so that you get access to folders, then model the hierarchy of your organisation within GCP: Some guidance/rules: there should only be one organisation that represents the entire organisation; configuring directory sync is very painful otherwise. folders should represent business ...


2

We have two projects: production and staging. Later runs dev, qa also. And for billing purpose, we tag resources accordingly.


2

Not sure if you sorted this out, but I had to do something similar to get who started the instance so I can badger them into stopping the instance if they are not using it. I put together a Logging query: resource.type = gce_instance AND (jsonPayload.event_subtype = compute.instances.start OR jsonPayload.event_subtype = compute.instances.insert ) AND ...


2

Yes, it's possible. Fundamentally GCR is built on top of Cloud Storage, with roughly the same basic access control: public, i.e completely accessible private, with quite flexible access control from pretty much anywhere, even from outside the GCP domain - being in a certain GCP project is rather irrelevant. From Granting users and other projects access to ...


2

You can use the GCP HTTP(S) Load balancer. Since you are running a kubernetes cluster (Assuming you are using GKE), GKE uses Google compute VM instance groups which can be put behind a load balancer as target group. You can follow the below steps to setup a load balancer and put your kubernetes node behind a load balancer. Login to GCP console and go to ...


2

That can be achieved using another gcloud command: gcloud beta asset search-all-iam-policies --query policy:"roles/owner" --project $your_project_id --flatten="results[].policy[]" --format="csv(bindings.members[0])"


1

These are presumably proprietary tools for EC2 and GCE respectively. The need for predictive VM autoscaling is pretty strong for Virtual Machines since provisioning time can be measured in the 10's of minutes depending on the configuration. Conversely, application spin-up time in Kubernetes is typically measured in seconds. Predictive scaling for the ...


1

If your workloads are exclusively ephemeral, the answer is probably not worth the infra management effort of deploying K8S. Kubernetes is best suited for types of workloads that are continuous, with regular incoming traffic and that require zero downtime. That's why it enables you to do things like rolling updates and implementing advanced traffic ...


1

As per the link, You can add keys via metadata. You can try the following. metadata: ssh-keys: "[USERNAME]:ssh-rsa [NEW_KEY_VALUE] [USERNAME]" Replace [USERNAME] & [NEW_KEY_VALUE] with actual key value.


1

According to "TPU types and zones" TPUs are only available in a very limited set of regions, namely: Europe, Middle East and Africa europe-west4-a (Eemshaven, Netherlands) Americas us-central1-a, b, c and f (Council Bluffs, Iowa, USA) Asia-Pacific asia-east1-c (Changhua County, Taiwan) Note: not every SKU is available in each region, so double check ...


1

There is a Quotas page in the GCP console. This Google help doc will tell you more and how to go about identifying your limits and increasing your quotas: https://cloud.google.com/compute/quotas


1

A new service have been released this year called Artifact Registry


1

you can use terraform to install helm charts, you dont have to obviously something is probably wrong with your kubernetes connection, check if its actually working


1

It's not currently possible to list all the accessible buckets across all cloud projects, neither in the developer console browser nor via the gsutil command. Both of them only display buckets for one project at a time. But if you specify a particular project (or stick with the one selected by default) you can list the accessible buckets inside that project ...


1

Strictly you can't do this with a single preemptable virtual machine as you only get a 30 second grace period. While the majority of calls to the Google Compute Engine API would create a new device within 30 seconds, there are cases when this would fail due to network latency or temporary outage. What you can do is create an Instance Group of Preemptible ...


Only top voted, non community-wiki answers of a minimum length are eligible