Azure kubernetes 服务节点池升级和补丁
Azure kubernetes service node pool upgrades & patches
我对 AKS 节点池升级和修补有些困惑。能否请您澄清一下。
我有一个AKS节点池,有4个节点,所以现在我只想升级节点池中两个节点的kubernetes版本。可能吗?
如果可以在两个节点升级,那么我们如何升级剩下的两个节点?以及我们如何找出哪两个节点使用旧的 kubernetes 版本而不是最新的 kubernetes 版本
升级过程中,是否会创建两个最新kubernetes版本的新节点,然后删除节点池中的旧节点?
实际上azure会自动在节点上应用补丁,但是它会创建带有新补丁的新节点并删除旧节点吗?
- 不,创建另一个具有 2 个节点的池并在那里测试您的应用程序。或创建另一个集群。您可以使用
kubectl get nodes
找到节点版本
- 它逐渐逐个更新节点(默认)。你可以改变这些。 Spot 实例无法升级。
- 是的,将使用最新的补丁版本图像
1。根据文档:
所以 提到的额外 node-pool 的方法。
- 附加信息:
AKS 中有一个额外的进程可让您升级群集。 升级通常是转移到更新版本的 Kubernetes,而不仅仅是应用节点安全更新。
AKS 升级执行以下操作:
- 部署了一个新节点,并应用了最新的安全更新和 Kubernetes 版本。
- 一个旧节点被封锁并排空。
- Pods 被安排在新节点上。
- 旧节点被删除。
2。默认情况下,AKS 使用一个额外的节点来配置升级。
你可以通过增加--max-surge parameter
来控制这个过程
To speed up the node image upgrade process, you can upgrade your node images using a customizable node surge value.
3。 Security and kernel updates to Linux nodes:
In an AKS cluster, your Kubernetes nodes run as Azure virtual machines (VMs). These Linux-based VMs use an Ubuntu image, with the OS configured to automatically check for updates every night. If security or kernel updates are available, they are automatically downloaded and installed.
Some security updates, such as kernel updates, require a node reboot to finalize the process. A Linux node that requires a reboot creates a file named /var/run/reboot-required. This reboot process doesn't happen automatically.
我对 AKS 节点池升级和修补有些困惑。能否请您澄清一下。
我有一个AKS节点池,有4个节点,所以现在我只想升级节点池中两个节点的kubernetes版本。可能吗?
如果可以在两个节点升级,那么我们如何升级剩下的两个节点?以及我们如何找出哪两个节点使用旧的 kubernetes 版本而不是最新的 kubernetes 版本
升级过程中,是否会创建两个最新kubernetes版本的新节点,然后删除节点池中的旧节点?
实际上azure会自动在节点上应用补丁,但是它会创建带有新补丁的新节点并删除旧节点吗?
- 不,创建另一个具有 2 个节点的池并在那里测试您的应用程序。或创建另一个集群。您可以使用
kubectl get nodes
找到节点版本
- 它逐渐逐个更新节点(默认)。你可以改变这些。 Spot 实例无法升级。
- 是的,将使用最新的补丁版本图像
1。根据文档:
所以
- 附加信息:
AKS 中有一个额外的进程可让您升级群集。 升级通常是转移到更新版本的 Kubernetes,而不仅仅是应用节点安全更新。 AKS 升级执行以下操作:
- 部署了一个新节点,并应用了最新的安全更新和 Kubernetes 版本。
- 一个旧节点被封锁并排空。
- Pods 被安排在新节点上。
- 旧节点被删除。
2。默认情况下,AKS 使用一个额外的节点来配置升级。
你可以通过增加--max-surge parameter
来控制这个过程To speed up the node image upgrade process, you can upgrade your node images using a customizable node surge value.
3。 Security and kernel updates to Linux nodes:
In an AKS cluster, your Kubernetes nodes run as Azure virtual machines (VMs). These Linux-based VMs use an Ubuntu image, with the OS configured to automatically check for updates every night. If security or kernel updates are available, they are automatically downloaded and installed.
Some security updates, such as kernel updates, require a node reboot to finalize the process. A Linux node that requires a reboot creates a file named /var/run/reboot-required. This reboot process doesn't happen automatically.