Skip to content
This repository has been archived by the owner on Mar 16, 2024. It is now read-only.

Commit

Permalink
Default probe for router should be tcp
Browse files Browse the repository at this point in the history
Signed-off-by: Darren Shepherd <darren@acorn.io>
  • Loading branch information
ibuildthecloud committed Oct 25, 2022
1 parent c2e5499 commit ef23e77
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions pkg/controller/appdefinition/router.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,7 @@ func toRouter(appInstance *v1.AppInstance, routerName string, router v1.Router)
},
ReadinessProbe: &corev1.Probe{
ProbeHandler: corev1.ProbeHandler{
HTTPGet: &corev1.HTTPGetAction{
Path: "/",
TCPSocket: &corev1.TCPSocketAction{
Port: intstr.IntOrString{
IntVal: 8080,
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,7 @@ spec:
name: http
protocol: TCP
readinessProbe:
httpGet:
path: /
tcpSocket:
port: 8080
resources: {}
volumeMounts:
Expand Down

0 comments on commit ef23e77

Please sign in to comment.