Skip to content

Instantly share code, notes, and snippets.

@rorpage
Last active October 24, 2018 13:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save rorpage/f85f7c41e9ae4c2157c7ab6d02b6ed7e to your computer and use it in GitHub Desktop.
Save rorpage/f85f7c41e9ae4c2157c7ab6d02b6ed7e to your computer and use it in GitHub Desktop.
Install and set up OpenFaaS on local Kubernetes

Quickly get OpenFaaS set up on your local machine with Kubernetes

  • Install Docker Community Edition (Edge): link
  • Install Helm:
    $ brew install kubernetes-helm
    
  • Create RBAC permissions for Tiller:
    $ kubectl -n kube-system create sa tiller \
       && kubectl create clusterrolebinding tiller \
        --clusterrole cluster-admin \
        --serviceaccount=kube-system:tiller
    
  • Install the server-side Tiller component:
    $ helm init --skip-refresh --upgrade --service-account tiller
    
  • Create OpenFaaS namespaces:
    $ kubectl apply -f https://raw.githubusercontent.com/openfaas/faas-netes/master/namespaces.yml
    
  • Add the OpenFaaS Helm chart:
    $ helm repo add openfaas https://openfaas.github.io/faas-netes/
    
  • Deploy OpenFaaS from the helm chart repo:
    $ helm upgrade openfaas --install openfaas/openfaas \
      --namespace openfaas  \
      --set functionNamespace=openfaas-fn
    
  • Navigate to http://localhost:31112/ui/ and deploy some sample functions
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment