Created
April 23, 2019 13:50
-
-
Save yogendra/5e3c0d155109ed56495680b31d2b8893 to your computer and use it in GitHub Desktop.
PFS, Riff and Knative
This file contains hidden or 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
| #!/usr/bin/env bash | |
| # Create Minikube | |
| minikube start \ | |
| --memory=4096 --cpus=4 \ | |
| --kubernetes-version=v1.14.0 \ | |
| --vm-driver=hyperkit \ | |
| --bootstrapper=kubeadm \ | |
| --extra-config=apiserver.enable-admission-plugins="LimitRanger,NamespaceExists,NamespaceLifecycle,ResourceQuota,ServiceAccount,DefaultStorageClass,MutatingAdmissionWebhook" | |
| kubectl config current-context | |
| riff version | |
| kubectl get pod --all-namespaces | |
| riff system install --node-port | |
| watch kubectl get pod --all-namespaces | |
| export DOCKER_ID=${DOCKZER_ID:-yogendra} | |
| riff namespace init default --docker-hub $DOCKER_ID | |
| riff function create square \ | |
| --git-repo https://github.com/projectriff-samples/node-square \ | |
| --artifact square.js \ | |
| --verbose | |
| watch kubectl get pod --all-namespaces | |
| riff service invoke square --json -- -w '\n' -d 8 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment