没有不值得去解决的问题,也没有不值得去学习的技术!

Containers Fail to Start After Adding Health Checks in Rancher 2.3, Even Though Health Checks Succeed Inside the Container

After adding the health check and upgrading, the workload remained stuck in the Upgrading state.

1. After removing the health check, I started the container and successfully called the health check endpoint from inside the container. See Figure 1.

After removing the health check, I started the container and successfully called the health check endpoint from inside the container.
Figure 1
Plaintext

[root@admin-66bbbb996f-4vfj5 /]# curl http://localhost:81/status
pool:                 www
process manager:      static
start time:           22/Jun/2021:13:17:53 +0800
start since:          40
accepted conn:        1
listen queue:         0
max listen queue:     0
listen queue len:     128
idle processes:       19
active processes:     1
total processes:      20
max active processes: 1
max children reached: 0
slow requests:        0
[root@admin-66bbbb996f-4vfj5 /]#

2. After adding the health check and upgrading, the workload remained stuck in the Upgrading state. See Figure 2.

After adding the health check and upgrading, the workload remained stuck in the Upgrading state.
Figure 2

3. I checked all Pods in the current workload. The newly created container was in the ContainerCreating state. See Figure 3.

I checked all Pods in the current workload. The newly created container was in the ContainerCreating state.
Figure 3

4. The health check configuration used during the upgrade is shown below. See Figure 4.

The health check configuration used during the upgrade is shown below.
Figure 4

5. After setting all health checks to none, the upgrade succeeded. See Figure 5.

After setting all health checks to none, the upgrade succeeded.
Figure 5

6. I force-deleted all Pods in the current workload. See Figure 6.

I force-deleted all Pods in the current workload.
Figure 6

7. After adding the health check back, I upgraded again, and the upgrade succeeded.

关于作者 · 持续学习与技术实践

我是一名拥有 15 年以上开发经验的技术从业者,自 2013 年起持续运营个人技术博客,记录工作与个人项目中遇到的真实问题,以及解决问题过程中的探索、实践和思考。

除了技术写作,我也在持续开发和维护自己的独立项目,探索新技术和新工具在实际场景中的应用。我始终相信,没有不值得去解决的问题,也没有不值得去学习的技术。

如果这篇文章对你有所帮助,欢迎浏览博客中的其他文章,也欢迎交流技术经验与想法。

关于我  ·  GitHub  ·  邮件联系