You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This repository has set of ansible playbooks created to setup a kubernetes cluster fully automated with one master and multiple worker nodes. This will work on Fiware-Lab VMs. This has been tested and verified on Centos 7.9 64 bit operating systems with Kernel 5.12.10-1.el7.elrepo.x86_64 and Ubuntu 16.04 64 bit operating systems with Kernel Linux 4.4.0-210-generic.
3
-
4
-
# Prerequisites
5
-
1. At least three VMs are required for K8s deployment.
6
-
2. Servers required:
7
-
8
-
a. Ansible Host
9
-
10
-
b. Master Node
11
-
12
-
c. Worker Nodes
13
-
14
-
3. Ansible should be installed on Ansible Host. For installation steps, follow [install-ansible.md](https://github.com/Fiware-Community/kubernetes-in-FiwareLab/blob/main/docs/install-ansible.md).
15
-
16
-
# How to use this (Setup Instructions)
17
-
1. Make servers ready (Ansible Host, one master node and multiple worker nodes) by creating new VMs on Fiware-Lab.
18
-
2. Update the Kernel if it is lower than 5.x (for CentOS). Steps are added in [update-kernel.md](https://github.com/Fiware-Community/kubernetes-in-FiwareLab/blob/main/docs/update-kernel.md).
19
-
3. Install firewall (if not installed). Steps are added in [setup-firewalld.md](https://github.com/Fiware-Community/kubernetes-in-FiwareLab/blob/main/docs/setup-firewalld.md).
20
-
4. Make an entry of each hosts in /etc/hosts file for name resolution in Master and Worker VM as:
21
-
22
-
On Master: 127.0.0.1 <master-vm-name>.novalocal
23
-
24
-
On Worker: 127.0.0.1 <worker-vm-name>.novalocal
25
-
26
-
5. Make sure kubernetes master node and other worker nodes are reachable between each other.
27
-
6. Internet connection must be enabled in all nodes, required packages will be downloaded from kubernetes official yum repository.
28
-
7. Copy the script and ansible playbooks on Ansible Host VM.
29
-
8. There is a file ```hosts``` in this folder, make entries of all kubernetes nodes.
30
-
9. Provide server details in ```playbooks/env_variables```.
31
-
10. Deploy the ssh key from Ansible Host to nodes for password less authentication. Steps are added in [passwordless-ssh.md](https://github.com/Fiware-Community/kubernetes-in-FiwareLab/blob/main/docs/passwordless-ssh.md).
32
-
11. Provide root level privilege to centos or ubuntu user. Steps are added in [root-access.md](https://github.com/Fiware-Community/kubernetes-in-FiwareLab/blob/main/docs/root-access.md).
33
-
12. Run ```settingup_kubernetes_cluster.yml``` playbook to setup all nodes and kubernetes master configuration.
13. Run ```join_kubernetes_workers_nodes.yml``` playbook to join the worker nodes with kubernetes master node once ```settingup_kubernetes_cluster.yml``` playbook tasks are completed.
In case settingup_kubernetes_cluster playbook fails due to some system errors. Then reset the cluster otherwise it will show different errors like **PORT IN USE** and **CERTIFICATES ALREADY EXIST**
49
-
To fix these errors run below commands on master node:
0 commit comments