Minishift
Since the release of Minishift v1.4.x, we have improved some of the user experience when it comes to getting started. One of the oft seen issues was related to the driver plugins, so where possible, we now try to report the issues beforehand.
But to also allow a quick development and test-cycle we added a feature toggle to allow provisioning of OpenShift by passing extra options to the oc cluster up
command.
Starting Minishift
In the previous version, when you didn’t install the driver plugin, Minishift would fail with an exception stacktrace.
$ minishift start
Starting local OpenShift cluster using 'kvm' hypervisor...
E0808 19:52:14.112554 10581 start.go:287] Error starting the VM: Error getting the state for host: Driver "kvm" not found. Do you have the plugin binary accessible in your PATH?. Retrying.
E0808 19:52:14.112863 10581 start.go:287] Error starting the VM: Error getting the state for host: Driver "kvm" not found. Do you have the plugin binary accessible in your PATH?. Retrying.
E0808 19:52:14.113016 10581 start.go:287] Error starting the VM: Error getting the state for host: Driver "kvm" not found. Do you have the plugin binary accessible in your PATH?. Retrying.
Error starting the VM: Error getting the state for host: Driver "kvm" not found. Do you have the plugin binary accessible in your PATH?
Error getting the state for host: Driver "kvm" not found. Do you have the plugin binary accessible in your PATH?
Error getting the state for host: Driver "kvm" not found. Do you have the plugin binary accessible in your PATH?
After introduction of the pre-flight checks
We nopw check for the availability of the driver, and when possible if properly configured.
$ minishift start
-- Checking if KVM driver is installed ... FAIL
See the 'Setting Up the Driver Plug-in' topic for more information
Other pre-flight checks before starting the VM
$ sudo mv /tmp/docker-machine-driver-kvm /usr/local/bin/
$ minishift start
-- Checking if KVM driver is installed ...
Driver is available at /usr/local/bin/docker-machine-driver-kvm ... OK
-- Starting local OpenShift cluster using 'kvm' hypervisor ...
-- Minishift VM will be configured with ...
Memory: 2 GB
vCPUs : 2
Disk size: 20 GB
-- Starting Minishift VM ... - ^C
Introduction of new functionality
$ minishift --service-catalog
Usage:
minishift start [flags]
Flags:
unknown flag: --service-catalog
Enabling experimental features
To allow features which might not be GA yet, we can now allow them to be showcased and tested.
$ MINISHIFT_ENABLE_EXPERIMENTAL=y minishift start --service-catalog
-- Checking if KVM driver is installed ...
Driver is available at /usr/local/bin/docker-machine-driver-kvm ... OK
-- Starting local OpenShift cluster using 'kvm' hypervisor ...
-- Minishift VM will be configured with ...
Memory: 2 GB
vCPUs : 2
Disk size: 20 GB
-- Starting Minishift VM ... OK
-- Checking for IP address ... OK
-- Checking if external host is reachable from the Minishift VM ...
Pinging 8.8.8.8 ... OK
-- Checking HTTP connectivity from the VM ...
Retrieving http://minishift.io/index.html ... OK
-- Checking if persistent storage volume is mounted ... OK
-- Checking available disk space ... 0% OK
-- OpenShift cluster will be configured with ...
Version: v3.6.0
-- Checking `oc` support for startup flags ...
host-config-dir ... OK
host-data-dir ... OK
host-pv-dir ... OK
host-volumes-dir ... OK
routing-suffix ... OK
service-catalog ... OK
Starting OpenShift using openshift/origin:v3.6.0 ...
Pulling image openshift/origin:v3.6.0
Pulled 1/4 layers, 27% complete
Enabling any cluster up
command to be passed through
$ MINISHIFT_ENABLE_EXPERIMENTAL=y minishift start --extra-clusterup-flags="--service-catalog"
-- Checking if KVM driver is installed ...
Driver is available at /usr/local/bin/docker-machine-driver-kvm ... OK
-- Starting local OpenShift cluster using 'kvm' hypervisor ...
-- Minishift VM will be configured with ...
Memory: 2 GB
vCPUs : 2
Disk size: 20 GB
-- Starting Minishift VM ... OK
-- Checking for IP address ... OK
-- Checking if external host is reachable from the Minishift VM ...
Pinging 8.8.8.8 ... OK
-- Checking HTTP connectivity from the VM ...
Retrieving http://minishift.io/index.html ... OK
-- Checking if persistent storage volume is mounted ... OK
-- Checking available disk space ... 0% OK
-- OpenShift cluster will be configured with ...
Version: v3.6.0
-- Checking `oc` support for startup flags ...
host-pv-dir ... OK
host-volumes-dir ... OK
routing-suffix ... OK
host-config-dir ... OK
host-data-dir ... OK
-- Extra `oc` cluster up flags (experimental) ...
'--service-catalog'
Starting OpenShift using openshift/origin:v3.6.0 ...
Pulling image openshift/origin:v3.6.0
Pulled 1/4 layers, 26% complete
Share this recording
Link
Append ?t=30
to start the playback at 30s, ?t=3:20
to start the playback at 3m 20s.
Embed image link
Use snippets below to display a screenshot linking to this recording.
Useful in places where scripts are not allowed (e.g. in a project's README file).
HTML:
Markdown:
Embed the player
If you're embedding on your own page or on a site which permits script tags, you can use the full player widget:
Paste the above script tag where you want the player to be displayed on your page.
See embedding docs for additional options.
Download this recording
You can download this recording in asciicast v1 format, as a .json file.
DownloadReplay in terminal
You can replay the downloaded recording in your terminal using the
asciinema play
command:
asciinema play 132591.json
If you don't have asciinema CLI installed then see installation instructions.
Use with stand-alone player on your website
Download asciinema player from
the releases page
(you only need .js
and .css
file), then use it like this:
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" type="text/css" href="asciinema-player.css" />
</head>
<body>
<div id="player"></div>
<script src="asciinema-player.min.js"></script>
<script>
AsciinemaPlayer.create(
'/assets/132591.json',
document.getElementById('player'),
{ cols: 138, rows: 40 }
);
</script>
</body>
</html>
See asciinema player quick-start guide for full usage instructions.
Generate GIF from this recording
While this site doesn't provide GIF conversion at the moment, you can still do it yourself with the help of asciinema GIF generator utility - agg.
Once you have it installed, generate a GIF with the following command:
agg https://asciinema.org/a/132591 demo.gif
Or, if you already downloaded the recording file:
agg demo.cast demo.gif
Check agg --help
for all available options. You can change font
family and size, select color theme, adjust speed and more.
See agg manual for full usage instructions.