Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

kubernetes petset on google cloud

I am running a kubernetes cluster on google cloud(version 1.3.5) . I found a redis.yaml that uses petset to create a redis cluster but when i run kubectl create -f redis.yaml i get the following error : error validating "redis.yaml": error validating data: the server could not find the requested resource (get .apps); if you choose to ignore these errors, turn validation off with --validate=false

i cant find why i get this error or how to solve this.

like image 813
amit Avatar asked Mar 11 '23 07:03

amit


1 Answers

PetSet is currently an alpha feature (which you can tell because the apiVersion in the linked yaml file is apps/v1alpha1). It may not be obvious, but alpha features are not supported in Google Container Engine.

As described in api_changes.md, alpha level API objects are disabled by default, have no guarantees that they will exist in future versions, can break compatibility with older versions at any time, and may destabilize the cluster.

like image 87
Robert Bailey Avatar answered Mar 19 '23 04:03

Robert Bailey