Closed Industrial closed 5 years ago
hi @Industrial,
it seems that it's failing to retrieve the Kubeless configuration. That shouldn't be a problem with Minikube. Did you install kubeless in the default namespace? Are you able to retrieve the kubeless
configuration with kubectl get configmap -n kubeless
?
$ minikube status
host: Running
kubelet: Running
apiserver: Running
kubectl: Correctly Configured: pointing to minikube-vm at 192.168.99.100
$ kubectl get configmap -n kubeless
No resources found.
(command I found to get some status printed ..)
$ kubectl top node
Error from server (NotFound): the server could not find the requested resource (get services http:heapster:)
@andresmgot
I can get to the Kubernetes dashboard with minikube dashboard
Ah, my bad. I didn't acttivate/install Kubeless on Minikube correctly.
To prevent this situation, I've created a little shell script. I understand this isn't the most time-efficient method but at least it's fault tolerant ;-)
#!/usr/bin/env bash
# Refresh Minikube
minikube stop
minikube delete
minikube start
# Refresh Kubeless
export RELEASE=$(curl -s https://api.github.com/repos/kubeless/kubeless/releases/latest | grep tag_name | cut -d '"' -f 4)
kubectl create ns kubeless
kubectl create -f https://github.com/kubeless/kubeless/releases/download/$RELEASE/kubeless-$RELEASE.yaml
# Refresh Serverless
serverless deploy -v
I am glad you got it finally working. Thanks for the script suggestion!
Ah, that's just for myself until I get accustomed to the layers involved :-)
I'll now try yo migrate some services (Prisma GraphQL, GraphQL-Yoga, some REST stuff) from Docker into serverless/Kubernetes.
Whereafter:
Looking at some other tickets, it might have been an env var $KUBECONFIG, but I have no env var defined like this.
I don't know what to do, but the hello world doesn't work on minikube.
Minikube is mentioned here: https://serverless.com/framework/docs/providers/kubeless/guide/installation