Last active
October 15, 2020 12:44
-
-
Save burrsutter/0d6c85d8e675558dab3ec8c7a8f1e420 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl -L -o faas https://github.com/boson-project/faas/releases/download/v0.7.0/faas_darwin_amd64 | |
chmod +x faas | |
export PATH=$PATH:/dirholdingfaas/ | |
create a new project folder/dir | |
mkdir one | |
cd one | |
faas init -l node -t events | |
faas build | |
quay.io/yourOrg | |
go to quay.io and mark repo as public as they are private by default | |
faas deploy | |
IP_ADDRESS="$(minikube -p knativetutorial ip):$(kubectl get svc kourier --namespace kourier-system --output 'jsonpath={.spec.ports[?(@.port==80)].nodePort}')" | |
OR on OpenShift | |
kubectl get ksvc and use the URL | |
curl -H 'Host:one.knativetutorial.example.com' $IP_ADDRESS | |
OR | |
curl http://one-stuff.apps.texas.burr-on-azr.com | |
Edit code and redeploy | |
faas update | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment