All Questions
Tagged with google-cloud-build kubernetes
45 questions
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 ...
0
votes
0
answers
62
views
SSH error when using a private GitHub repository as a dependency in a Cloud Build project deployed to Cloud Run
I have a project on GitHub that has a private GitHub repository as one of its dependencies. I'm trying to deploy this project to Google Cloud Run using Cloud Build. I’ve added the private repository ...
0
votes
1
answer
109
views
Using GCP secret manager with cloud build and deply using cloud deploy
I am trying to find the best way to provide secrets to kubernetes pod and use the cloud build and deploy from GCP
cloudbuild.yaml
steps:
- name: 'gcr.io/cloud-builders/docker'
#args: ['build', '.', '...
0
votes
1
answer
391
views
Google Cloud Deploy not activating correct Skaffold profile
I am using Google Cloud Build & Google Cloud Deploy with Skaffold profiles to manage spec of pods between Staging and Production environments, but the rendered manifests do not have the spec ...
0
votes
2
answers
266
views
How to use an image deployed on cloud run for kubernetes deployment
I want to deploy an image from cloud run to kubernetes cluster. I have successfully built the docker image in cloudbuild.yaml file. Now the challenge is how to use the image in deploy.yaml
The task ...
1
vote
1
answer
358
views
Property googleCloudBuild is not allowed.yaml-schema: skaffold.yaml
I implemented skaffold with google, but at the time of setting the "googleCloudBuild" property it throws this error => The googleCloudBuild property is not allowed. I tried changing the ...
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 ...
0
votes
1
answer
397
views
Why isn't Cloud Code honoring my cloudbuild.yaml file but gcloud beta builds submit is?
I am using Google's Cloud Code extension with Visual Studio Code to use GCP's Cloud Build and deploy to a local kubernetes cluster (Docker Desktop). I have directed Cloud Build to run unit tests after ...
0
votes
1
answer
941
views
Kubernetes multiple deployments using single template for CI/CD
I'm bit new to kubernetes, I know we can create multiple deployments using same template. I have already gone through this. But my requirement is slight different. I have 30 deployment files wherein ...
1
vote
1
answer
502
views
Google Cloud Build and Deploy to Kubernetes environment variables
I'm currently migrating my rest API to Google Cloud.
I'm trying to setup a CI/CD pipeline on Kubernetes. So far I managed to build my Docker image with Cloud Build via a Github trigger. I created a ...
1
vote
0
answers
104
views
Cache in gitlab ci while building docker images
I am building CI/CD pipline with GitLab using GCP cloud build docker image but the build is taking longer time to complete
can anyone help me regarding this why build is taking longer time?
How we can ...
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-...
0
votes
1
answer
534
views
How to build and deploy kubernetes cluster to Google Cloud using Cloud Build and Skaffold?
I am new to micro-services technologies and getting troubled with Google Cloud Build.
I am using Docker, Kubernetes, Ingres Nginx and skaffold and my deployment works fine in local machine.
Now I want ...
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 ...
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": "/...
0
votes
0
answers
433
views
Got message 'failed to update trigger' and 'failed to disable trigger' when trying to save/disable Google Cloud Build
I got this errors recently:
and this...
This is applied to all of my cloud build triggers even saving without changing anything. The triggers still running fine. I can create new trigger but not ...
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#...
1
vote
2
answers
2k
views
Execute Skaffold deployment using Google Cloud Build?
I developed the yaml files for kubernetes and skaffold and the dockerfile. My deployment with Skaffold work well in my local machine.
Now I need to implement the same deployment in my k8s cluster in ...
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 ...
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 ...
0
votes
1
answer
496
views
Deployment.yaml Template file string substitution with sed, all that match a pattern with env var $_<pattern>
I have a kubernetes deployment template like the following
[...other stuff...]
data:
ENV_VAR_1: _ENV_VAR_1
ENV_VAR_2: _ENV_VAR_2
ENV_VAR_ETC: _ENV_VAR_ETC
I want to instruct my cloudbuild.yaml ...
0
votes
1
answer
270
views
My cloudbuild.yaml is failing. Please review my cloudbuild.yaml
I am trying to set a react app to a kubernetes cluster. All my kubernetes files resides in k8s/ folder. In k8s/ folder I have a deployment.yaml and service.yaml file.
The below is my cloudbuild.yaml ...
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 ...
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:...
1
vote
3
answers
261
views
Kubernetes - How to setup parallels clusters (Prod, Dev) sharing the same repositories/pipeline
I am currently facing a situation where I need to deploy a small cluster (only 4 pods for now) which will be containing 4 different microservices. This cluster has to be duplicated so I can have one ...
2
votes
3
answers
549
views
Cloud Build Bazel Error: "kubectl toolchain was not properly configured so apply cannot be executed"
I am trying to use rules_k8s for Bazel to deploy to my Kubernetes cluster.
Thus I have this cloudbuild.yaml file, which is executed by Google Cloud Build:
steps:
- name: gcr.io/cloud-builders/...
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 ...
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-...
1
vote
2
answers
2k
views
Google Cloud Build deploy specific/current image tag
I have the following Google Cloud Build pipeline:
# gcloud builds submit --config cloud-build/cloudbuild.yaml --substitutions=_GIT_USER="<your user>",_GIT_PASS="<your password here>,...
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 ...
9
votes
3
answers
5k
views
Bazel - Build, Push, Deploy Docker Containers to Kubernetes within Monorepo
I have a monorepo with some backend (Node.js) and frontend (Angular) services. Currently my deployment process looks like this:
Check if tests pass
Build docker images for my services
Push docker ...
10
votes
1
answer
2k
views
Conditional Cloud Builds with Many Packages in a Monorepo
Motive
I want to fully automate the deployment of many services with the help of Google Cloud Build and Google Kubernetes Engine. Those services are located inside a monorepo, which has a folder ...
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: ...
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 ...
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....
3
votes
1
answer
1k
views
How to write kubernetes deployment to get the latest image built using GCP cloudbuild
I am trying to do the CI/CD with GCP cloudbuild.
I have a k8s cluster ready in GCP. check the deployment manifest bellow.
I have a cloudbuild.yaml ready to build new image and push it to registry ...
1
vote
1
answer
1k
views
Setting a container in Kubernetes with cloudbuild.yaml error: unable to find container named "XXX" error
First time creating a pipeline in Google Cloud Platform.
I have been following their guide, and the last step I want to set the build container into Kubernetes cluster.
This is my yaml file that is ...
25
votes
8
answers
31k
views
Specify Dockerfile for gcloud build submit
I understand gcloud uses the Dockerfile specified in the root directory of the source (.) as in the command:
gcloud builds submit --tag gcr.io/[PROJECT_ID]/quickstart-image .
but I am trying to ...
1
vote
0
answers
632
views
Is it possible to specify an entrypoint in the kubectl cloud builder?
With the docker cloud builder I am able to specify an entry point to bash or sh like so:
cloudbuild.yaml
steps:
- name: 'gcr.io/cloud-builders/docker'
id: BuildDockerImages
entrypoint: /...
3
votes
0
answers
2k
views
Issue using in-cluster kubernetes configuration with client-go library on google cloud build
I'm having a bit of a challenge try to build my app which is using the golang client-go library. What the app does is provide and api which then deploys a pod to a kubernetes cluster. Now the app is ...
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'
...
1
vote
1
answer
2k
views
Google Cloud Build can't find kubernetes deployment when updating image
I'm trying to set up a CI pipeline using Cloud Build. My build file builds and pushes the Docker images, and then uses the kubectl builder to update the images in a kubernetes deployment. However I'm ...
1
vote
0
answers
571
views
Spinnaker delivery pipeline
I have some issues about a spinnaker deploy strategy.
I have a microservices app to deploy in Kubernetes and I started to use Spinnaker to manage the deploy workflow.
I use Google Kubernetes Engine ...
27
votes
6
answers
16k
views
How do I set an environment or substitution variable via a step in Google Cloud Build?
Basically, when using Google Cloud Build, how do I read a value that was written in an earlier build step in subsequent steps?
Specifically, I'd like to make a custom image tag that's based on a ...
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 ...