Skip to content

Instantly share code, notes, and snippets.

@LucasRoesler
Created March 17, 2019 19:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save LucasRoesler/a6d0c5e2e669825ec4ab613e3487f1e8 to your computer and use it in GitHub Desktop.
Save LucasRoesler/a6d0c5e2e669825ec4ab613e3487f1e8 to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
echo "[0] Install the OF namespaces"
kubectl apply -f https://raw.githubusercontent.com/openfaas/faas-netes/master/namespaces.yml
echo "[1] Setup basic auth"
kubectl -n openfaas create secret generic basic-auth \
--from-literal=basic-auth-user=admin \
--from-literal=basic-auth-password="tester"
echo "[2] update helm chart cache"
helm repo update
echo "[3] install OF using my fork builds"
helm upgrade openfaas --install openfaas/openfaas \
--namespace openfaas \
--set basic_auth=true \
--set gateway.image=theaxer/gateway:loggerhandler \
--set faasnetes.image=theaxer/faas-netes:loggerhandler \
--set functionNamespace=openfaas-fn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment