teamhephy / workflow

Hephy Workflow - An open source fork of Deis Workflow - The open source PaaS for Kubernetes.
MIT License
409 stars 37 forks source link

deis installation: Error: unknown flag: --clusterrole #8

Open Cryptophobia opened 6 years ago

Cryptophobia commented 6 years ago

From @Shashwatsh on July 28, 2017 17:9

i'm trying to install deis workflow on kubernetes 1.5 but getting an error

  1. kubernetes version
    kubectl version
    Client Version: version.Info{Major:"1", Minor:"5", GitVersion:"v1.5.3", GitCommit:"029c3a408176b55c30846f0faedf56aae5992e9b", GitTreeState:"clean", BuildDate:"2017-03-09T11:55:06Z", GoVersion:"go1.7.5", Compiler:"gc", Platform:"linux/amd64"}
    Server Version: version.Info{Major:"1", Minor:"5", GitVersion:"v1.5.3", GitCommit:"029c3a408176b55c30846f0faedf56aae5992e9b", GitTreeState:"clean", BuildDate:"2017-03-09T11:55:06Z", GoVersion:"go1.7.5", Compiler:"gc", Platform:"linux/amd64"}
  2. Error
    [root@fedora-1gb-blr1-01 ~]# kubectl create clusterrolebinding helm --clusterrole=cluster-admin --serviceaccount=kube-system:tiller-deploy
    Error: unknown flag: --clusterrole

Copied from original issue: deis/workflow#843

Cryptophobia commented 6 years ago

From @bacongobbler on July 28, 2017 17:13

We test Deis Workflow against kubernetes v1.6, so it's possible this feature flag was introduced at that time. There's no guarantee that the documentation is 100% compatible with an older kubernetes release. You'll likely have to scour the kubectl documentation for an equivalent workaround if you want to deploy workflow on k8s 1.5. Sorry about that!

Cryptophobia commented 6 years ago

From @gemoya on August 5, 2017 2:39

Maybe you dont' have RBAC authorization mode enabled because is a default since kubernetes 1.6.0. So you should try something like this to get the 'stateless deploy':

helm init --client-only
helm repo add deis https://charts.deis.com/workflow
helm install deis/workflow --namespace deis --set globals.use_rbac=false

The third line may change according to your requirements.