Google Cloud上的kubernetes petset [英] kubernetes petset on google cloud

查看:158
本文介绍了Google Cloud上的kubernetes petset的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在Google Cloud(版本1.3.5)上运行kubernetes集群. 我发现了 redis.yaml 使用petset创建一个redis集群,但是当我运行kubectl create -f redis.yaml时,出现以下错误: 错误验证"redis.yaml":错误验证数据:服务器找不到请求的资源(获取.apps);如果您选择忽略这些错误,请使用--validate = false

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.

推荐答案

PetSet当前是Alpha功能(您可以知道,因为链接的yaml文件中的apiVersionapps/v1alpha1).可能并不明显,但是Google Container Engine不支持alpha功能.

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.

api_changes.md <中所述/a>,默认情况下禁用Alpha级API对象,不保证它们将在将来的版本中存在,可以随时破坏与旧版本的兼容性,并可能破坏集群的稳定性.

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.

这篇关于Google Cloud上的kubernetes petset的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆