question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can't get example working on minikube.

See original GitHub issue
😄  minikube v1.0.0 on linux (amd64)
🤹  Downloading Kubernetes v1.14.0 images in the background ...
💡  Tip: Use 'minikube start -p <name>' to create a new cluster, or 'minikube delete' to delete this one.
🔄  Restarting existing virtualbox VM for "minikube" ...
⌛  Waiting for SSH access ...
📶  "minikube" IP address is 192.168.99.100
🐳  Configuring Docker as the container runtime ...
🐳  Version of container runtime is 18.06.2-ce
⌛  Waiting for image downloads to complete ...
✨  Preparing Kubernetes environment ...
🚜  Pulling images required by Kubernetes v1.14.0 ...
🔄  Relaunching Kubernetes v1.14.0 using kubeadm ...
⌛  Waiting for pods: apiserver proxy etcd scheduler controller dns
📯  Updating kube-proxy configuration ...
🤔  Verifying component health ......
💗  kubectl is now configured to use "minikube"
🏄  Done! Thank you for using minikube!

Whereafter:

Serverless: Load command config
Serverless: Load command config:credentials
Serverless: Load command create
Serverless: Load command install
Serverless: Load command package
Serverless: Load command deploy
Serverless: Load command deploy:function
Serverless: Load command deploy:list
Serverless: Load command deploy:list:functions
Serverless: Load command invoke
Serverless: Load command invoke:local
Serverless: Load command info
Serverless: Load command logs
Serverless: Load command metrics
Serverless: Load command print
Serverless: Load command remove
Serverless: Load command rollback
Serverless: Load command rollback:function
Serverless: Load command slstats
Serverless: Load command plugin
Serverless: Load command plugin
Serverless: Load command plugin:install
Serverless: Load command plugin
Serverless: Load command plugin:uninstall
Serverless: Load command plugin
Serverless: Load command plugin:list
Serverless: Load command plugin
Serverless: Load command plugin:search
Serverless: Load command config
Serverless: Load command config:credentials
Serverless: Load command info
Serverless: Load command logs
Serverless: Invoke deploy
Serverless: Invoke package
Serverless: Packaging service...
Serverless: Excluding development dependencies...
/home/tom/Code/Code9/JavaScript/Projects/test-next.js/services/api-serverless/node_modules/serverless-kubeless/lib/config.js:56
      return JSON.parse(this.configMag.data[key]);
                                           ^

TypeError: Cannot read property 'runtime-images' of undefined
    at Config.get (/home/tom/Code/Code9/JavaScript/Projects/test-next.js/services/api-serverless/node_modules/serverless-kubeless/lib/config.js:56:44)
    at Object.getRuntimeDepfile (/home/tom/Code/Code9/JavaScript/Projects/test-next.js/services/api-serverless/node_modules/serverless-kubeless/lib/helpers.js:182:34)
    at ReadStream.s.on (/home/tom/Code/Code9/JavaScript/Projects/test-next.js/services/api-serverless/node_modules/serverless-kubeless/deploy/kubelessDeploy.js:103:39)
    at ReadStream.emit (events.js:193:15)
    at ReadStream.EventEmitter.emit (domain.js:441:20)
    at endReadableNT (_stream_readable.js:1129:12)
    at process.internalTickCallback (internal/process/next_tick.js:72:19)

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

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6

github_iconTop GitHub Comments

2reactions
Industrialcommented, Apr 4, 2019

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.

1reaction
Industrialcommented, Apr 4, 2019

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
Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshooting - Minikube - Kubernetes
How to troubleshoot minikube issues. ... On macOS or Linux, it's easy to get a list of recent logs: ... for example, this...
Read more >
Minikube with ingress example not working - Stack Overflow
I've reproduced your scenario in a Linux environment (on GCP) and I also have different IPs: user@bf:~$ minikube ip 192.168.39.144 ...
Read more >
How To Use minikube for Local Kubernetes Development and ...
To begin using minikube , you can run it with the start command, which will automatically create a local Kubernetes cluster using multiple ......
Read more >
Hello Minikube | Kubernetes
This tutorial shows you how to run a sample app on Kubernetes using minikube and Katacoda. Katacoda provides a free, in-browser Kubernetes ...
Read more >
Running Kubernetes Locally via Minikube
$ minikube start Starting local Kubernetes cluster... Running pre-create checks... Creating machine... Starting local Kubernetes cluster... ... 99.1 command=GET ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found