File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ local configMap = k.core.v1.configMap;
99 _config+:: {
1010 prometheus_config_dir: '/etc/$(POD_NAME)' ,
1111 },
12+ local _config = self ._config,
1213
1314 // The '__replica__' label is used by Cortex for deduplication.
1415 prometheus_zero+:: {
@@ -55,8 +56,13 @@ local configMap = k.core.v1.configMap;
5556 prometheus_config_mount:: {},
5657
5758 prometheus_container+:: container.withEnv([
58- container.envType.fromFieldPath('POD_NAME' , 'metadata.name' ),
59- ]),
59+ container.envType.fromFieldPath('POD_NAME' , 'metadata.name' ),
60+ ])
61+ + container.mixin.readinessProbe.httpGet.withPath('%(prometheus_path)s-/ready' % _config)
62+ + container.mixin.readinessProbe.httpGet.withPort(_config.prometheus_port)
63+ + container.mixin.readinessProbe.withInitialDelaySeconds(15 )
64+ + container.mixin.readinessProbe.withTimeoutSeconds(1 )
65+ ,
6066
6167 prometheus_watch_container+:: container.withEnv([
6268 container.envType.fromFieldPath('POD_NAME' , 'metadata.name' ),
You can’t perform that action at this time.
0 commit comments