Skip to content

Commit

Permalink
Fix liveness and readiness probes
Browse files Browse the repository at this point in the history
  • Loading branch information
wissamataleh committed Aug 16, 2021
1 parent 9b6bd94 commit 78795c0
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 7 deletions.
2 changes: 1 addition & 1 deletion charts/drone-runner-kube/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v2
name: drone-runner-kube
version: 1.0.1
version: 1.0.2
appVersion: 1.0.0-beta.8
description: The Drone Kubernetes runner launches builds in Kubernetes Jobs.
home: https://drone.io/
Expand Down
4 changes: 4 additions & 0 deletions charts/drone-runner-kube/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,10 @@ The following tables lists the configurable parameters of the Drone-Runner-Kube
| `env` | Environment variables to configure Drone-Runner-Kube container | `{}` (evaluated as a configMap) |
| `secretNamesForEnv` | Array of secrets names contaning extra env vars | `[]` |
| `terminationGracePeriodSeconds` | Time is seconds to wait after a runner pod receives a SIGTERM/SIGINT | `3600` |
| `readinessProbe.initialDelaySeconds` | Initial delay seconds for readinessProbe | `5` |
| `readinessProbe.periodSeconds` | Period seconds for readinessProbe | `10` |
| `livenessProbe.initialDelaySeconds` | Initial delay seconds for livenessProbe | `15` |
| `livenessProbe.periodSeconds` | Period seconds for livenessProbe | `20` |


### Exposure values
Expand Down
14 changes: 8 additions & 6 deletions charts/drone-runner-kube/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,15 @@ spec:
containerPort: 3000
protocol: TCP
livenessProbe:
httpGet:
path: /
port: http
tcpSocket:
port: 3000
initialDelaySeconds: {{ .Values.livenessProbe.initialDelaySeconds }}
periodSeconds: {{ .Values.livenessProbe.periodSeconds }}
readinessProbe:
httpGet:
path: /
port: http
tcpSocket:
port: 3000
initialDelaySeconds: {{ .Values.readinessProbe.initialDelaySeconds }}
periodSeconds: {{ .Values.readinessProbe.periodSeconds }}
resources:
{{- toYaml .Values.resources | nindent 12 }}
envFrom:
Expand Down
8 changes: 8 additions & 0 deletions charts/drone-runner-kube/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,14 @@ tolerations: []

affinity: {}

## Probes
readinessProbe:
initialDelaySeconds: 5
periodSeconds: 10
livenessProbe:
initialDelaySeconds: 15
periodSeconds: 20

## If you'd like to make additional files or volumes available to the runner, declare additional
## Volumes here per the Pod spec's "volumes" section.
## Ref: https://kubernetes.io/docs/concepts/storage/volumes/
Expand Down

0 comments on commit 78795c0

Please sign in to comment.