Commit f9670c7
committed
OCPBUGS-32510: change metrics-server probes for SNO
This change switches the metrics-server's readiness probe to use the
`/livez` endpoint instead of `/readyz` for single-node deployments.
It also adds a startup probe using the same characteristics as the
default readiness probe to ensure that the pod reports ready only when
it has gathered enough samples from kubelet.
By default, the `/readyz` endpoint is used to assert the component
readiness. This endpoint returns success when the metrics-server has
metric samples over 2 intervals (e.g. it has scraped at least one
kubelet twice).
In single-node deployments, it happens sometimes (especially in
end-to-end tests) that the kubelet fails to respond in a timely fashion
due to contention in cAdvisor, leading to a delayed readiness (and test
failures). To workaround the issue, we use the `/livez` endpoint in this
mode.
The long-term plan is to switch resource metrics from cAdvisor to the
CRI stats API (currently an alpha feature). Once it happens, we can
remove this change.
Signed-off-by: Simon Pasquier <[email protected]>1 parent f7eb1eb commit f9670c7
2 files changed
+87
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2053 | 2053 | | |
2054 | 2054 | | |
2055 | 2055 | | |
| 2056 | + | |
| 2057 | + | |
| 2058 | + | |
| 2059 | + | |
| 2060 | + | |
| 2061 | + | |
| 2062 | + | |
| 2063 | + | |
| 2064 | + | |
| 2065 | + | |
| 2066 | + | |
| 2067 | + | |
| 2068 | + | |
| 2069 | + | |
| 2070 | + | |
| 2071 | + | |
| 2072 | + | |
| 2073 | + | |
2056 | 2074 | | |
2057 | 2075 | | |
2058 | 2076 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2856 | 2856 | | |
2857 | 2857 | | |
2858 | 2858 | | |
| 2859 | + | |
| 2860 | + | |
| 2861 | + | |
| 2862 | + | |
| 2863 | + | |
| 2864 | + | |
| 2865 | + | |
| 2866 | + | |
| 2867 | + | |
| 2868 | + | |
| 2869 | + | |
| 2870 | + | |
| 2871 | + | |
| 2872 | + | |
| 2873 | + | |
| 2874 | + | |
| 2875 | + | |
| 2876 | + | |
| 2877 | + | |
| 2878 | + | |
| 2879 | + | |
| 2880 | + | |
| 2881 | + | |
| 2882 | + | |
| 2883 | + | |
| 2884 | + | |
| 2885 | + | |
| 2886 | + | |
| 2887 | + | |
| 2888 | + | |
| 2889 | + | |
| 2890 | + | |
| 2891 | + | |
| 2892 | + | |
| 2893 | + | |
| 2894 | + | |
| 2895 | + | |
| 2896 | + | |
| 2897 | + | |
| 2898 | + | |
| 2899 | + | |
| 2900 | + | |
| 2901 | + | |
| 2902 | + | |
| 2903 | + | |
| 2904 | + | |
| 2905 | + | |
| 2906 | + | |
| 2907 | + | |
| 2908 | + | |
| 2909 | + | |
| 2910 | + | |
| 2911 | + | |
| 2912 | + | |
| 2913 | + | |
| 2914 | + | |
| 2915 | + | |
| 2916 | + | |
| 2917 | + | |
| 2918 | + | |
| 2919 | + | |
| 2920 | + | |
| 2921 | + | |
| 2922 | + | |
| 2923 | + | |
| 2924 | + | |
| 2925 | + | |
| 2926 | + | |
| 2927 | + | |
2859 | 2928 | | |
2860 | 2929 | | |
2861 | 2930 | | |
| |||
0 commit comments