Skip to content

Commit

Permalink
Deployment probe fixes (knative#13885)
Browse files Browse the repository at this point in the history
* probe fixes

* fixes

* fix threshold

* cleanup
  • Loading branch information
skonto authored and ReToCode committed Apr 27, 2023
1 parent 0a03e39 commit dde65c4
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
1 change: 1 addition & 0 deletions cmd/domain-mapping-webhook/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ func main() {
SecretName: "domainmapping-webhook-certs",
})

ctx = sharedmain.WithHealthProbesDisabled(ctx)
sharedmain.WebhookMainWithContext(ctx, "domainmapping-webhook",
certificates.NewController,
newDefaultingAdmissionController,
Expand Down
1 change: 1 addition & 0 deletions cmd/webhook/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,7 @@ func main() {
SecretName: "webhook-certs",
})

ctx = sharedmain.WithHealthProbesDisabled(ctx)
sharedmain.WebhookMainWithContext(ctx, "webhook",
certificates.NewController,
newDefaultingAdmissionController,
Expand Down
4 changes: 2 additions & 2 deletions config/core/deployments/controller.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -95,14 +95,14 @@ spec:
port: probes
scheme: HTTP
periodSeconds: 5
failureThreshold: 5
failureThreshold: 6
readinessProbe:
httpGet:
path: /readiness
port: probes
scheme: HTTP
periodSeconds: 5
failureThreshold: 5
failureThreshold: 3

ports:
- name: metrics
Expand Down
4 changes: 2 additions & 2 deletions config/core/deployments/domainmapping-controller.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -91,14 +91,14 @@ spec:
port: probes
scheme: HTTP
periodSeconds: 5
failureThreshold: 5
failureThreshold: 6
readinessProbe:
httpGet:
path: /readiness
port: probes
scheme: HTTP
periodSeconds: 5
failureThreshold: 5
failureThreshold: 3

ports:
- name: metrics
Expand Down

0 comments on commit dde65c4

Please sign in to comment.