为什么 kubernetes v1.5 无法识别 service.spec.loadBalancerIp?

Why won't kubernetes v1.5 recognize service.spec.loadBalancerIp?

我是 运行 kubernetes v1.5(api 参考 here)。字段 service.spec.loadBalancerIp 应该存在,但当我尝试设置它时,我不断收到以下错误。

error: error validating ".../service.yaml": error validating data: found invalid field loadBalancerIp for v1.ServiceSpec; if you choose to ignore these errors, turn validation off with --validate=false

service.yaml:

kind: Service
apiVersion: v1
metadata:
  name: some-service
spec:
  type: LoadBalancer
  loadBalancerIp: xx.xx.xx.xx
  selector:
    deployment: some-deployment
  ports:
    - protocol: TCP
      port: 80

kubectl 版本输出:

Client Version: version.Info{Major:"1", Minor:"5", GitVersion:"v1.5.4", GitCommit:"7243c69eb523aa4377bce883e7c0dd76b84709a1", GitTreeState:"clean", BuildDate:"2017-03-07T23:53:09Z", GoVersion:"go1.7.4", Compiler:"gc", Platform:"darwin/amd64"}
Server Version: version.Info{Major:"1", Minor:"5", GitVersion:"v1.5.4", GitCommit:"7243c69eb523aa4377bce883e7c0dd76b84709a1", GitTreeState:"clean", BuildDate:"2017-03-07T23:34:32Z", GoVersion:"go1.7.4", Compiler:"gc", Platform:"linux/amd64"}

我是 运行 我在 gke 上的集群。

有什么想法吗?

您的规范中有错字。应该是 loadBalancerIP,而不是 loadBalancerIp。注意大写P