TIPS Appunti Kuber: differenze tra le versioni

Da GazziNet.
Vai alla navigazione Vai alla ricerca
Nessun oggetto della modifica
Nessun oggetto della modifica
 
(Una versione intermedia di uno stesso utente non è mostrata)
Riga 21: Riga 21:


In tutte le macchine base il containderid, kubelet (agent kubernates)  
In tutte le macchine base il containderid, kubelet (agent kubernates)  
apiVersion: kubeadm.k8s.io/v1beta2
kind: ClusterConfiguration
networking:
  serviceSubnet: "10.96.0.0/12"
  podSubnet: "172.16.0.1/23"
  dnsDomain: "cluster.local"
kubernetesVersion: "v1.22.0"
controlPlaneEndpoint: "master:6443"
clusterName: "desotech"
DSK201 - ParTech
K8S Install
sudo systemctl status containerd
curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add -
sudo apt-add-repository "deb http://apt.kubernetes.io/ kubernetes-xenial main"
sudo apt update
sudo apt-get install -y kubeadm=1.22.0-00 kubelet=1.22.0-00 kubectl=1.22.0-00
sudo apt-mark hold kubeadm kubectl kubelet
sudo kubeadm config images pull
sudo systemctl enable --now kubelet.service
vi /home/student/ClusterConfiguration.yaml
https://goonlinetools.com/snapshot/code/#p136au80ajgy1iy6yv8ae
IMPORTANTE !!!!!
sudo modprobe br_netfilter
kubeadm init -- master
kubeadm join -- aggancio worker





Versione attuale delle 09:39, 7 mar 2022

- Etcd db di stato (esterno interface db stato) raft

- c-m controller manager

- sched - scheduler

- c-c-m - Cloud controller manager (external interface)


- kubelet - agent

- k-proxy - Network manager del nodo

-


KUBCTL - YAML

1.22.0

In tutte le macchine base il containderid, kubelet (agent kubernates)


apiVersion: kubeadm.k8s.io/v1beta2 kind: ClusterConfiguration networking:

 serviceSubnet: "10.96.0.0/12"
 podSubnet: "172.16.0.1/23"
 dnsDomain: "cluster.local"

kubernetesVersion: "v1.22.0" controlPlaneEndpoint: "master:6443" clusterName: "desotech"


DSK201 - ParTech

K8S Install


sudo systemctl status containerd


curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add -


sudo apt-add-repository "deb http://apt.kubernetes.io/ kubernetes-xenial main"


sudo apt update


sudo apt-get install -y kubeadm=1.22.0-00 kubelet=1.22.0-00 kubectl=1.22.0-00


sudo apt-mark hold kubeadm kubectl kubelet


sudo kubeadm config images pull


sudo systemctl enable --now kubelet.service


vi /home/student/ClusterConfiguration.yaml


https://goonlinetools.com/snapshot/code/#p136au80ajgy1iy6yv8ae

IMPORTANTE !!!!!


sudo modprobe br_netfilter




kubeadm init -- master

kubeadm join -- aggancio worker




Master

kubectl kubeadm - gestione kubelet