Skip to content

Instantly share code, notes, and snippets.

@yogendra
Created April 23, 2019 13:50
Show Gist options
  • Select an option

  • Save yogendra/5e3c0d155109ed56495680b31d2b8893 to your computer and use it in GitHub Desktop.

Select an option

Save yogendra/5e3c0d155109ed56495680b31d2b8893 to your computer and use it in GitHub Desktop.
PFS, Riff and Knative
#!/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