Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Hello,
First of all thanks for so good and interesting tutorial.
I have found some obstacles along the way, which I have managed to solve, but at the moment I am totally stuck. So I would like to ask for your help. I am trying to run the “master.yml” playbook, but there I get an error when trying to copy the admin.conf to user´s kube config. The error I get is the following:
*TASK [copy admin.conf to user's kube config] ***********************************
fatal: [master]: FAILED! => {"changed": false, "msg": "Source /etc/kubernetes/admin.conf not found"}*
So it seems as if it was never initialized and hence the admin.conf was never created. Do you have any tips or advice?
About the errors which I found, they were small things as for example the installation of the docker.io, which failed, but I managed to modify the playbook and install docker-ce which I assume would be similar for the purposes of the tutorial. Also found some problems with the permissions, but managed to overcome those by modifying the calls to execute the playbooks. Basically I modified the host file to not running them as root user, but appending “–ask-become-pass” into the calls.
I am happy to provide more info if you tell me how :)
Hi, can you check if the playbook in Step 4 succeeded? If it did not, can you post the entire output you got. That should help in diagnosing the issue.
Hi, first of all thanks for the tutorial.
On Step 5, when I run this command
ansible-playbook -i hosts ~/kube-cluster/workers.yml
it hangs like this. I’m waiting like 20-30 minutes now, no information on console. How to resolve this step?
ansible-playbook -i hosts ~/kube-cluster/workers.yml
PLAY [master] ***********************************************************************************************************************************
TASK [get join command] ***********************************************************************************************************************************
changed: [master]
TASK [set join command] ***********************************************************************************************************************************
ok: [master]
PLAY [workers] ***********************************************************************************************************************************
TASK [Gathering Facts] ***********************************************************************************************************************************
ok: [worker2]
ok: [worker1]
TASK [join cluster] ***********************************************************************************************************************************
Hello, I have a trouble. Master node is on Ubuntu-18.04.1-live-server-amd64
kub@kub-master:~$ docker -v Docker version 18.06.0-ce, build 0ffa825 kub@kub-master:~$ kubectl cluster-info Kubernetes master is running at http://localhost:8080
To further debug and diagnose cluster problems, use ‘kubectl cluster-info dump’. The connection to the server localhost:8080 was refused - did you specify the right host or port?
Please see the error: kub@kub-master:~$ kubectl get nodes The connection to the server localhost:8080 was refused - did you specify the right host or port?
Great article, Good effort, I failed to pass the step 05 when i run the command acmarket
Hi,
In step 2 while trying to play the .yml I am getting the below error.
:/kube-cluster$ ansible-playbook -i hosts ~/kube-cluster/initial.yml
PLAY [all] *********************************************************************
TASK [Gathering Facts] ********************************************************* fatal: [worker2]: FAILED! => {“changed”: false, “module_stderr”: “Shared connection to xx.xx.xx.xxclosed.\r\n”, “module_stdout”: “sudo: a password is required\r\n”, “msg”: “MODULE FAILURE”, “rc”: 1} fatal: [master]: FAILED! => {“changed”: false, “module_stderr”: “Shared connection to xx.xx.xx.xx closed.\r\n”, “module_stdout”: “sudo: a password is required\r\n”, “msg”: “MODULE FAILURE”, “rc”: 1} fatal: [worker1]: FAILED! => {“changed”: false, “module_stderr”: “Shared connection to xx.xx.xx.xx closed.\r\n”, “module_stdout”: “sudo: a password is required\r\n”, “msg”: “MODULE FAILURE”, “rc”: 1} to retry, use: --limit @/home/ubuntutest/kube-cluster/initial.retry
PLAY RECAP *********************************************************************
master : ok=0 changed=0 unreachable=0 failed=1
worker1 : ok=0 changed=0 unreachable=0 failed=1
worker2 : ok=0 changed=0 unreachable=0 failed=1
Please let me know what needs to be done.
To further debug and diagnose cluster problems, use ‘kubectl cluster-info dump’. The connection to the server localhost:8080 was refused - did you specify the right host or port?
Hello,
For anyone interested, here is a fully fledged ansible project for Kubernetes cluster installation, which includes options like ingress, multi-master, dashboard, PVs (e.g. vsphere) etc -> all in one shot. It supports from k8s 1.7 to latest 1.12. It’s actively tested on CentOS/RHEL, Ubuntu is also supported.
https://github.com/ReSearchITEng/kubeadm-playbook
PRs are welcome :)
Deploying latest k8s (v1.13.0) required flannel from master:
kubectl apply -f https://raw.githubusercontent.com/coreos/flannel/master/Documentation/kube-flannel.yml