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
In the latest deployment-guide for kolla-k8s[1], following command is wrong:
$ kubectl update -f <(cat <<EOF ion.k8s. io/v1alpha1 ion.k8s. io authenticated unauthenticated
apiVersion: rbac.authorizat
kind: ClusterRoleBinding
metadata:
name: cluster-admin
roleRef:
apiGroup: rbac.authorizat
kind: ClusterRole
name: cluster-admin
subjects:
- kind: Group
name: system:masters
- kind: Group
name: system:
- kind: Group
name: system:
EOF
)
Error: unknown command "update" for "kubectl"
Run 'kubectl --help' for usage.
Regarding help message, it should be 'apply' instead of 'update'.
$ kubectl version Info{Major: "1", Minor:"8", GitVersion: "v1.8.5" , GitCommit: "cce11c6a185279 d037023e02ac524 9e14daa22bf" , GitTreeState: "clean" , BuildDate: "2017-12- 07T16:16: 03Z", GoVersion: "go1.8. 3", Compiler:"gc", Platform: "linux/ amd64"} Info{Major: "1", Minor:"8", GitVersion: "v1.8.5" , GitCommit: "cce11c6a185279 d037023e02ac524 9e14daa22bf" , GitTreeState: "clean" , BuildDate: "2017-12- 07T16:05: 18Z", GoVersion: "go1.8. 3", Compiler:"gc", Platform: "linux/ amd64"}
Client Version: version.
Server Version: version.
$ $ 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-kubernete s