Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add health check probe for k8s upgrade containers. (#15223) #15789

Commits on Jul 11, 2023

  1. Add health check probe for k8s upgrade containers. (sonic-net#15223)

    #### 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
    lixiaoyuner committed Jul 11, 2023
    Configuration menu
    Copy the full SHA
    d199f75 View commit details
    Browse the repository at this point in the history