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.

Help accessing Eclipse Che with Minikube and KVM on external machine

See original GitHub issue

Summary


tl;dr

6HbM5xCD

This is my setup, what is the proper way of using Minikube (for KVM acceleration)? Or perhaps is Minikube the wrong approach? Should I deploy a different solution for k8s? I’m open to installing a new operating system on the k8s machine (such as k3os or any other k8s focused OS). I had already backed up all my data.


Things I’ve tried

! Node may be unable to resolve external DNS records ! VM is unable to access k8s.gcr.io, you may need to configure a proxy or set --image-repository chectl doesn’t thow any errors, but I’m not seeing any bandwidth activity. image

I was able to quickly understand Docker, but with k8s, I feel like I’m way in over my head.

Relevant information

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
gnoejuancommented, Jul 7, 2020

@gnoejuan could you get around the AttributeError: 'NoneType' object has no attribute 'typeattributes' issue?

I was unable to get around the issue. It has been awhile since I was tackling CRC method to deploy a k8s cluster. My recollection was the recommended Ubuntu version at the time was lower than 18.04, but the KVM version that came with Ubuntu 16 was too old. Researching how to upgrade KVM only returned results on installing QEMU/KVM.

image

Ubuntu 18.04 LTS or newer and Debian 10 or newer are not officially supported and may require manual set up of the host machine.

https://code-ready.github.io/crc/

After trying RancherOS (Supposedly due to be obsoleted https://github.com/rancher/os/issues/3000#issuecomment-630511978), k3OS never seemed to resolve an IP address, Fedora’s CoreOS required learning another technology called Ignition. . . .

After researching Kubernetes more thoroughly, it appears the fastest/easiest path to a local Kubernetes server is to use kubectl.

Personally, I chose to use microk8s on the k8s machine pictured above.

Microk8s guide: https://microk8s.io/docs/working-with-kubectl

tl;dr: on k8s machine: microk8s config and copy and paste or microk8s config > config and find a way to retrieve the file to your client machine.

Assuming you don’t have a .kube in your home directory on the client machine. I.E the machine you want to access Kubernetes from.

cd $HOME
mkdir .kube
cd .kube

put the config file from earlier in the .kube folder

chectl server:start -p k8s -a helm -b mainhub.lan

where mainhub.lan is your k8s machine.

Minikube guide: https://medium.com/@kuljeetsinghkhurana/access-minikube-using-kubectl-from-remote-machine-2b0eeefad9cb

In theory, chectl server:start -p k8s -a helm -b mainhub.lan should work here too, but I haven’t tested it.

Although this experience has dragged me into the world of Kubernetes kicking and screaming, I enjoyed the learning experience.

1reaction
ultrafabcommented, Mar 29, 2020

Hello @gnoejuan, i’ve just finish to setup something i think similar to your needs, running completely inside a private network.

This is the abstract, let me know if i can give you more informations:

  • Create a KVM Virtual Machine with Ubuntu 18.04 server. (I’ve done cause i’ve had an already setup KVM host, but i think you can skip and use a bare 18.04 installation on a phisical machine).
  • Installing Openshift 3.11 on the virtual (or phisical) machine (https://www.techrepublic.com/article/how-to-install-openshift-origin-on-ubuntu-18-04/)
  • Configure a dnsmasq service on another network server (in my case i’ve installed it on the KVM Host machine hosting the VM with Openshift), and configure it to resolve a local domain (your-che-domain.lan) pointing to the Openshift machine IP. It’s important that you setup a wildcard domain, this way it will be able to resolve also the dynamic subdomains created by Che.
  • THIS IS IMPORTANT (without it everything keeps failing as documented here: https://github.com/eclipse/che/issues/16417) create a static /etc/resolv.conf file insider your Openshift VM, pointing to the IP of the dnsmasq host. This way Openshift, when starting, will pass your private DNS/Domain settings to Openshift.
  • Add your dnsmasq machine ip to the DNS list of every client that needs to connect to Che.

Let me know if i can provide more insight.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Installing Che on Minikube - Eclipse
Installing Che on Minikube. This article explains how to create a single-node Kubernetes cluster with Minikube to deploy Che.
Read more >
Standalone single-user Eclipse Che instance on Windows 10 ...
Below you will find the steps to install a standalone instance of Eclipse Che on your Laptop (or Desktop), using a locally single-node ......
Read more >
Running Kubernetes Locally via Minikube - 2021 - BogoToBogo
We can run minikube command using either kvm or VirtualBox. To start a cluster, run minikube with kvm driver: $ minikube start --vm-driver=kvm...
Read more >
Remotely Accessing Minikube Kubernetes on KVM - Zepworks
A How To Guide: Remotely Accessing Minikube Kubernetes on KVM · 1. Install Minikube, kubectl, and KVM on the host · 2. Run...
Read more >
Error installing eclipse che using chectl - FailedScheduling
You could try with minikube 1.7.3 version instead of minikube 1.11.0. I faced the same issue and its resolved with 1.7.3 version.
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