You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/openshift/pods/health-checks/index.md
+82-65Lines changed: 82 additions & 65 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,17 +4,17 @@
4
4
5
5
A Probe is a diagnostic performed periodically by the kubelet on a Container. To perform a diagnostic, the kubelet calls a Handler implemented by the Container. There are three types of handlers:
6
6
7
-
***ExecAction***: Executes a specified command inside the Container. The diagnostic is considered successful if the command exits with a status code of 0.
7
+
**_ExecAction_**: Executes a specified command inside the Container. The diagnostic is considered successful if the command exits with a status code of 0.
8
8
9
-
***TCPSocketAction***: Performs a TCP check against the Container’s IP address on a specified port. The diagnostic is considered successful if the port is open.
9
+
**_TCPSocketAction_**: Performs a TCP check against the Container’s IP address on a specified port. The diagnostic is considered successful if the port is open.
10
10
11
-
***HTTPGetAction***: Performs an HTTP Get request against the Container’s IP address on a specified port and path. The diagnostic is considered successful if the response has a status code greater than or equal to 200 and less than 400.
11
+
**_HTTPGetAction_**: Performs an HTTP Get request against the Container’s IP address on a specified port and path. The diagnostic is considered successful if the response has a status code greater than or equal to 200 and less than 400.
12
12
13
13
The kubelet can optionally perform and react to three kinds of probes on running Containers:
14
14
15
-
***livenessProbe***: Indicates whether the Container is running. Runs for the lifetime of the Container.
15
+
**_livenessProbe_**: Indicates whether the Container is running. Runs for the lifetime of the Container.
16
16
17
-
***readinessProbe***: Indicates whether the Container is ready to service requests. Only runs at start.
17
+
**_readinessProbe_**: Indicates whether the Container is ready to service requests. Only runs at start.
command: ['sh','-c','i=0; while true; do echo "$i: $(date)"; i=$((i+1)); sleep 5; done']
102
+
- name: count
103
+
image: busybox
104
+
command:
105
+
[
106
+
"sh",
107
+
"-c",
108
+
'i=0; while true; do echo "$i: $(date)"; i=$((i+1)); sleep 5; done',
109
+
]
104
110
```
105
111
106
112
=== "OpenShift"
@@ -133,14 +139,15 @@ Prometheus, a CNCF project, can natively monitor Kubernetes, nodes, and Promethe
133
139
134
140
### Resources
135
141
136
-
**OpenShift**
142
+
=== "OpenShift"
143
+
144
+
[Monitoring Application Health :fontawesome-solid-globe:](https://docs.openshift.com/container-platform/4.13/applications/application-health.html){:target="_blank"}
0 commit comments