Skip to content

Commit 05a4ab1

Browse files
Remove hostPort field from the liveness probe examples to align with Kubernetes best practices.
1 parent 9bf997a commit 05a4ab1

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

content/en/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,6 @@ For example:
294294
ports:
295295
- name: liveness-port
296296
containerPort: 8080
297-
hostPort: 8080
298297

299298
livenessProbe:
300299
httpGet:
@@ -318,7 +317,6 @@ So, the previous example would become:
318317
ports:
319318
- name: liveness-port
320319
containerPort: 8080
321-
hostPort: 8080
322320
323321
livenessProbe:
324322
httpGet:
@@ -542,7 +540,6 @@ spec:
542540
ports:
543541
- name: liveness-port
544542
containerPort: 8080
545-
hostPort: 8080
546543
547544
livenessProbe:
548545
httpGet:

0 commit comments

Comments
 (0)