k8s study manual update ......
table of Contents
01kubernetes basic concepts
02kubeadm initialization kubernetes cluster
03kubernetes Application Quick Start
04 kubernetes list of resources defined
05kubernetes Pod controller applications Advanced
06kubernetes Pod controller
07kubernetes Pod controller
08kubernetes Pod controller
09kubernetes Service resource
10kubernetes Ingress and the Controller Ingress
11 storage volumes
12kubernetes pv, pvc , configuremap and Secret
13kubernetes statefulset controller
14kubernetes authentication and ServiceAccount
15kubernetes RBAC
16kubernetes Dashboard hierarchical authorization and authentication
17 network configuration widget flannel
18 is based on the network policy canel
19 scheduler, and preferably a function of the preselected strategy
20kubernetes advanced scheduling scheme
21 the container resource requirements, resource restrictions and HeapSter
22 API resource indicators and custom indicators API
23helm Getting Started
24 Creating a custom Chart and logging system deployment efk
01kubernetes basic concepts
Learning Path
02kubeadm cluster initialization kubernetes
k8s cluster deployment
yum install -y yum-utils device-mapper-persistent-data lvm2
yum-config-manager --add-repo https://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo
yum install -y docker-ce-18.09.8-3.el7 docker-ce-cli containerd.io
mkdir -p /etc/docker
tee /etc/docker/daemon.json <<-'EOF'
{
"registry-mirrors": ["https://iuj3d0uh.mirror.aliyuncs.com"],
"insecure-registries": ["192.168.0.110"],
"graph": "/data/docker",
"exec-opts": ["native.cgroupdriver=systemd"],
"log-driver": "json-file",
"log-opts": {
"max-size": "100m" },
"storage-driver": "overlay2"
}
EOF
systemctl daemon-reload
systemctl enable docker
systemctl restart docker
yum install -y ipvsadm ipset
cat > /etc/sysconfig/modules/ipvs.modules <<EOF modprobe -- ip_vs
modprobe -- ip_vs_rr
modprobe -- ip_vs_wrr
modprobe -- ip_vs_sh
modprobe -- nf_conntrack_ipv4
EOF
chmod 755 /etc/sysconfig/modules/ipvs.modules && bash /etc/sysconfig/modules/ipvs.modules && lsmod | grep -e ip_
cat <<EOF > /etc/yum.repos.d/kubernetes.repo
[kubernetes]
name=Kubernetes
baseurl=https://mirrors.aliyun.com/kubernetes/yum/repos/kubernetes-el7-x86_64/
enabled=1
gpgcheck=1
repo_gpgcheck=1
gpgkey=https://mirrors.aliyun.com/kubernetes/yum/doc/yum-key.gpg https://mirrors.aliyun.com/kubernetes/yum/doc/rpm-package-key.gpg
EOF
setenforce 0
yum install -y kubelet kubeadm kubectl
systemctl enable kubelet && systemctl start kubelet
cat <<EOF > /etc/sysctl.d/k8s.conf
net.bridge.bridge-nf-call-ip6tables = 1
net.bridge.bridge-nf-call-iptables = 1
net.ipv4.ip_forward = 1
vm.swappiness = 0
EOF
sysctl --system
k8s initialization
kubeadm init --kubernetes-version=v1.16.0 --pod-network-cidr=10.244.0.0/16 --service-cidr=10.96.0.0/12 --image-repository registry.aliyuncs.com/google_containers
Installation network plug flannel
kubectl apply -f https://raw.githubusercontent.com/coreos/flannel/master/Documentation/kube-flannel.yml
# https://github.com/coreos/flannel