GKE上的CI CD管道-部署失败(“部署”:错误:未传递任何要应用的对象)

我正在为GKE上的Spring Boot应用程序设置CI CD管道。 CI构建步骤正常工作,但是交付构建步骤由于“错误:没有传递适用对象”错误而失败。我可以在云构建中看到以下日志

    starting build "0b2761ac-15e0-4dc7-bd37-595ae2ce6916"

FETCHSOURCE
Initialized empty Git repository in /workspace/.git/
From https://source.developers.google.com/p/amcartecom/r/eureka-cloudbuild-env
 * branch            ebd6994bed5bc58e37567156451c2fb957ae4fbd -> FETCH_HEAD
HEAD is now at ebd6994 Deploying image gcr.io/amcartecom/eureka-cloudbuild:v1 Built from commit a61084943388477a490cfabf5430a93c699f0574 of repository eureka-cloudbuild-app Author: nsingla8585 <nsingla85@gmail.com>
BUILD
Starting Step #0 - "Deploy"
Step #0 - "Deploy": Already have image (with digest): gcr.io/cloud-builders/kubectl
Step #0 - "Deploy": Running: gcloud container clusters get-credentials --project="amcartecom" --zone="us-central1-b" "hello-cloudbuild"
Step #0 - "Deploy": Fetching cluster endpoint and auth data.
Step #0 - "Deploy": kubeconfig entry generated for hello-cloudbuild.
Step #0 - "Deploy": Running: kubectl apply -f kubernetes.yaml
Step #0 - "Deploy": error: no objects passed to apply
Finished Step #0 - "Deploy"
ERROR
ERROR: build step 0 "gcr.io/cloud-builders/kubectl" failed: exit status 1

要设置此管道,我遵循了https://cloud.google.com/kubernetes-engine/docs/tutorials/gitops-cloud-build

中提到的所有准则
keith_ye_mao 回答:GKE上的CI CD管道-部署失败(“部署”:错误:未传递任何要应用的对象)

暂时没有好的解决方案,如果你有好的解决方案,请发邮件至:iooj@foxmail.com
本文链接:https://www.f2er.com/3166311.html

大家都在问