diff --git a/charts/capsule/Chart.yaml b/charts/capsule/Chart.yaml index 849f4b45..4002a49e 100644 --- a/charts/capsule/Chart.yaml +++ b/charts/capsule/Chart.yaml @@ -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. diff --git a/charts/capsule/README.md b/charts/capsule/README.md index cca12393..b6f76001 100644 --- a/charts/capsule/README.md +++ b/charts/capsule/README.md @@ -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` diff --git a/charts/capsule/templates/deployment.yaml b/charts/capsule/templates/deployment.yaml index 9fb3e72c..fe939e84 100644 --- a/charts/capsule/templates/deployment.yaml +++ b/charts/capsule/templates/deployment.yaml @@ -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 diff --git a/charts/capsule/values.yaml b/charts/capsule/values.yaml index 89fece0a..cd5822ea 100644 --- a/charts/capsule/values.yaml +++ b/charts/capsule/values.yaml @@ -14,6 +14,14 @@ manager: capsuleUserGroup: protectedNamespaceRegex: allowIngressHostnameCollision: + livenessProbe: + httpGet: + path: /healthz + port: 10080 + readinessProbe: + httpGet: + path: /readyz + port: 10080 resources: limits: cpu: 200m