Skip to content
This repository has been archived by the owner on Nov 1, 2022. It is now read-only.

Commit

Permalink
Merge pull request #2355 from fluxcd/health-check
Browse files Browse the repository at this point in the history
Add liveness and readiness probes
  • Loading branch information
stefanprodan authored Aug 13, 2019
2 parents 9372621 + 4f1de3b commit 7c270e7
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 8 deletions.
12 changes: 12 additions & 0 deletions chart/flux/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,18 @@ spec:
- name: http
containerPort: 3030
protocol: TCP
livenessProbe:
httpGet:
port: 3030
path: /api/flux/v6/identity.pub
initialDelaySeconds: 5
timeoutSeconds: 5
readinessProbe:
httpGet:
port: 3030
path: /api/flux/v6/identity.pub
initialDelaySeconds: 5
timeoutSeconds: 5
volumeMounts:
- name: kubedir
mountPath: /root/.kubectl
Expand Down
12 changes: 12 additions & 0 deletions deploy/flux-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,18 @@ spec:
memory: 64Mi
ports:
- containerPort: 3030 # informational
livenessProbe:
httpGet:
port: 3030
path: /api/flux/v6/identity.pub
initialDelaySeconds: 5
timeoutSeconds: 5
readinessProbe:
httpGet:
port: 3030
path: /api/flux/v6/identity.pub
initialDelaySeconds: 5
timeoutSeconds: 5
volumeMounts:
- name: git-key
mountPath: /etc/fluxd/ssh # to match location given in image's /etc/ssh/config
Expand Down
Loading

0 comments on commit 7c270e7

Please sign in to comment.