Giter Site home page Giter Site logo

Comments (22)

rayhero avatar rayhero commented on July 17, 2024 1

After I use helm to delete old service account. I can install it using Helm.
But when I try to run the faas-cli sample, it says I not deploy Faas. the error is show below:

Error removing existing function: Delete http://localhost:8080/system/functions: dial tcp [::1]:8080: getsockopt: connection refused, gateway=http://localhost:8080, functionName=url-ping
Is FaaS deployed? Do you need to specify the --gateway flag?
Post http://localhost:8080/system/functions: dial tcp [::1]:8080: getsockopt: connection refused

from faas-netes.

lizrice avatar lizrice commented on July 17, 2024 1

I just hit exactly this issue trying to apply the helm chart on minikube. Applying the ClusterRole from the YAML file @stefanprodan supplied in #74 fixed it i.e. I created a YAML file with that ClusterRole, applied that file and then the helm installation worked fine.

from faas-netes.

alexellis avatar alexellis commented on July 17, 2024

What are you using? minikube?

from faas-netes.

alexellis avatar alexellis commented on July 17, 2024

@weikinhuang can you advise? Maybe if this is minikube rbac.yml shouldn't be applied?

from faas-netes.

rayhero avatar rayhero commented on July 17, 2024

I install the minikube for testing. But I want to deploy faas-netes on GKE. So I change kubectl config settings to set current-context to GKE cluster. Do I miss some setting so faas-netes still try to deploy on minikube?

from faas-netes.

rayhero avatar rayhero commented on July 17, 2024

What's the cluster master version could run this project? My GKE current master version is 1.7.6-gke.1. Does this effect the deploy result?

from faas-netes.

rayhero avatar rayhero commented on July 17, 2024

I downgrade version to 1.6.10-gke.1 but still meet the same problem. Does anyone has experience in deploying this project on GKE?

from faas-netes.

alexellis avatar alexellis commented on July 17, 2024

Yes @rawkode installed on GKE. Have you tried installing with Helm and RBAC?

from faas-netes.

rayhero avatar rayhero commented on July 17, 2024

I try to use Helm to deploy, but still meet other problem:
`helm upgrade --install --debug --reset-values --set async=false --set rbac=false openfaas openfaas/
[debug] Created tunnel using local port: '55702'

[debug] SERVER: "localhost:55702"

Release "openfaas" does not exist. Installing it now.
[debug] CHART PATH: /Users/chenszuwei/AutoHotSpot/FAAS/faas-netes/openfaas

Error: release openfaas failed: serviceaccounts "faas-controller" already exists`

why I get this error? Can I remove faas-comntroller??

from faas-netes.

weikinhuang avatar weikinhuang commented on July 17, 2024

Helm won't install the chart without a force flag if existing resources with the same name already exists

from faas-netes.

rawkode avatar rawkode commented on July 17, 2024

@rayhero Use port-forward to get the Gateway available locally and run again

from faas-netes.

zouyee avatar zouyee commented on July 17, 2024

First,please exec ns -lptn|grep 8080 to confirm port opened
Second, exec sysctl -a|grep net.ipv4.ip_forward must be net.ipv4.ip_forward = 1
Third, checkout service.

from faas-netes.

allamand avatar allamand commented on July 17, 2024

I've got same problem when deploying on GKE with kubectl without any modification fo stacks file from the repo. Do I have to change anything so that it can works on GKE ?

Error from server (Forbidden): error when creating "rbac.yml": clusterroles.rbac.authorization.k8s.io "faas-controller" is forbidden: attempt to grant extra privileges

thanks

from faas-netes.

alexellis avatar alexellis commented on July 17, 2024

Have a look at this from @stefanprodan

#74

from faas-netes.

allamand avatar allamand commented on July 17, 2024

Following the steps from @stefanprodan works for me, deployed with kubectl. Thanks

from faas-netes.

skunkwerk avatar skunkwerk commented on July 17, 2024

I'm running into this issue trying to deploy to GKE. The link to the YAML file in #74 goes to a 404. Could someone please provide workable installation instructions for non-RBAC Kubernetes?

from faas-netes.

alexellis avatar alexellis commented on July 17, 2024

Just curious why you aren't using RBAC @skunkwerk? The helm chart should work for you? It has an option to turn off rbac

from faas-netes.

alexellis avatar alexellis commented on July 17, 2024

I am updating the YAML files for the standard installation method in the yaml branch - #105

from faas-netes.

alexellis avatar alexellis commented on July 17, 2024

Closing issue due to inactivity. Please feel free to keep commenting - it's very important to us that this works for everyone.

from faas-netes.

fergalmoran avatar fergalmoran commented on July 17, 2024

I have a similar issue (I think) - trying to install the samples. This is on ARM (I have created the openfaas namespaces).

kubectl apply -f samples.yml
Deploying: ruby-echo.                                                     
Server returned unexpected status code 500 deployments.extensions "ruby-echo" is forbidden: User "system:serviceaccount:default:faas-controller" cannot get deployments.extensions in the namespace "default"

Unexpected status: 500, message: deployments.extensions is forbidden: User "system:serviceaccount:default:faas-controller" cannot create deployments.extensions in the namespace "default"
$ uname -a
Linux kube-master 4.4.50-hypriotos-v7+ #1 SMP PREEMPT Sun Mar 19 14:11:54 UTC 2017 armv7l GNU/Linux

from faas-netes.

alexellis avatar alexellis commented on July 17, 2024

Hi @fergalmoran I didn't see you commented after the thread was closed. I've re-created the ARMHF YAML files so you should not have any issues with these now.

Just run this and open a new issue if you need to:

kubectl apply -f ./namespaces.yml,./yaml_armhf

from faas-netes.

alexellis avatar alexellis commented on July 17, 2024

Derek lock: issue resolved

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.