Minikube Operator Save

An operator for Minikube - Kubernetes on Kubernetes

Project README

minikube-operator

Status

This is the port of my mkaas project, which used an early version of the operator-framework. CoreOS made so many changes that the code stopped working all-together, so this repo contains the updated versions.

Goals

  • Port over CRD / operator
  • Update to Kubernetes v1.13
  • Port over Nginx DaemonSet for accessing the clusters remotely

Preview

See my Tweet with a Kubernetes cluster booting up on one of my Kubernetes nodes.

Example

apiVersion: alexellis.io/v2alpha1
kind: Minikube
metadata:
  name: "inlets"
  namespace: clusters
spec:
  clusterName: "inlets"
  cpuCount: 2
  memoryMB: 2048

Try it out

Install the pre-reqs from mkaas.

git clone [email protected]:alexellis/minikube-operator.git
cd minikube-operator

kubectl create ns clusters
kubectl apply -f ./deploy
kubectl apply -f ./deploy/crds/

View logs:

# See CR get picked up and created
kubectl logs deploy/minikube-operator -n clusters -f

# See logs of CR's boot-up script where it creates the minikube cluster with KVM
# Wait until you see text about creating the bundle.
kubectl logs pod/inlets-minikube -n clusters -f

Minikube data will be available as a bundle in /var/mkaas on the host.

You can un-tar it to /root/ and run kubectl get node

Hacking

Build:

operator-sdk build alexellis2/minikube-operator:0.2.0
docker push alexellis2/minikube-operator:0.2.0

License

MIT

Open Source Agenda is not affiliated with "Minikube Operator" Project. README Source: alexellis/minikube-operator
Stars
25
Open Issues
0
Last Commit
5 years ago
License
MIT

Open Source Agenda Badge

Open Source Agenda Rating