Skip to content

Commit

Permalink
update project
Browse files Browse the repository at this point in the history
  • Loading branch information
Yuan Zhang authored and Yuan Zhang committed Sep 9, 2022
1 parent ddd805f commit bda513a
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 33 deletions.
44 changes: 11 additions & 33 deletions Kubernetes v1.25 installation notes.MD
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
# Kubernetes v1.25 installation notes

---
## Backgroud

## init ENV
Kubernetes v1.25 removed docker-shim

---
![Kubernetes & Docker](https://raw.githubusercontent.com/helloyuanyuan/Kubernetes-Notes/master/Kubernetes%20%26%20Docker.svg)

## Init ENV

vagrant up 1 master node & 2 worker nodes
check hostname with:
Expand Down Expand Up @@ -99,11 +101,7 @@ check docker Cgroup driver: systemd
sudo systemctl restart docker.service
~~~

---

## install kubeadm kubelet kubectl

---
## Install kubeadm kubelet kubectl

Reference Doc

Expand Down Expand Up @@ -155,29 +153,21 @@ Reference Doc
sudo apt-mark hold kubelet kubeadm kubectl
~~~

---

## install cri-dockerd

---
## Install cri-dockerd

Project: <https://github.com/Mirantis/cri-dockerd>

~~~bash
sudo dpkg -i cri-dockerd_0.2.5.3-0.ubuntu-focal_amd64.deb
~~~

---

## init Kubernetes cluster with kubeadm init

---
## Init Kubernetes cluster with kubeadm

Reference Doc

- <https://kubernetes.io/zh-cn/docs/setup/production-environment/tools/kubeadm/create-cluster-kubeadm>

### Master Node
### master Node

~~~bash
sudo kubeadm init \
Expand Down Expand Up @@ -235,7 +225,7 @@ Reference Doc

Wait until each pod has the ***STATUS*** of ***Running.***

### Worker Node
### worker Node

Response from ***kubeadm init***

Expand All @@ -245,11 +235,7 @@ Response from ***kubeadm init***
sudo kubeadm join 10.0.0.100:6443 --token 70q2ho.b62bdamrzj4nye1j --discovery-token-ca-cert-hash sha256:05f4ce3c999c970ef31a4c2ade45b1ce0aa215c2ec6e5898af72fb1bd3b896dd --cri-socket unix:///run/cri-dockerd.sock
~~~

---

## kubectl autocompletion

---
## Autocompletion kubectl

Reference Doc

Expand All @@ -262,12 +248,8 @@ Reference Doc
exec bash
~~~

---

## Reset cluster

---

***worker*** node first, then ***master*** node

~~~bash
Expand All @@ -276,12 +258,8 @@ Reference Doc
reboot
~~~

---

## BVT

---

~~~bash
kubectl create deployment demoapp --image=ikubernetes/demoapp:v1.0 --replicas=2
kubectl create service nodeport demoapp --tcp=80:80
Expand Down
9 changes: 9 additions & 0 deletions README.MD
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Getting Started

## Reference

For further reference, please consider the following sections:

* [Kubernetes & Docker](https://raw.githubusercontent.com/helloyuanyuan/Kubernetes-Notes/master/Kubernetes%20%26%20Docker.svg)
* [Kubernetes v1.25 installation notes](https://github.com/helloyuanyuan/Kubernetes-Notes/blob/master/Kubernetes%20v1.25%20installation%20notes.MD)

0 comments on commit bda513a

Please sign in to comment.