jmutai / k8s-pre-bootstrap Goto Github PK
View Code? Open in Web Editor NEWAnsible role to setup Kubernetes Requirements before kubeadm init
License: GNU General Public License v3.0
Ansible role to setup Kubernetes Requirements before kubeadm init
License: GNU General Public License v3.0
Hello,
There is typo in tasks/main.yaml Line 32.
- name: Include task to configure containerd container runtime
include: setup_crio.yml
when: container_runtime == "containerd"
This should be
- name: Include task to configure containerd container runtime
include: setup_containerd.yml
when: container_runtime == "containerd"
Ansible fell over when trying to start the docker daemon.
Starting dockerd revealed the issue:-
sudo dockerd
INFO[2020-12-06T13:14:51.712175688Z] Starting up
INFO[2020-12-06T13:14:51.717032757Z] parsed scheme: "unix" module=grpc
INFO[2020-12-06T13:14:51.717061129Z] scheme "unix" not registered, fallback to default scheme module=grpc
INFO[2020-12-06T13:14:51.717083960Z] ccResolverWrapper: sending update to cc: {[{unix:///run/containerd/containerd.sock 0 <nil>}] <nil>} module=grpc
INFO[2020-12-06T13:14:51.717094701Z] ClientConn switching balancer to "pick_first" module=grpc
INFO[2020-12-06T13:14:51.719469363Z] parsed scheme: "unix" module=grpc
INFO[2020-12-06T13:14:51.719493234Z] scheme "unix" not registered, fallback to default scheme module=grpc
INFO[2020-12-06T13:14:51.719507424Z] ccResolverWrapper: sending update to cc: {[{unix:///run/containerd/containerd.sock 0 <nil>}] <nil>} module=grpc
INFO[2020-12-06T13:14:51.719515835Z] ClientConn switching balancer to "pick_first" module=grpc
failed to start daemon: error initializing graphdriver: overlay2: the backing xfs filesystem is formatted without d_type support, which leads to incorrect behavior. Reformat the filesystem with ftype=1 to enable d_type support. Backing filesystems without d_type support are not supported.
To fix, remove this from templates/daemon.json.j2
"storage-driver": "overlay2",
"storage-opts": [
"overlay2.override_kernel_check=true"
],
CentOS Linux release 7.9.2009 (Core)
3.10.0-1160.6.1.el7.x86_64 #1 SMP Tue Nov 17 13:59:11 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
Error when processing setup_containerd.yml: there is no on host folder and file below
#- name: Set cgroup driver as systemd
If uncomment the line below
the hosts can not join to cluster with error message:
[preflight] Some fatal errors occurred: [ERROR CRI]: container runtime is not running: output: time="2021-12-18T19:30:25+03:00" level=fatal msg="getting status of runtime: rpc error: code = Unimplemented desc = unknown service runtime.v1alpha2.RuntimeService"
To resolve the issue I commented line run_once
When choosing the engine option cri-o, it sticks the pods subnet to 10.85.0.0/16
. It is defined in /etc/cni/net.d/10-crio-bridge.conf
.
Running kubeadm init ...
with the option --pod-network-cidr="A.B.C.D/X"
does not override this default subnet.
Suggestion:
Use a template for 10-crio-bridge.conf
with a variable for the desired subnet to be used when initializing the k8s cluster later.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.