Remove hostPort field from the liveness probe examples to align with Kubernetes best practices.

This commit is contained in:
Aditya Samant 2024-01-10 08:59:02 +05:30
parent 9bf997add3
commit 05a4ab128a
1 changed files with 0 additions and 3 deletions

View File

@ -294,7 +294,6 @@ For example:
ports: ports:
- name: liveness-port - name: liveness-port
containerPort: 8080 containerPort: 8080
hostPort: 8080
livenessProbe: livenessProbe:
httpGet: httpGet:
@ -318,7 +317,6 @@ So, the previous example would become:
ports: ports:
- name: liveness-port - name: liveness-port
containerPort: 8080 containerPort: 8080
hostPort: 8080
livenessProbe: livenessProbe:
httpGet: httpGet:
@ -542,7 +540,6 @@ spec:
ports: ports:
- name: liveness-port - name: liveness-port
containerPort: 8080 containerPort: 8080
hostPort: 8080
livenessProbe: livenessProbe:
httpGet: httpGet: