kubernetes – MiniKube, accessing database pod through localhost:3306?

So I’ve been trying to figure out how I can simply have my MiniKube cluster use my localhost port 3306 to access my database pod with MySql Workbench. It seems unnecessarily difficult and I don’t know why I can’t find anything on how to do this.

  • kubectl port-forward service/mysql-svc 3306:3306 – to hook up to the db’s ClusterIP works but I have to run this in my terminal explicitly, I want to just be able to define this in my yml file
  • ClusterIP – inter cluster access only, at least I can hook up to it with port-forward I guess
  • NodePort yml config – won’t let you set a NodePort under 30000
  • LoadBalancer yml config – same issue again, can’t set a NodePort under 30000
  • Ingress – a smarter LoadBalancer with some pathing options

I’m probably missing an obvious solution here or this is deliberately disallowed for a good reason, but I’ve had no luck searching the web. And it seems very inconvenient to have to port-forward manually every time. What’s the normal method of developing Kubernetes/distributed applications locally?

I’d also like to do the same thing with my “interface” pod(s) on port 80 and 443 but I presume I’ll run into the same problem there.

networking – minikube on virtual box loses HostOnly network after host was in sleep mode – How to recover?

I’m running minikube with the vbox driver. I noticed that when I get back to my workstation after it’s been in sleep mode, I can’t do kubectl get pods (or any other kubectl command).

Some digging and I found that the the HostOnly network adapter of the minikube machine is not working. I logged in to the machine with minikube ssh and tried to restart the interface but I’m just getting an error.

$ ifdown eth1 
ifdown: can't open '/etc/network/interfaces': No such file or directory

the only thing currently working is to minikube stop and minikube start again. But that takes long and I just want to get back to work.

any ideas on how to fix the network quicker after it’s been in sleep mode? or prevent it losing the network altogether?

minikube start error virtualbox 6.1 ubuntu

minikube start –driver=virtualbox

i am traying to run this command but gain error in making virtualbox.
{
asad@asadzoot:~$ minikube start –driver=virtualbox
😄 minikube v1.11.0 on Ubuntu 20.04
✨ Using the virtualbox driver based on user configuration
👍 Starting control plane node minikube in cluster minikube
🔥 Creating virtualbox VM (CPUs=2, Memory=2200MB, Disk=20000MB) …
🤦 StartHost failed, but will try again: creating host: create: precreate: We support Virtualbox starting with version 5. Your VirtualBox install is “WARNING: The character device /dev/vboxdrv does not exist.nt Please install the virtualbox-dkms package and the appropriatent headers, most likely linux-headers-generic.nnt You will not be able to start VMs until this problem is fixed.n6.1.6_Ubuntur137129”. Please upgrade at https://www.virtualbox.org
🔥 Creating virtualbox VM (CPUs=2, Memory=2200MB, Disk=20000MB) …
😿 Failed to start virtualbox VM. “minikube start” may fix it: creating host: create: precreate: We support Virtualbox starting with version 5. Your VirtualBox install is “WARNING: The character device /dev/vboxdrv does not exist.nt Please install the virtualbox-dkms package and the appropriatent headers, most likely linux-headers-generic.nnt You will not be able to start VMs until this problem is fixed.n6.1.6_Ubuntur137129”. Please upgrade at https://www.virtualbox.org

❌ (VBOX_DEVICE_MISSING) error provisioning host Failed to start host: creating host: create: precreate: We support Virtualbox starting with version 5. Your VirtualBox install is “WARNING: The character device /dev/vboxdrv does not exist.nt Please install the virtualbox-dkms package and the appropriatent headers, most likely linux-headers-generic.nnt You will not be able to start VMs until this problem is fixed.n6.1.6_Ubuntur137129”. Please upgrade at https://www.virtualbox.org
💡 Suggestion: Reinstall VirtualBox and reboot. Alternatively, try the kvm2 driver: https://minikube.sigs.k8s.io/docs/reference/drivers/kvm2/
⁉️ Related issue: https://github.com/kubernetes/minikube/issues/3974

}

( minikube start –driver=virtualbox

i am traying to run this command but gain error in making virtualbox.)1

aslo show the image on install the virtualbox aslo show the image on install the virtualbox

Hyper-V's Minikube advancement service is in a nested vbox 6 virtualization

The configuration is:
Hyper-V Windows 10 Host | Vagabond | CentOS7 guest | Virtualization nested with VBox 6 | Minikube on the top | Application of portfowarding to host.

I'm pointing the default switch with Hyper-V.
No matter what I do, I can not successfully expose the Tomcat service I can do on the vbox Centos 7 host, for example. winding 127.0.0.1:8001.
How can I achieve that?
Vagrant can not use portability with Hyper-V.

How do I implement an application on Kubernetes with Minikube?

Some of your previous responses have not been well received and you are in danger of being blocked.

Please pay close attention to the following guide:

  • Please make sure answer the question. Provide details and share your research!

But avoid

  • Ask for help, clarifications or respond to other answers.
  • Make statements based on opinion; Support them with references or personal experience.

For more information, see our tips on how to write excellent answers.

virtualbox – minikube does not start

I am trying to implement kubernetes locally on my laptop on top of virtualbox, kubectl and minikube. However, when I run & # 39; kubectl version & # 39; I receive the following message that is probably due to an incorrect configuration of my part:
kubectl version
Client version: version.Info {
Greater: "1",
Minor: "12",
GitVersion: "v1.12.2",
GitCommit: "17c77c7898218073f14c8d573582e8d2313dc740",
GitTreeState: "clean",
Creation date: "2018-10-24T06: 54: 59Z",
GoVersion: "go1.10.4",
Compiler: "gc", Platform: "linux / amd64"
}
The connection to the server localhost: 8080 was rejected. Did you specify the correct host or port?

Any help would be welcome. Thank you for reading