The usage of httpget Survival Detection in K8s
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!