Open-func
Open source runtime similar to AWS serverless lambda and Azure functions.
Prerequisites
- Kubernetes CLI
- Minikube
- Docker
Setup
minikube addons enable ingress
- enables ingress for minikube
make build
- builds server image in cluster
kubectl apply -f deployments/
Adding the example images to the cluster
eval $(minikube -p minikube docker-env)
- has to be run in every new terminal window before you build an image inside the cluster. An alternative would be to put it into your .profile file.
docker build examples/<dockerfile-location> -t <image-name>
kubectl expose pod open-func-{PODS_ID} --type="NodePort" --port 8090
- extra debugging