This repository has been archived by the owner on Nov 30, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 180
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ref(quickstart): swap out Vagrant with Minikube
kube-up.sh has long been deprecated. This replaces the vagrant quickstart docs with minikube instead as the successor for local kube development.
- Loading branch information
Matthew Fisher
committed
Mar 16, 2017
1 parent
ea27199
commit d5dd212
Showing
14 changed files
with
106 additions
and
245 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
# Booting Kubernetes Using Minikube | ||
|
||
This guide will walk you through the process of installing a small development | ||
Kubernetes cluster on your local machine using [minikube](https://github.com/kubernetes/minikube). | ||
|
||
## Pre-requisites | ||
|
||
* OS X | ||
* [xhyve driver](https://github.com/kubernetes/minikube/blob/master/DRIVERS.md#xhyve-driver), [VirtualBox](https://www.virtualbox.org/wiki/Downloads) or [VMware Fusion](https://www.vmware.com/products/fusion) installation | ||
* Linux | ||
* [VirtualBox](https://www.virtualbox.org/wiki/Downloads) or [KVM](http://www.linux-kvm.org/) installation | ||
* Windows | ||
* [Hyper-V](https://github.com/kubernetes/minikube/blob/master/DRIVERS.md#hyperv-driver) | ||
* VT-x/AMD-v virtualization must be enabled in BIOS | ||
* The most recent version of `kubectl`. You can install kubectl following | ||
[these steps](https://kubernetes.io/docs/user-guide/prereqs/). | ||
* Internet connection | ||
* You will need a decent internet connection running `minikube start` for the first time for | ||
Minikube to pull its Docker images. It might take Minikube some time to start. | ||
|
||
## Download and Unpack Minikube | ||
|
||
See the installation instructions for the | ||
[latest release of minikube](https://github.com/kubernetes/minikube/releases). | ||
|
||
## Boot Your First Cluster | ||
|
||
We are now ready to boot our first Kubernetes cluster using Minikube! | ||
|
||
``` | ||
$ minikube start --disk-size=60g --memory=4096 | ||
Starting local Kubernetes cluster... | ||
Kubectl is now configured to use the cluster. | ||
``` | ||
|
||
Now that the cluster is up and ready, `minikube` automatically configures `kubectl` on your machine | ||
with the appropriate authentication and endpoint information. | ||
|
||
``` | ||
$ kubectl cluster-info | ||
Kubernetes master is running at https://192.168.99.100:8443 | ||
KubeDNS is running at https://192.168.99.100:8443/api/v1/proxy/namespaces/kube-system/services/kube-dns | ||
kubernetes-dashboard is running at https://192.168.99.100:8443/api/v1/proxy/namespaces/kube-system/services/kubernetes-dashboard | ||
To further debug and diagnose cluster problems, use 'kubectl cluster-info dump'. | ||
``` | ||
|
||
You are now ready to [install Deis Workflow](install-minikube.md) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
## Find Your Load Balancer Address | ||
|
||
During installation, Deis Workflow specifies that Kubernetes should provision and attach a load | ||
balancer to the router component. The router component is responsible for routing HTTP and HTTPS | ||
requests from outside the cluster to applications that are managed by Deis Worfklow. In cloud | ||
environments, Kubernetes provisions and attaches a load balancer for you. Since we are running in a | ||
local environment, we need to do a little bit of extra work to send requests to the router. | ||
|
||
First, determine the ip address allocated to the worker node. | ||
|
||
``` | ||
$ minikube ip | ||
192.168.99.100 | ||
``` | ||
|
||
## Prepare the Hostname | ||
|
||
Now that you have the ip address of your virtual machine, we can use the `nip.io` DNS service to | ||
route arbitrary hostnames to the Deis Workflow edge router. This lets us point the Workflow CLI at | ||
your cluster without having to either use your own domain or update DNS! | ||
|
||
To verify the Workflow API server and nip.io, construct your hostname by taking the ip address for | ||
your load balancer and adding `nip.io`. For our example above, the address would be `192.168.99.100`. | ||
|
||
Nip answers with the ip address no matter the hostname: | ||
|
||
``` | ||
$ host 192.168.99.100.nip.io | ||
192.168.99.100.nip.io has address 192.168.99.100 | ||
$ host something-random.192.168.99.100.nip.io | ||
something-random.192.168.99.100.nip.io has address 192.168.99.100 | ||
``` | ||
|
||
By default, any HTTP traffic for the hostname `deis` will be sent to the Workflow API service. To test that everything is connected properly you may validate connectivity using `curl`: | ||
|
||
``` | ||
$ curl http://deis.192.168.99.100.nip.io/v2/ && echo | ||
{"detail":"Authentication credentials were not provided."} | ||
``` | ||
|
||
You should see a failed request because we provided no credentials to the API server. | ||
|
||
Remember the hostname, we will use it in the next step. | ||
|
||
[next: deploy your first app](../../deploy-an-app.md) |
2 changes: 1 addition & 1 deletion
2
...start/provider/vagrant/install-vagrant.md → ...art/provider/minikube/install-minikube.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# Install Deis Workflow on Vagrant | ||
# Install Deis Workflow on Minikube | ||
|
||
## Check Your Setup | ||
|
||
|
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.