Comment 0 for bug 1737389

Revision history for this message
Yushiro FURUKAWA (y-furukawa-2) wrote :

In the latest deployment-guide for kolla-k8s[1], following command is wrong:

$ kubectl update -f <(cat <<EOF
apiVersion: rbac.authorization.k8s.io/v1alpha1
kind: ClusterRoleBinding
metadata:
  name: cluster-admin
roleRef:
  apiGroup: rbac.authorization.k8s.io
  kind: ClusterRole
  name: cluster-admin
subjects:
- kind: Group
  name: system:masters
- kind: Group
  name: system:authenticated
- kind: Group
  name: system:unauthenticated
EOF
)

Error: unknown command "update" for "kubectl"
Run 'kubectl --help' for usage.

Regarding help message, it should be 'apply' instead of 'update'.

$ kubectl version
Client Version: version.Info{Major:"1", Minor:"8", GitVersion:"v1.8.5", GitCommit:"cce11c6a185279d037023e02ac5249e14daa22bf", GitTreeState:"clean", BuildDate:"2017-12-07T16:16:03Z", GoVersion:"go1.8.3", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"8", GitVersion:"v1.8.5", GitCommit:"cce11c6a185279d037023e02ac5249e14daa22bf", GitTreeState:"clean", BuildDate:"2017-12-07T16:05:18Z", GoVersion:"go1.8.3", Compiler:"gc", Platform:"linux/amd64"}

$ $ kubectl help | grep apply
  apply Apply a configuration to a resource by filename or stdin

[1] https://docs.openstack.org/kolla-kubernetes/latest/deployment-guide.html#step-3-deploying-kolla-kubernetes