Skip to main content

All Questions

Filter by
Sorted by
Tagged with
0 votes
0 answers
37 views

Google cloud build failing while running apply deploy steps

I am using Google cloud build for the first time to deploy to GKE. The first time i ran the triggers, It ran well, when i tried running it again, Its failing on the apply steps. Below is the error ...
Abby's user avatar
  • 103
1 vote
2 answers
183 views

Google Cloud Deploy is failing on step 0

I am using Google Cloud Build to build the artifacts and deploy to GKE using gcloud deploy command in the cloud build as the final step by passing the build artifacts to it from the previous step. The ...
Jassim Abdul Latheef's user avatar
0 votes
1 answer
116 views

google cloud build executing `kubectl get` cannot recognize output format json

In cloud build logs "Running the following command: kubectl [get httproutes.gateway.networking.k8s.io --field-selector=metadata.name=test-name-http-route --output=json | jq -r '.spec.rules[]?....
GigiWithoutHadid's user avatar
0 votes
1 answer
649 views

How to pass env variables and arguments while building cloud build docker images?

I am trying to learn cloudbuild and starting with a simple project where,when I commit to a branch of a github, a docker container is build,which copies a bash script file and print its content. I ...
Amarjeet Kushwaha's user avatar
1 vote
1 answer
173 views

Cloud Build Failed to Deploy in GKE

I upgraded my cluster to 1.26.2-gke.1000 , after that, all automated deploy failed in the last step with the following error. Application in version "v1beta1" cannot be handled as a ...
Ahmed Almulki's user avatar
1 vote
1 answer
505 views

GCP Cloudbuild deploy to GKE

I've create a cloudbuild.yaml that deploys my Helm application on a GKE cluster. After connecting to the cluster I run a simple kubectl get pods -A and all works, but when I run a helm list -A i got ...
hiimjack's user avatar
-1 votes
2 answers
756 views

tcp 10.10.2.2:443: i/o timeout Cloud Build accessing private GKE

I'm trying to get Cloud Build to access my private GKE by following the instructions described at https://cloud.google.com/architecture/accessing-private-gke-clusters-with-cloud-build-private-pools ...
Gary Turner's user avatar
1 vote
1 answer
290 views

Google cloud Manifest unknown during deploy to Kubernetes cluster

I'm trying to deploy my code placed in bitbucket repo to Kubernetes clusters available in google cloud. I've created a trigger which react when I push new changes to bitbucket repo. I mean: Based on ...
Krzysztof Michalski's user avatar
0 votes
0 answers
252 views

looping inside cloud build for multiple deployments

I'm trying to create multiple deployments using Cloud Build and Cloud Deploy in GKE cluster. Below is my cloudbuild.yaml steps: - name: "gcr.io/cloud-builders/gcloud" entrypoint: 'bash' ...
Rahul's user avatar
  • 420
0 votes
0 answers
159 views

GKE Ingress host (incorrectly) reverted back to old value after new Helm deploy

We have a problem with in GKE with an Ingress that keeps switching back to an old host when re-deploying with Helm (from script in Google Cloud Build). The Ingress was first created with host X and ...
Erik S's user avatar
  • 522
0 votes
1 answer
491 views

Cloud Build API call to check information regarding the latest build

I have been using the Cloud Build API in order to get the latest image information from Google Cloud Build that builds our Google Cloud Kubernetes Deployment Image into our Django Backend Application ...
london_utku's user avatar
  • 1,312
0 votes
0 answers
245 views

Access multiple private GKE clusters with Cloud Build private pools

I have two clusters in GKE (staging and production) and I've setup Cloud Deploy for deploying my web application to these clusters. So far I followed this documentation but I could only get cloud ...
Maiku Nakajima's user avatar
4 votes
2 answers
4k views

Cloud Build fails to deploy Cloud Run after started using Google Cloud Kubernetes Cluster

I have been using Google Cloud with free trial account. I was able to deploy Cloud Run builds from my Github repository. However, since I have started using a Google Cloud Kubernetes Cluster & ...
london_utku's user avatar
  • 1,312
0 votes
1 answer
797 views

Google Kubernetes Engine + Github Actions with google build workflow stuck at build step

I've been trying to run Google Kubernetes Engine deploy action for my github repo. I have made a github workflow job run and it is stuck at the build step, not updating. No matter how long I wait it ...
Turgut's user avatar
  • 809
2 votes
2 answers
478 views

Google Cloud Build Time Out after 10 mins

I have a Google Cloud Build build that times out after 10 min. The build status is set to "Build failed (timeout)" and I'm okay with it taking longer than 10 minutes.
Taqi Rizvi's user avatar
0 votes
0 answers
373 views

Error in connecting to GKE cluster from Google Cloud Build

I am trying to connect to GKE cluster in Google cloud build, i performed below build step steps: - name: gcr.io/cloud-builders/gcloud args: - container - clusters - get-...
raghu_manne's user avatar
0 votes
1 answer
403 views

cloud-build + gke-deploy app name or label are ignored

I have this config on a cloudbuild.yaml file: - name: 'gcr.io/cloud-builders/gke-deploy' args: - run - --app=doc-io - --namespace=frontend - --cluster=cluster-dev - --location=europe-west1-b ...
Jay Cee's user avatar
  • 1,965
2 votes
1 answer
868 views

Google Cloud Build Timed out 10 min

I try to create a deployment in GKE from BitBucket repository with "New container image" option. Create a deployment Building a container image But I receive ERROR: Timed out when my ...
Vitalii Yarmolenko's user avatar
0 votes
1 answer
312 views

Google Cloud Build pipeline in Mono-repository architecture with single cloudbuild

We are using multiple python deployments into a single GitHub repository with a folder structure. Each directory contains a separate scripts module. service-1/ deployment-1/ app/ ...
Sabir Piludiya's user avatar
2 votes
1 answer
979 views

setup skaffold to deploy changes to google cloud build

i'm new to skaffold and have setup the yaml file as below which should sync any changes in the src folder in my project to goolge cloud build. Please note Im not using git. When I run skaffold dev any ...
Jag99's user avatar
  • 754
0 votes
1 answer
399 views

Deploy to GKE when there is new image in Cloud Repository

I have a very interesting task. I'm using 5 different triggers to build 5 images on every push in gitbranch. After they are built I push them to 5 different GCP Container registries. I want to ...
Milen Tsvetkov's user avatar
0 votes
1 answer
702 views

Kubectl patch with json fails on Cloud Build

I can patch my ingress resource from cli with kubectl running following command: kubectl patch ingress ingress-resource --type=json -p='[{"op": "replace", "path": "/...
bcan's user avatar
  • 513
0 votes
1 answer
2k views

Using a database password stored in Google Secrets Manager from within a pod running in a GKE cluster

I am running an application in a Google Kubernetes Cluster. One pod in it needs access to an externally managed database (Google cloud SQL), and up until now has had a hard coded password for testing ...
Ral's user avatar
  • 390
0 votes
1 answer
971 views

GKE automating deploy of multiple deployments/services with different images

I'm currently looking at GKE and some of the tutorials on google cloud. I was following this one here https://cloud.google.com/solutions/integrating-microservices-with-pubsub#...
TommyBs's user avatar
  • 9,606
0 votes
1 answer
961 views

Is it possible to deploy kustomize command with cloud build on GKE of GCP?

If deploy with filename on GKE, Supported builder images provided by Cloud Build can be found from official. Also can found full list. But both gke-deploy or kubectl can't suite my requirement. I want ...
iooi's user avatar
  • 523
0 votes
0 answers
826 views

Is there a way to connect Cloud Builld through proxy to GKE priivate cluster?

I'm looking for a way to connect Cloud Build through proxy instance (GCP VM) to be able to deploy to GKE private cluster. I have bastion host with IAP and tinyproxy installed, and I'm able to connect ...
Mateusz Magusiak's user avatar
0 votes
1 answer
745 views

How to pull images on kubernetes on every deployment

Hi i am trying to deploy on my gke cluster through cloud build.I am able to deploy. But every time i am pushing new images.My cluster is not picking up the new image but deploy the pod with the old ...
Abhinav's user avatar
  • 81
1 vote
1 answer
1k views

cloud build deploy into gke cluster

I am using Google CLoud Build to deploy an image from Cloud repository into a GKE CLuster The command that i am trying to add in cloudbuild.yaml is as follows kubectl run hello-app --image='gcr.io/&...
Zama Ques's user avatar
  • 1,514
1 vote
1 answer
1k views

Google Cloud Build gke-deploy could not parse reference "eu.gcr.io/personal-134286/portfolio:6ccad35"

I have setup a cloud build pipeline using this guide but on the last step where it should apply the k8s configuration it gives a non descriptive error: Already have image (with digest): gcr.io/cloud-...
Xunafay's user avatar
  • 21
0 votes
2 answers
2k views

Your build failed to run: Couldn't read commit xxxxxxxx

I'm trying to build and deploy an image on GCP with cloud build. I have a rails api repo on bitbucket running on docker, the repo is synced with google cloud repository I configured a trigger on cloud ...
Hugues's user avatar
  • 31
0 votes
1 answer
1k views

GCloud Build - Error: Dial tcp -- no such host

Hi I have the following skaffold.yaml file apiVersion: skaffold/v2beta5 kind: Config build: artifacts: - image: us.gc.io/directed-relic-285313/auth context: auth sync: manual:...
Asool's user avatar
  • 14.2k
1 vote
2 answers
267 views

GCR - image missing all but two files, local image is complete

I have a container I'm deploying to Kubernetes (GKE), and the image I have built locally is good, and runs as expected, but it appears that the image being pulled from Google Container Registry, when ...
Chris Rutherford's user avatar
1 vote
2 answers
834 views

Cloud Build kubectl - How to Apply Output of Previous Step to Kubernetes Cluster

I have a simple cloudbuild.yaml file which runs a Bazel command. This command returns a Kubernetes configuration in form as a log output. My goal is to take the output of the first step and apply it ...
Florian Ludewig's user avatar
1 vote
1 answer
553 views

Bazel k8s_deploy Does not Apply Kubernetes Resources to Cluster

I have multiple Bazel rules for deploying Kubernetes deployments: load("@k8s_deploy//:defaults.bzl", "k8s_deploy") k8s_object( name = "k8s_deployment", kind = "deployment", cluster = "cents-...
Florian Ludewig's user avatar
0 votes
4 answers
2k views

How to write CI/CD pipeline to run integration testing of java micro services on Google kubernetes cluster?

Background: I have 8-9 private clusterIP spring based microservices in a GKE cluster. All of the microservices are having integration tests bundled with them. I am using bitbucket and using maven as ...
Roobal Jindal's user avatar
0 votes
1 answer
1k views

Helm Fail In Cloud Build

I'm using alpine/helm:3.0.0 in the following Google Cloud Build step - id: 'update helm app' name: 'alpine/helm:3.0.0' args: ['upgrade', 'staging', './iprocure-chart/'] env: - ...
Yunus Einsteinium's user avatar
3 votes
1 answer
4k views

Cloud Build - "rollout restart" not recognized (unknown command)

I have a small cloudbuild.yaml file where I build a Docker image, push it to Google container registry (GCR) and then apply the changes to my Kubernetes cluster. It looks like this: steps: - name: ...
Florian Ludewig's user avatar
0 votes
1 answer
167 views

CI CD Pipeline on GKE - Push Manifest Fail (Finished Step #5 - "Push manifest" ERROR)

I am working on setting up CI CD pipeline for Spring boot application on GKE. While doing the CI using Cloud Build on GCP, Build fail while pushing the updated manifest to candidate branch. "Failed at ...
nsingla85's user avatar
  • 855
0 votes
0 answers
1k views

CI CD Pipeline on GKE - Deployment failing ("Deploy": error: no objects passed to apply)

I am working on setting up CI CD pipeline for Spring boot application on GKE. The CI build step worked correctly but the delivery build step is failing due to 'error: no objects passed to apply' error....
nsingla85's user avatar
  • 855
1 vote
2 answers
1k views

Google Cloud VM Image to docker image

I have a Google Cloud VM that installed with my application. The installation step is completed and I: Turned off the VM instance. Exported the disk to disk image called MY_CUSTOM_IMAGE_1 My wish ...
No1Lives4Ever's user avatar
20 votes
2 answers
19k views

Google Cloud build conditional step

I have the following cloudbuild.yaml file: substitutions: _CLOUDSDK_COMPUTE_ZONE: us-central1-a _CLOUDSDK_CONTAINER_CLUSTER: $_CLOUDSDK_CONTAINER_CLUSTER steps: - name: gcr.io/$PROJECT_ID/...
Harsh Manvar's user avatar
  • 29.9k
3 votes
0 answers
770 views

Configure Google Cloud Build to deploy to private GKE cluster via proxy

After I have completed the steps required to set up access to a private GKE cluster via a proxy instance, how do I configure Google Cloud Build to deploy to the cluster via the proxy? I'm looking ...
Craig Finch's user avatar
  • 1,008
3 votes
1 answer
1k views

Parallelizing google cloudbuild steps without mangling the build logs

Following guidance here: https://cloud.google.com/cloud-build/docs/configuring-builds/configure-build-step-order We have split up our build into a multilayer docker image where layers are Install OS ...
Chris Beck's user avatar
  • 16.2k
0 votes
1 answer
301 views

Google Cloud Build with Docker images that are based on each other

I have two or more Docker images where the latter ones are based on the first image. I want to build them all with Google Cloud Build and have the following multi-step cloudbuild.yaml: steps: - ...
Steven's user avatar
  • 437
1 vote
3 answers
13k views

Kubectl apply command for updating existing service resource

Currently I'm using Kubernetes version 1.11.+. Previously I'm always using the following command for my cloud build scripts: - name: 'gcr.io/cloud-builders/kubectl' id: 'deploy' args: - 'apply' ...
irvifa's user avatar
  • 2,085
4 votes
1 answer
1k views

Can Google Cloud Build be triggered by new Docker image in Container Registry?

I'm setting up a CI/CD using Google's cloud tools, and was expecting to have a trigger condition "when new image is uploaded to Container Registry". The use case is separating deployment from source (...
akauppi's user avatar
  • 18k
28 votes
9 answers
9k views

Google Cloud Build deploy to GKE Private Cluster

I'm running a Google Kubernetes Engine with the "private-cluster" option. I've also defined "authorized Master Network" to be able to remotely access the environment - this works just fine. Now I want ...
Mizaru's user avatar
  • 313