When you use Minishift, you interact with the following components:
-
the Minishift virtual machine (VM)
-
the Docker daemon running on the VM
-
the OpenShift cluster running on the Docker daemon
The Minishift architecture diagram outlines these components.
The minishift binary, placed on the PATH for easy execution, is used to start, stop and delete the Minishift VM.
The VM itself is bootstrapping off a pluggable Live ISO.
Some Minishift commands, for example docker-env, interact with the Docker daemon, whilst others communicate with the OpenShift cluster, for example the openshift command.
Once the OpenShift cluster is up and running, you interact with it using the oc binary.
Minishift caches this binary under $MINISHIFT_HOME (per default ~/.minishift).
minishift oc-env is an easy way to add the oc binary to your PATH.
: Minishift architecture
Failed to generate image: Could not find Java executable
host machine
+-------------------------------------------------------------------------------------+
| /-------------> Minishift VM |
| | |
| | /---> o boots from pluggable Live ISO |
| $PATH | | o runs on VirtualBox, HyperV, xhyve or KVM |
| └── minishift -=-----| | |
| | | /------------------------------------------\ |
| | | |c1AB | |
| |-=-------|=--|-=-> Docker | |
| : | | /-----------------------------\ | |
| | | | | c1FF | | |
|~/.minishift/ \-=-------|=--|-=-|-=---> OpenShift | | |
| | | | | | /-------------------\ | | |
| +-- cache | | | | | | | | |
| | | | | | | master node | | | |
| +-- iso | | | | | +-----+ +-----+ | | | |
| | | | | | | | | {d} | | {d} | | | | |
| | +-- minishift_b2d.iso -/ | | | | | | | | | | | |
| | | | | | | | | | | | | |
| +-- oc | | | | | | | | | | | |
| | | | | | | | | | | | | |
| +-- v3.6.0 | | | | | | | | | | | |
| | | | | | | | | | | | | |
| +-- oc -=-------------|-=-|-=+ | +-----+ +-----+ | | | |
| | | \-------------------/ | | |
| | \-----------------------------/ | |
| \------------------------------------------/ |
| |
+-------+-----------------------------------------------------------------------------+