Skip to content

livenessProbe deployment issue with httpGet port #5437

@jannevaparanta

Description

@jannevaparanta

If livenessProbe: httpGet: port is set as "8082" the deployment will fail:
Upgrade failed: cannot patch "external-secrets" with kind Deployment: Deployment.apps "external-secrets" is invalid: spec.template.spec.containers[0].livenessProbe.httpGet.port: Invalid value: "8082": must contain at least one letter (a-z)

... and with alphabetical value it affects these two rows, which will end up with failed deployment:
spec:
template:
spec:
containers:
- args:
...
- --live-addr=:8082
livenessProbe:
...
httpGet:
...
port: 8082

I know how to fix it by using 'kubectl edit deployments.apps external-secret', but would be nice if it would accept port number, or used a named port, like:
ports:
...

  • containerPort: 8082
    name: liveness
    protocol: TCP

To Reproduce
Steps to reproduce the behavior:

  1. Terraform helm_release with these values.yaml:
    livenessProbe:
    enabled: true
    spec:
    address: ""
    initialDelaySeconds: 10
    periodSeconds: 20
    timeoutSeconds: 10
    failureThreshold: 3
    successThreshold: 1
    httpGet:
    path: /healthz
    port: "8082"

  2. Kubernetes 1.34 and ESO 0.20.2

Metadata

Metadata

Assignees

Labels

kind/bugCategorizes issue or PR as related to a bug.triage/pending-triageThis issue was not triaged.

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions