无法创建第三方资源

Cannot create ThirdPartyResource

我正在尝试根据 Kelsey Hightowers kube-cert-manager guide 创建一个新的 ThirdPartyResource,但我收到了这个错误:

Error from server: error when creating "certificate.yaml": the server could not find the requested resource

详细日志中的一些有趣内容:

POST https://104.155.48.255/apis/extensions/v1beta1/namespaces/default/thirdpartyresources 404 Not Found in 15 milliseconds

我的集群是使用 GKE 创建的。只有一个节点 运行 Kubernetes 1.3.2:

clusterIpv4Cidr: 10.244.0.0/14
createTime: '2016-08-01T09:35:39+00:00'
currentMasterVersion: 1.3.2
currentNodeCount: 1
currentNodeVersion: 1.3.2
endpoint: 104.155.48.255
initialClusterVersion: 1.3.2
instanceGroupUrls:
- https://www.googleapis.com/compute/v1/projects/cs-cisco/zones/europe-west1-d/instanceGroupManagers/gke-minimesos-sonar-default-pool-3d02eeb3-grp
locations:
- europe-west1-d
loggingService: logging.googleapis.com

ThirdPartyResources 在 1.2 中是命名空间范围内的 alpha 对象,现在在 1.3 中是集群范围的(参见 1.3.0 Known Issues)。不幸的是,这意味着 1.2.x 客户端将不知道寻找它们的正确位置(因此 /namespaces/default/thirdpartyresources 路径上的 404)。

您可以等待 kubectl 1.3.x 与 cloudsdk 一起推出,或者您可以直接从 Kubernetes Releases 页面下载 kubectl 二进制文件。