sonic-buildimage/src/sonic-ctrmgrd
mssonicbld 74598e568a
Add health check probe for k8s upgrade containers. (#15223) (#15867)
#### Why I did it
After k8s upgrade a container, k8s can only know the container is running, don't know the service's status inside container. So we need a probe inside container, k8s will call the probe to check whether the container is really ready.
##### Work item tracking
- Microsoft ADO **(number only)**: 22453004
#### How I did it
Add a health check probe inside config engine container, the probe will check whether the start service exit normally or not if the start service exists and call the python script to do container self-related specific checks if the script is there. The python script should be implemented by feature owner if it's needed.

more details: [design doc](https://github.com/sonic-net/SONiC/blob/master/doc/kubernetes/health-check.md)
#### How to verify it
Check path /usr/bin/readiness_probe.sh inside container.

#### Which release branch to backport (provide reason below if selected)

- [ ] 201811
- [ ] 201911
- [ ] 202006
- [ ] 202012
- [ ] 202106
- [ ] 202111
- [x] 202205
- [x] 202211

#### Tested branch (Please provide the tested image version)
- [x] 20220531.28

Co-authored-by: lixiaoyuner <35456895+lixiaoyuner@users.noreply.github.com>
2023-07-19 16:11:13 +08:00
..
ctrmgr Add health check probe for k8s upgrade containers. (#15223) (#15867) 2023-07-19 16:11:13 +08:00
tests Move k8s script to docker-config-engine (#14788) (#15768) 2023-07-17 23:21:01 +08:00
.gitignore Improve feature mode switch process (#12188) 2022-11-02 17:24:32 +08:00
pytest.ini First cut image update for kubernetes support. (#5421) 2020-12-22 08:01:33 -08:00
README.rst First cut image update for kubernetes support. (#5421) 2020-12-22 08:01:33 -08:00
setup.cfg First cut image update for kubernetes support. (#5421) 2020-12-22 08:01:33 -08:00
setup.py [sonic-py-common] Add 'general' module with load_module_from_source() function (#7167) 2021-04-08 08:29:28 -07:00

"
This Package contains modules required for remote container management.
"