Skip to content

Commit

Permalink
Add missing probes (#1029)
Browse files Browse the repository at this point in the history
* add missing probes

* fixes

* cleanup
  • Loading branch information
skonto authored Apr 25, 2023
1 parent cb2d2e7 commit 28aa7dc
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 1 deletion.
1 change: 1 addition & 0 deletions cmd/kourier/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,6 @@ func main() {
}

ctx := informerfiltering.GetContextWithFilteringLabelSelector(signals.NewContext())
ctx = sharedmain.WithHealthProbesDisabled(ctx)
sharedmain.MainWithContext(ctx, config.ControllerName, kourierIngressController.NewController)
}
7 changes: 7 additions & 0 deletions config/300-controller.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,13 @@ spec:
readinessProbe:
exec:
command: ["/ko-app/kourier", "-probe-addr=:18000"]
periodSeconds: 10
failureThreshold: 3
livenessProbe:
exec:
command: [ "/ko-app/kourier", "-probe-addr=:18000" ]
periodSeconds: 10
failureThreshold: 6
securityContext:
allowPrivilegeEscalation: false
readOnlyRootFilesystem: true
Expand Down
12 changes: 12 additions & 0 deletions config/300-gateway.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,18 @@ spec:
scheme: HTTP
initialDelaySeconds: 10
periodSeconds: 5
failureThreshold: 3
livenessProbe:
httpGet:
httpHeaders:
- name: Host
value: internalkourier
path: /ready
port: 8081
scheme: HTTP
initialDelaySeconds: 10
periodSeconds: 5
failureThreshold: 6
resources:
requests:
cpu: 200m
Expand Down
2 changes: 1 addition & 1 deletion pkg/generator/status_vhost.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import (
)

// Generates an internal virtual host that signals that the Envoy instance has
// been configured, this endpoint is used by the kubernetes readiness probe.
// been configured, this endpoint is used by the kubernetes readiness, liveness probes.
func statusVHost() *route.VirtualHost {
vhost := envoy.NewVirtualHost(
config.InternalKourierDomain,
Expand Down

0 comments on commit 28aa7dc

Please sign in to comment.