Skip to content

Instantly share code, notes, and snippets.

View sebastien-prudhomme's full-sized avatar

Sébastien Prud'homme sebastien-prudhomme

  • Toulouse, France
View GitHub Profile
2017/03/14 17:36:53 [INFO] Terraform version: 0.9.0 beta2 dbb920ff54edea3ef975751d9ec31d6049eb5003
2017/03/14 17:36:53 [INFO] Go runtime version: go1.8
2017/03/14 17:36:53 [INFO] CLI args: []string{"/home/sebastien/bin/terraform", "plan"}
2017/03/14 17:36:53 [DEBUG] Detected home directory from env var: /home/sebastien
2017/03/14 17:36:53 [DEBUG] Detected home directory from env var: /home/sebastien
2017/03/14 17:36:53 [DEBUG] Attempting to open CLI config file: /home/sebastien/.terraformrc
2017/03/14 17:36:53 [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
2017/03/14 17:36:53 [DEBUG] Detected home directory from env var: /home/sebastien
2017/03/14 17:36:53 [INFO] CLI command args: []string{"plan"}
2017/03/14 17:36:53 [DEBUG] command: loading backend config file: /home/sebastien/Bureau/Travail/openstack/terraform/bug
$ docker-machine
Usage: docker-machine [OPTIONS] COMMAND [arg...]
Create and manage machines running Docker.
Version: 0.15.0, build b48dc28d
Author:
Docker Machine Contributors - <https://github.com/docker/machine>
$ docker-machine create --driver virtualbox --virtualbox-boot2docker-url https://github.com/rancher/os/releases/download/v1.4.1/rancheros.iso --virtualbox-cpu-count 1 --virtualbox-disk-size 10000 --virtualbox-memory 2048 minikluster-1
Creating CA: /home/sebastien/.docker/machine/certs/ca.pem
Creating client certificate: /home/sebastien/.docker/machine/certs/cert.pem
Running pre-create checks...
(minikluster-1) Image cache directory does not exist, creating it at /home/sebastien/.docker/machine/cache...
Creating machine...
(minikluster-1) Downloading /home/sebastien/.docker/machine/cache/boot2docker.iso from https://github.com/rancher/os/releases/download/v1.4.1/rancheros.iso...
(minikluster-1) 0%....10%....20%....30%....40%....50%....60%....70%....80%....90%....100%
(minikluster-1) Creating VirtualBox VM...
(minikluster-1) Creating SSH key...
$ docker-machine ls
NAME ACTIVE DRIVER STATE URL SWARM DOCKER ERRORS
minikluster-1 - virtualbox Running tcp://192.168.99.100:2376 v18.03.1-ce
$ docker-machine ssh minikluster-1 sudo ros engine switch docker-17.03.2-ce
time="2018-09-30T21:12:59Z" level=info msg="Project [os]: Starting project "
time="2018-09-30T21:12:59Z" level=error msg="Missing the image: Error: No such image: docker.io/rancher/os-docker:17.03.2"
time="2018-09-30T21:12:59Z" level=error msg="Missing the image: Error: No such image: docker.io/rancher/os-docker:17.03.2"
time="2018-09-30T21:12:59Z" level=info msg="[0/18] [docker]: Starting "
Pulling docker (docker.io/rancher/os-docker:17.03.2)...
17.03.2: Pulling from rancher/os-docker
8d6b05d859b8: Pulling fs layer
8d6b05d859b8: Verifying Checksum
8d6b05d859b8: Download complete
$ rke
NAME:
rke - Rancher Kubernetes Engine, an extremely simple, lightning fast Kubernetes installer that works everywhere
USAGE:
rke [global options] command [command options] [arguments...]
VERSION:
v0.1.9
$ rke config
[+] Cluster Level SSH Private Key Path [~/.ssh/id_rsa]:
[+] Number of Hosts [1]:
[+] SSH Address of host (1) [none]: 192.168.99.100
[+] SSH Port of host (1) [22]:
[+] SSH Private Key Path of host (192.168.99.100) [none]: ~/.docker/machine/machines/minikluster-1/id_rsa
[+] SSH User of host (192.168.99.100) [ubuntu]: docker
[+] Is host (192.168.99.100) a Control Plane host (y/n)? [y]:
[+] Is host (192.168.99.100) a Worker host (y/n)? [n]: y
[+] Is host (192.168.99.100) an etcd host (y/n)? [n]: y
$ kubectl --kubeconfig kube_config_cluster.yml --namespace kube-system get pods
NAME READY STATUS RESTARTS AGE
canal-95m29 3/3 Running 0 4m
kube-dns-7588d5b5f5-wgrhz 3/3 Running 0 4m
kube-dns-autoscaler-5db9bbb766-rlx6l 1/1 Running 0 4m
metrics-server-97bc649d5-xgjrr 1/1 Running 0 4m
rke-ingress-controller-deploy-job-g4mng 0/1 Completed 0 4m
rke-kubedns-addon-deploy-job-rxqs7 0/1 Completed 0 4m
rke-metrics-addon-deploy-job-2fscd 0/1 Completed 0 4m
rke-network-plugin-deploy-job-bkrnw 0/1 Completed 0 4m
$ kubectl --kubeconfig=kube_config_cluster.yml get nodes
NAME STATUS ROLES AGE VERSION
minikluster-1 Ready controlplane,etcd,worker 4m v1.11.1
$ rke up
INFO[0000] Building Kubernetes cluster
INFO[0000] [dialer] Setup tunnel for host [192.168.99.100]
INFO[0000] [network] Deploying port listener containers
INFO[0000] [network] Pulling image [rancher/rke-tools:v0.1.13] on host [192.168.99.100]
INFO[0031] [network] Successfully pulled image [rancher/rke-tools:v0.1.13] on host [192.168.99.100]
INFO[0032] [network] Successfully started [rke-etcd-port-listener] container on host [192.168.99.100]
INFO[0033] [network] Successfully started [rke-cp-port-listener] container on host [192.168.99.100]
INFO[0033] [network] Successfully started [rke-worker-port-listener] container on host [192.168.99.100]
INFO[0033] [network] Port listener containers deployed successfully