feat(helm): customizable liveness and readiness probes

This commit is contained in:
Dario Tranchitella
2021-03-06 15:57:25 +01:00
parent 7fef4e5237
commit 74b0594cf4
4 changed files with 13 additions and 7 deletions
+1 -1
View File
@@ -21,7 +21,7 @@ sources:
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
version: 0.0.13
version: 0.0.16
# This is the version number of the application being deployed.
# This version number should be incremented each time you make changes to the application.
+2
View File
@@ -68,6 +68,8 @@ Parameter | Description | Default
`manager.image.repository` | Set the image repository of the controller. | `quay.io/clastix/capsule`
`manager.image.tag` | Overrides the image tag whose default is the chart. `appVersion` | `null`
`manager.image.pullPolicy` | Set the image pull policy. | `IfNotPresent`
`manager.livenessProbe` | Configure the liveness probe using Deployment probe spec | `GET :10080/healthz`
`manager.readinessProbe` | Configure the readiness probe using Deployment probe spec | `GET :10080/readyz`
`manager.resources.requests/cpu` | Set the CPU requests assigned to the controller. | `200m`
`manager.resources.requests/memory` | Set the memory requests assigned to the controller. | `128Mi`
`manager.resources.limits/cpu` | Set the CPU limits assigned to the controller. | `200m`
+2 -6
View File
@@ -65,13 +65,9 @@ spec:
containerPort: 9443
protocol: TCP
livenessProbe:
httpGet:
path: /healthz
port: 10080
{{- toYaml .Values.manager.livenessProbe | nindent 12}}
readinessProbe:
httpGet:
path: /readyz
port: 10080
{{- toYaml .Values.manager.readinessProbe | nindent 12}}
volumeMounts:
- mountPath: /tmp/k8s-webhook-server/serving-certs
name: cert
+8
View File
@@ -14,6 +14,14 @@ manager:
capsuleUserGroup:
protectedNamespaceRegex:
allowIngressHostnameCollision:
livenessProbe:
httpGet:
path: /healthz
port: 10080
readinessProbe:
httpGet:
path: /readyz
port: 10080
resources:
limits:
cpu: 200m