github.com/docker/compose-on-kubernetes@v0.5.0/docs/install-on-minikube.md (about) 1 # Install on Minikube 2 3 ## Pre-requisites 4 - [Minikube](https://github.com/kubernetes/minikube) 5 - To install etcd using these instructions, you must have [Helm](https://helm.sh) in your client environment. 6 - [Download the Compose on Kubernetes installer](https://github.com/docker/compose-on-kubernetes/releases). 7 8 ## Create compose namespace 9 10 - First you should have the confirmation that everything is running and `kubectl` is pointing to the minikube vm by running `minikube status`. 11 If not, please start it by running `minikube start`. That should create and/or start Minikube's VM. 12 - Then, create a compose namespace by running `kubectl create namespace compose`. 13 14 ## Deploy etcd 15 16 Compose on Kubernetes requires an etcd instance (in addition to the kube-system etcd instance). Please follow [How to deploy etcd](./deploy-etcd.md). 17 18 ## Deploy Compose on Kubernetes 19 20 Run `installer-[darwin|linux|windows.exe] -namespace=compose -etcd-servers=http://compose-etcd-client:2379`. 21 22 ## Deploy a stack in the cluster 23 24 By now you should be able to [Check that Compose on Kubernetes is installed](../README.md#check-that-compose-on-kubernetes-is-installed) and [Deploy a stack](../README.md#deploy-a-stack). 25 26 Then when listing Minikube's services with `minikube service list` you should see something like: 27 ```sh 28 $ minikube service list 29 |-------------|-----------------------|-----------------------------| 30 | NAMESPACE | NAME | URL | 31 |-------------|-----------------------|-----------------------------| 32 | compose | compose-api | No node port | 33 | compose | compose-etcd | No node port | 34 | compose | compose-etcd-client | No node port | 35 | compose | etcd-restore-operator | No node port | 36 | default | db | No node port | 37 | default | kubernetes | No node port | 38 | default | web | No node port | 39 | default | web-published | http://192.168.99.103:32399 | 40 | default | words | No node port | 41 | kube-system | kube-dns | No node port | 42 | kube-system | kubernetes-dashboard | No node port | 43 | kube-system | tiller-deploy | No node port | 44 |-------------|-----------------------|-----------------------------| 45 ``` 46 47 To access our example web application, please run `minikube service web-published`. This should open a browser pointing to Minikube's VM ip in the service's exposed port. In this case 32399.