kubernetes petset on google cloud

8/26/2016

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.

-- amit
google-kubernetes-engine
kubernetes

3 Answers

11/1/2016

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.

-- danius
Source: StackOverflow

8/26/2016

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.

-- Robert Bailey
Source: StackOverflow

9/1/2016

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.

-- solsson
Source: StackOverflow