Last active
June 28, 2021 18:27
-
-
Save aweijnitz/fa209cba244484afed0b824fb4c3e9f0 to your computer and use it in GitHub Desktop.
Install OpenWhisk on Minikube using Helm
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
# Assuming the following is installed and available | |
# - minikube installed and started | |
# - helm installed | |
# - OpenWhisk CLI, wsk, installed (not configured) | |
# - git clone https://github.com/apache/openwhisk-deploy-kube.git | |
# | |
# Clean up: In case you have a previously failed install, remove it from the cluster with the following line | |
# kubectl delete namespace openwhisk | |
# Create a namespace to deploy into | |
kubectl create namespace openwhisk | |
# Label all nodes as available to for OpenWhisk workloads | |
kubectl label nodes --all openwhisk-role=invoker --overwrite | |
# Install OpenWhisk, without persistence and turn off event provides you will not use anyway | |
helm install openwhisk-deploy-kube/helm/openwhisk --namespace openwhisk --set k8s.persistence.enabled=false --set whisk.ingress.apiHostName=$(minikube ip) --set providers.alarm.enabled=false --set providers.cloudant.enabled=false --set providers.kafka.enabled=false --set persistence.explicitStorageClass=standard --generate-name | |
# Setup the wsk CLI to point to the cluster API | |
wsk property set --apihost $(minikube ip):31001 | |
# Set the auth key (you find it in the file 'values.yaml' in the helm chart for OpenWhisk. It is on line 68, under auth.system) | |
wsk property set --auth 789c46b1-71f6-4ed5-8c54-816aa4f8c502:abczO3xZCLrMN6v2BKK1dXYFpXlPkccOFqm12CdAsMgRU4VrNZ9lyGVCGuMDGIwP | |
# | |
# Wait for a really long time, until the pod 'openwhisk-*******-install-packages' Pod is in the Completed state | |
# | |
# This should then work | |
# wsk -i list |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Note, this successfully deploys Openwhisk on Minikube on a MacOSX laptop, BUT it never complets the batch job in the installation pod openwhisk-*******-install-packages, so the system never starts. The reason is still unclear.