mirror of https://github.com/easzlab/kubeasz.git
docs update
parent
9206514de7
commit
c02e85940c
|
@ -39,7 +39,7 @@
|
||||||
|
|
||||||
- **Alibaba Linux** 2.1903, 3.2104([notes](docs/setup/multi_os.md#Alibaba))
|
- **Alibaba Linux** 2.1903, 3.2104([notes](docs/setup/multi_os.md#Alibaba))
|
||||||
- **Alma Linux** 8, 9
|
- **Alma Linux** 8, 9
|
||||||
- **Anolis OS** 8.x RHCK, 8.x ANCK([notes](docs/setup/multi_os.md#Anolis))
|
- **Anolis OS** 8.x RHCK, 8.x ANCK
|
||||||
- **CentOS/RHEL** 7, 8, 9
|
- **CentOS/RHEL** 7, 8, 9
|
||||||
- **Debian** 10, 11([notes](docs/setup/multi_os.md#Debian))
|
- **Debian** 10, 11([notes](docs/setup/multi_os.md#Debian))
|
||||||
- **Fedora** 34, 35, 36, 37
|
- **Fedora** 34, 35, 36, 37
|
||||||
|
|
|
@ -4,8 +4,6 @@ CNCF 一致性认证项目(https://github.com/cncf/k8s-conformance) 可以很方
|
||||||
|
|
||||||
# kubeasz 通过一致性测试
|
# kubeasz 通过一致性测试
|
||||||
|
|
||||||
Cheers!
|
|
||||||
|
|
||||||
自kubeasz 3.0.0 版本,k8s v1.20.2开始,正式通过cncf一致性认证,成为cncf 官方认证安装工具;后续k8s主要版本发布或者kubeasz有大版本更新,会优先确保通过集群一致性认证。
|
自kubeasz 3.0.0 版本,k8s v1.20.2开始,正式通过cncf一致性认证,成为cncf 官方认证安装工具;后续k8s主要版本发布或者kubeasz有大版本更新,会优先确保通过集群一致性认证。
|
||||||
|
|
||||||
- v1.27 [进行中]()
|
- v1.27 [进行中]()
|
||||||
|
@ -56,18 +54,18 @@ chmod +x ./ezdown
|
||||||
|
|
||||||
```
|
```
|
||||||
./ezdown -S
|
./ezdown -S
|
||||||
docker exec -it kubeasz ezctl start-aio
|
source ~/.bashrc
|
||||||
|
dk ezctl start-aio
|
||||||
```
|
```
|
||||||
|
|
||||||
(3) Add two worker nodes
|
(3) Add two worker nodes
|
||||||
|
|
||||||
```
|
```
|
||||||
ssh-copy-id ${worker1_ip}
|
ssh-copy-id ${worker1_ip}
|
||||||
ssh ${worker1_ip} ln -s /usr/bin/python3 /usr/bin/python
|
dk ezctl add-node default ${worker1_ip}
|
||||||
docker exec -it kubeasz ezctl add-node default ${worker1_ip}
|
|
||||||
ssh-copy-id ${worker2_ip}
|
ssh-copy-id ${worker2_ip}
|
||||||
ssh ${worker2_ip} ln -s /usr/bin/python3 /usr/bin/python
|
dk ezctl add-node default ${worker2_ip}
|
||||||
docker exec -it kubeasz ezctl add-node default ${worker2_ip}
|
|
||||||
```
|
```
|
||||||
|
|
||||||
## Run Conformance Test
|
## Run Conformance Test
|
||||||
|
@ -77,16 +75,12 @@ The standard tool for running these tests is
|
||||||
regularly built and kept up to date to execute against all
|
regularly built and kept up to date to execute against all
|
||||||
currently supported versions of kubernetes.
|
currently supported versions of kubernetes.
|
||||||
|
|
||||||
Download a [binary release](https://github.com/heptio/sonobuoy/releases) of the CLI, or build it yourself by running:
|
Download a [binary release](https://github.com/heptio/sonobuoy/releases) of the CLI
|
||||||
|
|
||||||
```
|
|
||||||
$ go get -u -v github.com/heptio/sonobuoy
|
|
||||||
```
|
|
||||||
|
|
||||||
Deploy a Sonobuoy pod to your cluster with:
|
Deploy a Sonobuoy pod to your cluster with:
|
||||||
|
|
||||||
```
|
```
|
||||||
$ sonobuoy run --mode=certified-conformance
|
$ sonobuoy run --plugin-env=e2e.E2E_EXTRA_ARGS="--ginkgo.v" --mode=certified-conformance
|
||||||
```
|
```
|
||||||
|
|
||||||
**NOTE:** You can run the command synchronously by adding the flag `--wait` but be aware that running the Conformance tests can take an hour or more.
|
**NOTE:** You can run the command synchronously by adding the flag `--wait` but be aware that running the Conformance tests can take an hour or more.
|
||||||
|
|
|
@ -46,9 +46,6 @@ ezctl backup k8s-01
|
||||||
# ssh 免密码登录
|
# ssh 免密码登录
|
||||||
$ ssh-copy-id 192.168.1.11
|
$ ssh-copy-id 192.168.1.11
|
||||||
|
|
||||||
# 部分操作系统需要配置python软链接
|
|
||||||
$ ssh 192.168.1.11 ln -s /usr/bin/python3 /usr/bin/python
|
|
||||||
|
|
||||||
# 新增节点
|
# 新增节点
|
||||||
$ ezctl add-etcd test-k8s 192.168.1.11
|
$ ezctl add-etcd test-k8s 192.168.1.11
|
||||||
```
|
```
|
||||||
|
|
|
@ -20,9 +20,6 @@
|
||||||
# ssh 免密码登录
|
# ssh 免密码登录
|
||||||
$ ssh-copy-id 192.168.1.11
|
$ ssh-copy-id 192.168.1.11
|
||||||
|
|
||||||
# 部分操作系统需要配置python软链接
|
|
||||||
$ ssh 192.168.1.11 ln -s /usr/bin/python3 /usr/bin/python
|
|
||||||
|
|
||||||
# 新增节点
|
# 新增节点
|
||||||
$ ezctl add-master test-k8s 192.168.1.11
|
$ ezctl add-master test-k8s 192.168.1.11
|
||||||
|
|
||||||
|
|
|
@ -22,9 +22,6 @@
|
||||||
# ssh 免密码登录
|
# ssh 免密码登录
|
||||||
$ ssh-copy-id 192.168.1.11
|
$ ssh-copy-id 192.168.1.11
|
||||||
|
|
||||||
# 部分操作系统需要配置python软链接
|
|
||||||
$ ssh 192.168.1.11 ln -s /usr/bin/python3 /usr/bin/python
|
|
||||||
|
|
||||||
# 新增节点
|
# 新增节点
|
||||||
$ ezctl add-node test-k8s 192.168.1.11
|
$ ezctl add-node test-k8s 192.168.1.11
|
||||||
|
|
||||||
|
@ -50,7 +47,6 @@ $ kubectl get pod -n kube-system
|
||||||
|
|
||||||
``` bash
|
``` bash
|
||||||
$ ssh-copy-id -p 10022 192.168.2.1
|
$ ssh-copy-id -p 10022 192.168.2.1
|
||||||
$ ssh -p10022 192.168.2.1 ln -s /usr/bin/python3 /usr/bin/python
|
|
||||||
$ ezctl add-node test-k8s 192.168.2.1 ansible_ssh_port=10022
|
$ ezctl add-node test-k8s 192.168.2.1 ansible_ssh_port=10022
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
@ -50,9 +50,6 @@
|
||||||
``` bash
|
``` bash
|
||||||
#$IP为所有节点地址包括自身,按照提示输入yes 和root密码
|
#$IP为所有节点地址包括自身,按照提示输入yes 和root密码
|
||||||
ssh-copy-id $IP
|
ssh-copy-id $IP
|
||||||
|
|
||||||
# 为每个节点设置python软链接
|
|
||||||
ssh $IP ln -s /usr/bin/python3 /usr/bin/python
|
|
||||||
```
|
```
|
||||||
|
|
||||||
### 4.在部署节点编排k8s安装
|
### 4.在部署节点编排k8s安装
|
||||||
|
|
|
@ -38,30 +38,13 @@ apt install iptables -y
|
||||||
``` bash
|
``` bash
|
||||||
# 修改使用dnf包管理
|
# 修改使用dnf包管理
|
||||||
sed -i 's/package/dnf/g' /etc/kubeasz/roles/prepare/tasks/redhat.yml
|
sed -i 's/package/dnf/g' /etc/kubeasz/roles/prepare/tasks/redhat.yml
|
||||||
|
|
||||||
# 指定python版本,xxxx为集群名
|
|
||||||
source ~/.bashrc
|
|
||||||
dk ezctl setup xxxx all -e ansible_python_interpreter=/usr/bin/python3
|
|
||||||
```
|
|
||||||
|
|
||||||
## Anolis
|
|
||||||
|
|
||||||
- Anolis OS 8.x RHCK:需要指定python版本
|
|
||||||
- Anolis OS 8.x ANCK:需要指定python版本
|
|
||||||
|
|
||||||
``` bash
|
|
||||||
source ~/.bashrc
|
|
||||||
dk ezctl setup xxxx all -e ansible_python_interpreter=/usr/bin/python3
|
|
||||||
```
|
```
|
||||||
|
|
||||||
## openSUSE
|
## openSUSE
|
||||||
|
|
||||||
- openSUSE Leap 15.4:需要安装iptables和指定python版本
|
- openSUSE Leap 15.4:需要安装iptables
|
||||||
|
|
||||||
``` bash
|
``` bash
|
||||||
zypper install iptables
|
zypper install iptables
|
||||||
ln -s /usr/sbin/iptables /sbin/iptables
|
ln -s /usr/sbin/iptables /sbin/iptables
|
||||||
|
|
||||||
source ~/.bashrc
|
|
||||||
dk ezctl setup xxxx all -e ansible_python_interpreter=/usr/bin/python3
|
|
||||||
```
|
```
|
||||||
|
|
Loading…
Reference in New Issue