Kubernetes petset on google cloud

I am running a Kubernetes cluster in the Google Cloud (version 1.3.5). I found redis.yaml which uses a set of pets to create a redis cluster, but when I run kubectl create -f redis.yaml I get the following error: error checking "redis.yaml": data validation: the server could not find the requested resource (get.apps); if you decide to ignore these errors, turn off the check with --validate = false

I cannot find why I am getting this error or how to solve it.

+4
source share
3 answers

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

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

+6
source

I use PetSetwith some success, for example https://github.com/Yolean/kubernetes-mysql-cluster , in the zone europe-west1-d, but when I tried europe-west1-cI got the above error.

+1
source

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

Now you can (but not cover the SLA) use all the alpha functions in the alpha cluster, which was previously disabled.

0
source

Source: https://habr.com/ru/post/1652583/


All Articles