From 7e4e475611f6fecc54ea4ce703d31f5c2df59a17 Mon Sep 17 00:00:00 2001 From: Sergey Shevelev Date: Tue, 22 Dec 2020 13:58:55 -0500 Subject: [PATCH] Fix examples for http probe headers --- ...igure-liveness-readiness-startup-probes.md | 24 ++++++++++++------- 1 file changed, 16 insertions(+), 8 deletions(-) diff --git a/content/en/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes.md b/content/en/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes.md index 5896ab8357..42e2e3d468 100644 --- a/content/en/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes.md +++ b/content/en/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes.md @@ -389,24 +389,32 @@ You can override the default headers by defining `.httpHeaders` for the probe; f ```yaml livenessProbe: - httpHeaders: - Accept: application/json + httpGet: + httpHeaders: + - name: Accept + value: application/json startupProbe: - httpHeaders: - User-Agent: MyUserAgent + httpGet: + httpHeaders: + - name: User-Agent + value: MyUserAgent ``` You can also remove these two headers by defining them with an empty value. ```yaml livenessProbe: - httpHeaders: - Accept: "" + httpGet: + httpHeaders: + - name: Accept + value: "" startupProbe: - httpHeaders: - User-Agent: "" + httpGet: + httpHeaders: + - name: User-Agent + value: "" ``` ### TCP probes