kubernetes petset on google cloud

2019-06-27 07:22发布

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.

3条回答
老娘就宠你
2楼-- · 2019-06-27 07:43

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.

查看更多
你好瞎i
3楼-- · 2019-06-27 07:44

Google just enabled Alpha Clusters for GKE as announced here: https://cloud.google.com/container-engine/docs/alpha-clusters

Now you are able (but not SLA covered) to use all alpha features within an alpha cluster, what was disable previously.

查看更多
何必那么认真
4楼-- · 2019-06-27 07:54

I'm using PetSet with some success, for example https://github.com/Yolean/kubernetes-mysql-cluster, in zone europe-west1-d but when I tried europe-west1-c I got the aforementioned error.

查看更多
登录 后发表回答