Get the App
SLTechnology News&Howtos  ›  Servers  › 

The usage of httpget Survival Detection in K8s

Shulou Source: shulou.com Published: 2022-06-03 06:07:58 10月03日 Update

Today, the editor will bring you an article that introduces the use of httpget survival detection in K8s. The editor thinks it is very practical, so I will share it for you as a reference. Let's follow the editor and have a look.

ApiVersion: v1kind: Podmetadata: name: liveness-httpget namespace: defaultspec: containers:-name: liveness-httpget-container image: httpd imagePullPolicy: IfNotPresent ports:-name: http containerPort: 80 livenessProbe: httpGet: port: http path: / index.html initialDelaySeconds: 1 periodSeconds: 3 timeoutSeconds: 10

Check if there is a / index.html file, if it is normal, restart pod if not

After reading the above, have you mastered the use of httpget survival test in K8s? If you want to learn more skills or want to know more about it, you are welcome to follow the industry information channel, thank you for reading!

Tags: Testing usage method content more practical for this purpose skills documents articles read it industry information channels channels references Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno macOS Shulou Tech Info Xiaomi Apple Linux