Giter Site home page Giter Site logo

Helm and RBAC question about faas-netes HOT 12 CLOSED

openfaas avatar openfaas commented on August 16, 2024
Helm and RBAC question

from faas-netes.

Comments (12)

inge4pres avatar inge4pres commented on August 16, 2024 1

Great news! The chart works perfectly in 1.7.6 with RBAC too: helm install --name openfaas --set async=true ./openfaas works perfectly with k8s 1.7.6 but that version is still not in the stable channel for minikube hence requires additional parameters to install.

So for minikube users:

  • update to latest minikube (v0.22.3)
  • bootstrap cluster with minikube start --kubernetes-version v1.7.6 --bootstrapper kubeadm [--vm-driver ...] as mentioned in minikube/issues/2003

As I was planning a PR to refine HELM.md, I will put the steps in there if you agree.

from faas-netes.

alexellis avatar alexellis commented on August 16, 2024 1

Please could you run with this?

from faas-netes.

inge4pres avatar inge4pres commented on August 16, 2024

Trying to debug the reason of the failure in openfaas/templates/rbac.yaml

from faas-netes.

alexellis avatar alexellis commented on August 16, 2024

Have you run in the additional role needed for RBAC in the helm guide?

https://github.com/openfaas/faas-netes/blob/master/HELM.md

from faas-netes.

alexellis avatar alexellis commented on August 16, 2024

We do have a rbac=true/false switch also. RBAC is on by default.

cc/ @weikinhuang

from faas-netes.

weikinhuang avatar weikinhuang commented on August 16, 2024

Right now it's trying to create a cluster role. We should change it to use a regular role when functions are not being deployed to a separate namespace.

Or in the meantime give your user cluster-admin privileges.

from faas-netes.

gardlt avatar gardlt commented on August 16, 2024

Was having similar problems also with this you can do helm install local/openfaas --set rbac=false and it should work fine, i think there is a permission issue when deploying additional rbac rule with minikube might need to enable rbac changes when starting minikube.

from faas-netes.

weikinhuang avatar weikinhuang commented on August 16, 2024

I'll try to get around to making the needed fix next week

from faas-netes.

inge4pres avatar inge4pres commented on August 16, 2024

@alexellis yes I assigned RBAC role to Tiller but it looks like the issue is not there.
However I tried with a GKE cluster just installed and everything works ok.
At this point it might just be a minikube issue.

Some details on my installation:

minikube version
minikube version: v0.22.3

kubectl version
Client Version: version.Info{Major:"1", Minor:"8", GitVersion:"v1.8.0", GitCommit:"0b9efaeb34a2fc51ff8e4d34ad9bc6375459c4a4", GitTreeState:"clean", BuildDate:"2017-09-29T05:56:06Z", GoVersion:"go1.9", Compiler:"gc", Platform:"darwin/amd64"}
Server Version: version.Info{Major:"1", Minor:"7", GitVersion:"v1.7.5", GitCommit:"17d7182a7ccbb167074be7a87f0a68bd00d58d97", GitTreeState:"clean", BuildDate:"2017-10-06T20:53:14Z", GoVersion:"go1.8.3", Compiler:"gc", Platform:"linux/amd64"}

from faas-netes.

alexellis avatar alexellis commented on August 16, 2024

Elliott @elliotbeach and myself have been deploying with minikube via the YAML files. I'll try with rbac=false on my Mac with helm this week and see how that goes.

from faas-netes.

alexellis avatar alexellis commented on August 16, 2024

@inge4pres @weikinhuang where did we get on this?

from faas-netes.

weikinhuang avatar weikinhuang commented on August 16, 2024

Looks like a minikube issue from @inge4pres's comments. However we can probably switch to using a Role instead of a ClusterRole when not deploying functions to a different namespace.

from faas-netes.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.