Skip to content

Instantly share code, notes, and snippets.

@s8sg
Last active April 23, 2018 03:53
Show Gist options
  • Save s8sg/59ef18c85e7f7709bf3f06e1f2558426 to your computer and use it in GitHub Desktop.
Save s8sg/59ef18c85e7f7709bf3f06e1f2558426 to your computer and use it in GitHub Desktop.
Start Openfaas in MAC from scratch

Step1 : install docker and kubernets

Remove Old docker in mac.
Install the docker CE edge.
Start:
Install minicube:
brew cask install minikube
start:
minikube start

Step2 :Enable Kubbernets for docker

Check : Docker->preference->kubernets->Enable Kubernets.
Use docker-for-desktop contexts

$ kubectl config get-contexts
CURRENT   NAME                 CLUSTER                      AUTHINFO             NAMESPACE
          docker-for-desktop   docker-for-desktop-cluster   docker-for-desktop   
*         minikube             minikube                     minikube             
$ kubectl config use-context docker-for-desktop
Switched to context "docker-for-desktop".

Step3 :Run stack in kubernets

 DOCKER_ORCHESTRATOR=kubernetes docker stack deploy func --compose-file docker-compose.yml

otherwise

cd faas-netes && \
kubectl apply -f ./namespaces.yml,./yaml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment