Updated the 'Installing Kubernetes with Kubespray'

1. Add the OS supported by the current version of Kubespray.
   [ref 1: kubespray](https://github.com/kubernetes-sigs/kubespray/blob/master/README.md#deploy-a-production-ready-kubernetes-cluster)

2. Supplement the features provided by the Kubespray overview.
   [ref 2: kubespray](https://github.com/kubernetes-sigs/kubespray/blob/master/README.md#deploy-a-production-ready-kubernetes-cluster)

3. Update Supported Linux Distributions.
   [ref 3: Supported Linux Distributions](https://github.com/kubernetes-sigs/kubespray#supported-linux-distributions)

4. Improve the description in '(1/5) Meet the underlay requirements'
   [ref 4: Requirements](https://github.com/kubernetes-sigs/kubespray/blob/master/README.md#requirements)

5. Add whatsnext.

Signed-off-by: ydFu <ader.ydfu@gmail.com>
This commit is contained in:
ydFu
2022-07-18 16:34:48 +08:00
parent ff2fbee6f7
commit f8d84cedce
@@ -8,19 +8,24 @@ weight: 30
This quickstart helps to install a Kubernetes cluster hosted on GCE, Azure, OpenStack, AWS, vSphere, Equinix Metal (formerly Packet), Oracle Cloud Infrastructure (Experimental) or Baremetal with [Kubespray](https://github.com/kubernetes-sigs/kubespray). This quickstart helps to install a Kubernetes cluster hosted on GCE, Azure, OpenStack, AWS, vSphere, Equinix Metal (formerly Packet), Oracle Cloud Infrastructure (Experimental) or Baremetal with [Kubespray](https://github.com/kubernetes-sigs/kubespray).
Kubespray is a composition of [Ansible](https://docs.ansible.com/) playbooks, [inventory](https://github.com/kubernetes-sigs/kubespray/blob/master/docs/ansible.md), provisioning tools, and domain knowledge for generic OS/Kubernetes clusters configuration management tasks. Kubespray provides: Kubespray is a composition of [Ansible](https://docs.ansible.com/) playbooks, [inventory](https://github.com/kubernetes-sigs/kubespray/blob/master/docs/ansible.md#inventory), provisioning tools, and domain knowledge for generic OS/Kubernetes clusters configuration management tasks.
* a highly available cluster Kubespray provides:
* composable attributes * Highly available cluster.
* support for most popular Linux distributions * Composable (Choice of the network plugin for instance).
* Ubuntu 16.04, 18.04, 20.04, 22.04 * Supports most popular Linux distributions:
* CentOS/RHEL/Oracle Linux 7, 8 - Flatcar Container Linux by Kinvolk
* Debian Buster, Jessie, Stretch, Wheezy - Debian Bullseye, Buster, Jessie, Stretch
* Fedora 34, 35 - Ubuntu 16.04, 18.04, 20.04, 22.04
* Fedora CoreOS - CentOS/RHEL 7, 8
* openSUSE Leap 15 - Fedora 34, 35
* Flatcar Container Linux by Kinvolk - Fedora CoreOS
* continuous integration tests - openSUSE Leap 15.x/Tumbleweed
- Oracle Linux 7, 8
- Alma Linux 8
- Rocky Linux 8
- Amazon Linux 2
* Continuous integration tests.
To choose a tool which best fits your use case, read [this comparison](https://github.com/kubernetes-sigs/kubespray/blob/master/docs/comparisons.md) to To choose a tool which best fits your use case, read [this comparison](https://github.com/kubernetes-sigs/kubespray/blob/master/docs/comparisons.md) to
[kubeadm](/docs/reference/setup-tools/kubeadm/) and [kops](/docs/setup/production-environment/tools/kops/). [kubeadm](/docs/reference/setup-tools/kubeadm/) and [kops](/docs/setup/production-environment/tools/kops/).
@@ -33,13 +38,13 @@ To choose a tool which best fits your use case, read [this comparison](https://g
Provision servers with the following [requirements](https://github.com/kubernetes-sigs/kubespray#requirements): Provision servers with the following [requirements](https://github.com/kubernetes-sigs/kubespray#requirements):
* **Ansible v2.11 and python-netaddr are installed on the machine that will run Ansible commands** * **Minimum required version of Kubernetes is v1.22**
* **Jinja 2.11 (or newer) is required to run the Ansible Playbooks** * **Ansible v2.11+, Jinja 2.11+ and python-netaddr is installed on the machine that will run Ansible commands**
* The target servers must have access to the Internet in order to pull docker images. Otherwise, additional configuration is required ([See Offline Environment](https://github.com/kubernetes-sigs/kubespray/blob/master/docs/offline-environment.md)) * The target servers must have **access to the Internet** in order to pull docker images. Otherwise, additional configuration is required See ([Offline Environment](https://github.com/kubernetes-sigs/kubespray/blob/master/docs/offline-environment.md))
* The target servers are configured to allow **IPv4 forwarding** * The target servers are configured to allow **IPv4 forwarding**.
* **Your ssh key must be copied** to all the servers in your inventory * If using IPv6 for pods and services, the target servers are configured to allow **IPv6 forwarding**.
* **Firewalls are not managed by kubespray**. You'll need to implement appropriate rules as needed. You should disable your firewall in order to avoid any issues during deployment * The **firewalls are not managed**, you'll need to implement your own rules the way you used to. in order to avoid any issue during deployment you should disable your firewall.
* If kubespray is run from a non-root user account, correct privilege escalation method should be configured in the target servers and the `ansible_become` flag or command parameters `--become` or `-b` should be specified * If kubespray is run from non-root user account, correct privilege escalation method should be configured in the target servers. Then the `ansible_become` flag or command parameters `--become` or `-b` should be specified.
Kubespray provides the following utilities to help provision your environment: Kubespray provides the following utilities to help provision your environment:
@@ -110,11 +115,10 @@ When running the reset playbook, be sure not to accidentally target your product
## Feedback ## Feedback
* Slack Channel: [#kubespray](https://kubernetes.slack.com/messages/kubespray/) (You can get your invite [here](https://slack.k8s.io/)) * Slack Channel: [#kubespray](https://kubernetes.slack.com/messages/kubespray/) (You can get your invite [here](https://slack.k8s.io/)).
* [GitHub Issues](https://github.com/kubernetes-sigs/kubespray/issues) * [GitHub Issues](https://github.com/kubernetes-sigs/kubespray/issues).
## {{% heading "whatsnext" %}} ## {{% heading "whatsnext" %}}
* Check out planned work on Kubespray's [roadmap](https://github.com/kubernetes-sigs/kubespray/blob/master/docs/roadmap.md).
Check out planned work on Kubespray's [roadmap](https://github.com/kubernetes-sigs/kubespray/blob/master/docs/roadmap.md). * Learn more about [Kubespray](https://github.com/kubernetes-sigs/kubespray).