Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error Liveness probe failed and Readiness probe failed in chartversion akv2k8s-2.4.2 #114

Open
Didjacome opened this issue Jun 29, 2023 · 2 comments

Comments

@Didjacome
Copy link

Good evening everybody, I hope you are well

I have a problem installing the CHART akv2k8s-2.4.2 version, whenever it is installed the controller pod goes into the CrashLoopBackOff state because of its Liveness probe and Readiness probe settings and this interferes even in the controller scale

To be able to reproduce the error:

helm repo add spv-charts https://charts.spvapi.no
helm repo update
helm upgrade --namespace akv2k8s --install --set global.logLevel=debug --set global.logFormat=text my-akv2k8s-operators spv-charts/akv2k8s

I verified that this update is based on this commit 82f413c

but the error is because the application either doesn't know the /healthz path, or it doesn't listen to port 9000

Error:

Events:
  Type     Reason     Age                   From               Message
  ----     ------     ----                  ----               -------
  Normal   Scheduled  57m                   default-scheduler  Successfully assigned akv2k8s/my-akv2k8s-operators-controller-XXXXXXX-dtwqv to aks-nodepoll-XXXXX-vmssXXXXXXXX
  Normal   Pulling    57m                   kubelet            Pulling image "spvest/azure-keyvault-controller:1.4.0"
  Normal   Pulled     56m                   kubelet            Successfully pulled image "spvest/azure-keyvault-controller:1.4.0" in 3.200184061s (33.273565694s including waiting)
  Normal   Killing    56m                   kubelet            Container controller failed liveness probe, will be restarted
  Normal   Created    56m (x2 over 56m)     kubelet            Created container controller
  Normal   Started    56m (x2 over 56m)     kubelet            Started container controller
  Normal   Pulled     56m                   kubelet            Container image "spvest/azure-keyvault-controller:1.4.0" already present on machine
  Warning  Unhealthy  55m (x5 over 56m)     kubelet            Liveness probe failed: Get "http://192.168.0.10:9000/healthz": dial tcp 192.168.0.10:9000: connect: connection refused
  Warning  Unhealthy  7m6s (x135 over 56m)  kubelet            Readiness probe failed: Get "http://192.168.0.10:9000/healthz": dial tcp 192.168.0.10:9000: connect: connection refused
@jpwig
Copy link

jpwig commented Jun 29, 2023

I'm having the same issue.

image

@Aleksey-Kudryavtsev
Copy link

Aleksey-Kudryavtsev commented Jun 29, 2023

I'm seeing the same issue
Had to add

global:
  metrics:
    enabled: true

in values.yaml to fix it

Looks like it should not add the probes if this is disabled or the probes should be independent of metrics and enabled by default.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants