简体   繁体   中英

Liveness Probes Control With Sctp

Kubernetes use tcp, http and command for liveness probes but i want to use sctp. How can i use sctp with liveness probes for control my page?

For not supported protocols you can use the exec probe. You just have to provide a shell script, that can check if the application is running. The script has to exit with code 0 to be considered successful.

...
          livenessProbe: 
            exec:
              command:
                - /scripts/check-sctp-up.sh
...

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM