Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
README.md
guestbook.yaml
redis-master.yaml
redis-slave.yaml

README.md

Health

At container level instead of defining livenessProbe and readinessProbe you can define a field called health. And then that gets replicated in livenessProbe and readinessProbe.

See the snippet below from guestbook.yaml:

containers:
...
  health:
    httpGet:
      path: /
      port: 80
    initialDelaySeconds: 20
    timeoutSeconds: 5
...

When this is expanded the same content is replicated in both fields:

$ kedge generate -f web.yaml
...
        livenessProbe:
          httpGet:
            path: /
            port: 80
          initialDelaySeconds: 20
          timeoutSeconds: 5
        readinessProbe:
          httpGet:
            path: /
            port: 80
          initialDelaySeconds: 20
          timeoutSeconds: 5
...

But if health is defined with livenessProbe or readinessProbe the tool will error out, so define only one.