Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OpenShift integration #2517

Closed
odzhu opened this issue May 29, 2017 · 3 comments
Closed

OpenShift integration #2517

odzhu opened this issue May 29, 2017 · 3 comments

Comments

@odzhu
Copy link

odzhu commented May 29, 2017

Hi OpenShift team,

trying to use helm with OpenShift...

I understand that currently Helm doesn't support lots of custom OpenShift resources,
however, I try pure k8s template I'm getting an example:

helm install --tiller-namespace myproject stable/mysql --name test --kube-context myproject/192-168-64-6:8443/system:admin Error: release test failed: User "system:serviceaccount:myproject:default" cannot get namespaces in project "myproject"

Any workarounds here or it's completely on Open Shift policies side ?
Please advise.

@bacongobbler
Copy link
Member

ping @smarterclayton, @marun and @jstrachan as I believe they're working on openshift. Please correct me if I'm wrong. :)

@smarterclayton
Copy link

This is RBAC - you'd need to grant the "default" service account in namespace "myproject" the permissions that helm needs to create resources. In this case, the "edit" role is probably sufficient (unless your helm templates are setting RBAC rules, in which case project "admin" is needed).

$ oc policy add-role-to-user edit -z default -n myproject

grants service account default the edit role in project myproject. I assume you're only trying to run helm in one namespace?

@smarterclayton smarterclayton self-assigned this May 29, 2017
@odzhu
Copy link
Author

odzhu commented May 30, 2017

@smarterclayton, it worked for me, thank you!

grants service account default the edit role in project myproject. I assume you're only trying to run helm in one namespace?

Actually I tried the below:

  • placing tiller and releases in same namespace
  • placing tiler and releases in different namespaces

Both worked great with your help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants