Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Cloud Build failed with GKE

Hi, I upgraded my cluster to 1.26.2-gke.1000 , after that, all automated deploy failed in the last step with the following error. 

"error when creating "STDIN": Application in version "v1beta1" cannot be handled as a Application: strict decoding error: unknown field "spec.selector.matchLabels.app.kubernetes.io/name""

I tried too many solutions without any luck, I deleted everything and re-deploy deployment, and create a  new cloud build trigger but also same error !

Solved Solved
0 3 399
1 ACCEPTED SOLUTION

Are you using the 

--create-application-cr

flag?   If you are ok not using the Application CRD, you may want to remove it for now.
Have a look at https://b.corp.google.com/issues/267213003 as well.

View solution in original post

3 REPLIES 3

Are you using the 

--create-application-cr

flag?   If you are ok not using the Application CRD, you may want to remove it for now.
Have a look at https://b.corp.google.com/issues/267213003 as well.

Thanks for your help, Can I know why this happened? I lost three days of work because of that.

I'm not quite sure yet ... will try to investigate myself as well as push the folks who own gke-deploy to take a look as well.  Sorry you had to waste so much time.

Top Labels in this Space
Top Solution Authors