gpt4 book ai didi

Kubernetes 探测事件不可见但失败

转载 作者:行者123 更新时间:2023-12-02 11:54:59 25 4
gpt4 key购买 nike

我正在使用 K8S 1.14和 Helm 3.3.1 .
我有一个应用程序 在没有探针的情况下工作 .然后我设置了两个微不足道的探针:

          livenessProbe:
exec:
command:
- ls
- /mnt
initialDelaySeconds: 5
periodSeconds: 5

readinessProbe:
exec:
command:
- ls
- /mnt
initialDelaySeconds: 5
periodSeconds: 5
当我通过 helm upgrade 部署时,命令最终(〜5分钟)失败:
Error: UPGRADE FAILED: release my-app failed, and has been rolled back due to atomic being set: timed out waiting for the condition
但是在事件日志中没有任何探测的痕迹:
5m21s       Normal    ScalingReplicaSet         deployment/my-app     Scaled up replica set my-app-7 to 1
5m21s Normal Scheduled pod/my-app-7-6 Successfully assigned default/my-app-7-6 to gke-foo-testing-foo-testing-node-po-111-r0cu
5m21s Normal LoadBalancerNegNotReady pod/my-app-7-6 Waiting for pod to become healthy in at least one of the NEG(s): [k8s1-222-default-my-app-80-54]
5m21s Normal SuccessfulCreate replicaset/my-app-7 Created pod: my-app-7-6
5m20s Normal Pulling pod/my-app-7-6 Pulling image "my-registry/my-app:v0.1"
5m20s Normal Pulled pod/my-app-7-6 Successfully pulled image "my-registry/my-app:v0.1"
5m20s Normal Created pod/my-app-7-6 Created container my-app
5m20s Normal Started pod/my-app-7-6 Started container my-app
5m15s Normal Attach service/my-app Attach 1 network endpoint(s) (NEG "k8s1-222-default-my-app-80-54" in zone "europe-west3-a")
19s Normal ScalingReplicaSet deployment/my-app Scaled down replica set my-app-7 to 0
19s Normal SuccessfulDelete replicaset/my-app-7 Deleted pod: my-app-7-6
19s Normal Killing pod/my-app-7-6 Stopping container my-app

因此,问题是:探测器在做什么以及在哪里?

最佳答案

尝试删除 helm 然后重新应用它:helm del --purge <APPNAME>另外,您使用的是哪个 helm 版本?尝试升级到 v3.2.1 ,有一个 Unresolved 问题试图通过以前失败的升级来修复此事件:https://github.com/helm/helm/issues/5939

关于Kubernetes 探测事件不可见但失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/64393383/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com