Skip to content

Commit

Permalink
Set Host header to readiness probe
Browse files Browse the repository at this point in the history
  • Loading branch information
AMecea committed Jul 31, 2020
1 parent dd0ccca commit 9ca07ef
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pkg/internal/wordpress/pod_template.go
Original file line number Diff line number Diff line change
Expand Up @@ -507,6 +507,12 @@ func (wp *Wordpress) readinessProbe() *corev1.Probe {
HTTPGet: &corev1.HTTPGetAction{
Path: "/",
Port: intstr.FromInt(InternalHTTPPort),
HTTPHeaders: []corev1.HTTPHeader{
{
Name: "Host",
Value: wp.MainDomain(),
},
},
},
},
FailureThreshold: 3,
Expand Down

0 comments on commit 9ca07ef

Please sign in to comment.