Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
docker_advanced_k8s_intro [2020/04/20 11:36] – created andonovj | docker_advanced_k8s_intro [2020/05/30 15:17] (current) – [Overview] andonovj | ||
---|---|---|---|
Line 3: | Line 3: | ||
So let's get it going. We will use 3 machines: | So let's get it going. We will use 3 machines: | ||
- | | + | |
- | | + | |
- | To configure our kubernetes, | + | To configure our kubernetes, |
+ | |||
+ | * Docker (or rkt) - Container runtime. | ||
+ | * Kubelet - Kubernetes Node Agent. | ||
+ | * Kubeadm - The tool used to build the cluster. | ||
+ | * Kubectl - The Kubernetes Client | ||
+ | * CNI - Install support for CNI network (Container network Interface / Spec or Model for Kubernetes Network) | ||
+ | |||
+ | Furhtermore, Kubernetes have various objects, but let' | ||
+ | |||
+ | * Pods | ||
+ | * Replication Controllers / Replication Sets (When Deployment) | ||
+ | * ClusterIP | ||
+ | =====Package Installation===== | ||
+ | To install the packages we have to: | ||
+ | |||
+ | - Configure the Repos | ||
+ | - Actuall install the packages. | ||
+ | |||
+ | So let's get going :) | ||
+ | |||
+ | ====Configure the Repos==== | ||
The repo is configured very easy using the following script: | The repo is configured very easy using the following script: | ||
Line 19: | Line 40: | ||
Please bare in mind, this is for Ubuntu Xenial 64. If you have different distribution please adjust....the last entry :) | Please bare in mind, this is for Ubuntu Xenial 64. If you have different distribution please adjust....the last entry :) | ||
+ | |||
+ | <sxh bash> | ||
+ | vagrant@node-1: | ||
+ | root@node-1: | ||
+ | 0% [Working] | ||
+ | Hit:1 http:// | ||
+ | Get:2 http:// | ||
+ | Get:3 http:// | ||
+ | Get:4 http:// | ||
+ | Get:5 http:// | ||
+ | Get:6 http:// | ||
+ | Get:7 http:// | ||
+ | Get:8 http:// | ||
+ | Get:9 http:// | ||
+ | Get:10 http:// | ||
+ | Get:11 http:// | ||
+ | Get:12 http:// | ||
+ | Get:13 http:// | ||
+ | Get:14 http:// | ||
+ | Get:15 http:// | ||
+ | Get:16 http:// | ||
+ | Get:17 http:// | ||
+ | Get:18 http:// | ||
+ | Get:19 http:// | ||
+ | Get:20 http:// | ||
+ | Get:21 http:// | ||
+ | Get:22 http:// | ||
+ | Fetched 16.3 MB in 12s (1,318 kB/s) | ||
+ | Reading package lists... Done | ||
+ | Reading package lists... Done | ||
+ | Building dependency tree | ||
+ | Reading state information... Done | ||
+ | apt-transport-https is already the newest version (1.2.32). | ||
+ | 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. | ||
+ | root@node-1: | ||
+ | OK | ||
+ | root@node-1: | ||
+ | > deb http:// | ||
+ | > EOF | ||
+ | root@node-1: | ||
+ | Hit:1 http:// | ||
+ | Hit:3 http:// | ||
+ | Hit:4 http:// | ||
+ | Hit:5 http:// | ||
+ | Get:2 https:// | ||
+ | Get:6 https:// | ||
+ | Fetched 44.3 kB in 2s (20.6 kB/s) | ||
+ | Reading package lists... Done | ||
+ | root@node-1: | ||
+ | </ | ||
+ | |||
+ | Please run this command on all 3 machines. | ||
+ | |||
+ | ====Install the packages==== | ||
+ | So let's install the packages now: | ||
+ | |||
+ | < | ||
+ | root@k8s-master: | ||
+ | Reading package lists... Done | ||
+ | Building dependency tree | ||
+ | Reading state information... Done | ||
+ | The following additional packages will be installed: | ||
+ | bridge-utils cgroupfs-mount conntrack containerd cri-tools ebtables pigz runc socat ubuntu-fan | ||
+ | Suggested packages: | ||
+ | mountall aufs-tools debootstrap docker-doc rinse zfs-fuse | zfsutils | ||
+ | The following NEW packages will be installed: | ||
+ | bridge-utils cgroupfs-mount conntrack containerd cri-tools docker.io ebtables kubeadm kubectl kubelet kubernetes-cni pigz runc socat ubuntu-fan | ||
+ | 0 upgraded, 15 newly installed, 0 to remove and 0 not upgraded. | ||
+ | Need to get 104 MB of archives. | ||
+ | After this operation, 532 MB of additional disk space will be used. | ||
+ | Do you want to continue? [Y/n] y | ||
+ | Get:1 http:// | ||
+ | Get:2 http:// | ||
+ | ************************************************************************************************************** | ||
+ | </ | ||
+ | |||
+ | Please execute that on all 3 machines | ||
+ | |||
+ |