Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a /healthz to all pods and add liveness checks #27

Open
sheppduck opened this issue Feb 13, 2018 · 0 comments
Open

Add a /healthz to all pods and add liveness checks #27

sheppduck opened this issue Feb 13, 2018 · 0 comments

Comments

@sheppduck
Copy link
Contributor

sheppduck commented Feb 13, 2018

Something like so:

apiVersion: v1
kind: Pod
metadata:
  labels:
    test: liveness
  name: liveness-http
spec:
  containers:
  - name: liveness
    image: k8s.gcr.io/liveness
    args:
    - /server
    livenessProbe:
      httpGet:
        path: /healthz
        port: 8080
        httpHeaders:
        - name: X-Custom-Header
          value: Awesome
      initialDelaySeconds: 3
      periodSeconds: 3
@mattfenwick mattfenwick changed the title Add a /healthz to all PODs and add liveness checks Add a /healthz to all pods and add liveness checks Jul 25, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant