Skip to content

Commit f4cf9bd

Browse files
Update readme to Kubernetes 1.22 with Containerd
1 parent 0124644 commit f4cf9bd

File tree

3 files changed

+16
-10
lines changed

3 files changed

+16
-10
lines changed

README.md

+15-2
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,26 @@
1-
# Ansible VirtualBox Vagrant Kubernetes
1+
# Ansible VirtualBox Vagrant Kubernetes 1.22 Containerd and Istio Tutorial (1 master N nodes)
22
## Building a Kubernetes Cluster with Vagrant and Ansible
33

44
Tutorial with full source code explaining **how to create a Kubernetes cluster with Ansible and Vagrant** for local development.
55

66
See https://www.itwonderlab.com/en/ansible-kubernetes-vagrant-tutorial/
77

8+
* 22 Dec 2019: Add information about using a Private Docker Registry as suggested by Brian Quandt.
9+
* 4 Nov 2019: Install and publish Kubernetes Dashboard under vagrant, with help from Alex Alongi. Add prerequisites section as requested
10+
* 26 Sep 2019: Update Calico networking and network security to release 3.9
11+
* 6 June 2019: Fix issue: kubectl was not able to recover logs. See new task “Configure node-ip … at kubelet”.
12+
* 10 Jul 2020:
13+
Update prerequisites to latest releases
14+
It now takes above 2 minutes
15+
Change selection of hosts from Ansible groups to host-name pattern (hosts: k8s-m-* and hosts: k8s-n-*)
16+
* 3 Aug 2020: Allow different amount of CPU and MEM for master and nodes
17+
* 10 June 2021: Update host software dependencies (no changes in ansible or vagrant)
18+
* 16 August 2021: Update Ansible playbooks to use containerd instead of Docker (Kubernetes is deprecating Docker as a container runtime after v1.20.).
19+
20+
821
------------------
922

10-
## Creación de un Clúster de Kubernetes usando Vagrant y Ansible
23+
## Creación de un Clúster de Kubernetes 1.22 Containerd e Istio usando Vagrant y Ansible (1 maestro N nodos)
1124

1225
Creación de un **clúster Kubernetes con múltiples nodos usando Vagrant, Ansible y Virtualbox**. Especialmente indicado para entornos de desarrollo local realistas.
1326

roles/k8s/common/defaults/main.yml

-6
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
2-
31
k8s_common_add_packages_keys:
42
- key: https://download.docker.com/linux/ubuntu/gpg
53
- key: https://packages.cloud.google.com/apt/doc/apt-key.gpg
@@ -16,9 +14,6 @@ k8s_common_add_packages_names:
1614
- name: kubelet
1715
- name: kubectl
1816

19-
#- name: docker-ce
20-
#- name: docker-ce-cli
21-
2217
k8s_common_remove_packages_names:
2318
- name:
2419

@@ -34,7 +29,6 @@ k8s_common_sysctl:
3429
- name: net.bridge.bridge-nf-call-ip6tables
3530
value: 1
3631

37-
3832
k8s_common_admin_user: "ubuntu"
3933
k8s_common_admin_group: "ubuntu"
4034

roles/k8s/common/tasks/main.yml

+1-2
Original file line numberDiff line numberDiff line change
@@ -44,15 +44,14 @@
4444
insertafter: '\[Service\]'
4545
state: present
4646
notify: restart kubelet
47-
# --cgroup-driver=systemd --container-runtime=remote --container-runtime-endpoint=/run/containerd/containerd.sock
4847

4948
- name: restart containerd
5049
service:
5150
name: containerd
5251
state: restarted
5352
daemon_reload: yes
5453

55-
- name: Delete configuration for containerd.conf (see https://github.com/containerd/containerd/issues/4581)
54+
- name: Delete configuration for containerd.conf as kubeadm is unable to detect containerd (see https://github.com/containerd/containerd/issues/4581)
5655
file:
5756
state: absent
5857
path: /etc/containerd/config.toml

0 commit comments

Comments
 (0)