concept startup in category kubernetes

appears as: startup, startup
Kubernetes in Action, Second Edition MEAP V05

This is an excerpt from Manning's book Kubernetes in Action, Second Edition MEAP V05.

$ kubectl get events -w

In addition to a liveness probe, a container may also have a startup probe, which is discussed in section 6.2.6, and a readiness probe, which is explained in chapter 10.

Imagine that the kubia Node.js application needs more than a minute to warm up, but you want it to be restarted within 10 seconds after it has become unhealthy during normal operation. The following listing shows how you’d configure the startup and the liveness probes.

Listing 6.14 Using a combination of startup and liveness probes
  containers:
  - name: kubia
    image: luksa/kubia:1.0
    ports:
    - name: http
      containerPort: 8080
    startupProbe:
      httpGet:
        path: /                    #A
        port: http                 #A
      periodSeconds: 10            #B
      failureThreshold:  12        #B
    livenessProbe:
      httpGet:
        path: /                    #A
        port: http                 #A
      periodSeconds: 5             #C
      failureThreshold: 2          #C
Figure 6.8 Fast detection of application health problems using a combination of startup and liveness probe
sitemap

Unable to load book!

The book could not be loaded.

(try again in a couple of minutes)

manning.com homepage
test yourself with a liveTest