User Tools

Site Tools


Sidebar

Dave Orme muses about agile and functional programming.

My current work emphasizes SOA applications using Scala, Kubernetes, and AWS with a React-based SPA front-end. I'm also interested in progressive web applications and developer tools.


Blog

Scala, Clojure, and FP

Agile

The Cloud

Data-First Development

Older work

Coconut Palm Software home


Donate Bitcoin:

1Ecnr9vtkC8b9FvmQjQaJ9ZsHB127UzVD6

Keywords:

Kubernetes, Docker, Streaming Data, Spark, Scala, Clojure, OSGi, Karaf, GCP, AWS, SQL

Disclaimer:

Everything I say here is my own opinion and not necessarily that of my employer.

cloud:home

The Cloud and Docker

Currently this page is a set of random notes about using various cloud providers with/out Docker.

Here are some notes on why to consider developing on Windows.

Minikube on Windows 10

Notes:

  • Make sure Hyper-V is enabled (You need Windows 10 Pro)
  • Find the Hyper-V Manager and pin it somewhere; you'll need it.
  • Install Docker for Windows.
  • Download the latest minikube.exe and kubectl.exe and put them on your path.

After that, I had to create two virtual switches, one for my hardwired Ethernet adapter and another for my Wifi adapter. Instructions are here:

https://docs.docker.com/machine/drivers/hyper-v/


Running the following as Administrator should now set up a Minikube cluster and open the dashboard in your default browser:

djo@oregano MINGW64 ~
$ minikube config get vm-driver
specified key could not be found in config
 
djo@oregano MINGW64 ~
$ minikube config set vm-driver hyperv
These changes will take effect upon a minikube delete and then a minikube start
 
djo@oregano MINGW64 ~
$ minikube delete
Deleting local Kubernetes cluster...
Machine deleted.
 
djo@oregano MINGW64 ~
$ minikube --hyperv-virtual-switch='Wireless Virtual Switch' start
Starting local Kubernetes cluster...
Kubectl is now configured to use the cluster.
 
djo@oregano MINGW64 ~
$ minikube dashboard
Opening kubernetes dashboard in default browser...

Enabling Ingress in Minikube

Troubleshooting

1) The first time I ran

minikube --vm-driver hyperv start

it failed with:

Error updating localkube from asset: Error transferring localkube via ssh: Error running scp command: Process exited with: 1. Reason was:  ()

I found a workaround here: https://github.com/kubernetes/minikube/issues/817

Seen today on Windows 10, hyperv. Worked around by stopping and deleting the minikube VM in Hyper-V Manager, deleting ~/.minikube and trying again.

I actually had to go into the Hyper-V Manager application and delete the VM that had been created. Then I could run:

rm -fr ~/.minikube

2) Forgetting to specify the virtual switch when starting minikube

First, you have to start minikube as Administrator. If you don't have a command prompt open as Administrator, this is the time to do it. Then you can

minikube –hyperv-virtual-switch='Wireless Virtual Switch' start

where 'Wireless Virtual Switch' is whatever you named the active virtual switch.

cloud/home.txt · Last modified: 2017/04/12 18:55 by djo