deis / workflow

The open source PaaS for Kubernetes.
https://deis.com/workflow/
MIT License
1.31k stars 181 forks source link

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

Open Shashwatsh opened 7 years ago

Shashwatsh commented 7 years ago

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
bacongobbler commented 7 years ago

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!

gemoya commented 7 years ago

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.

Cryptophobia commented 6 years ago

This issue was moved to teamhephy/workflow#8