From 9ca07effc1b633091bbd8ac708d9e7ae7a6e62ab Mon Sep 17 00:00:00 2001 From: amecea Date: Fri, 31 Jul 2020 18:37:36 +0300 Subject: [PATCH] Set Host header to readiness probe --- pkg/internal/wordpress/pod_template.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkg/internal/wordpress/pod_template.go b/pkg/internal/wordpress/pod_template.go index 5a21b8cc..3bc66596 100644 --- a/pkg/internal/wordpress/pod_template.go +++ b/pkg/internal/wordpress/pod_template.go @@ -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,