diff --git a/charts/redis-operator/Chart.yaml b/charts/redis-operator/Chart.yaml index 9a5075794..f94b7f489 100644 --- a/charts/redis-operator/Chart.yaml +++ b/charts/redis-operator/Chart.yaml @@ -1,6 +1,6 @@ --- apiVersion: v2 -version: 0.18.3 +version: 0.18.4 appVersion: "0.18.0" description: Provides easy redis setup definitions for Kubernetes services, and deployment. engine: gotpl diff --git a/charts/redis-operator/templates/operator-deployment.yaml b/charts/redis-operator/templates/operator-deployment.yaml index b552edd08..fc07d7719 100644 --- a/charts/redis-operator/templates/operator-deployment.yaml +++ b/charts/redis-operator/templates/operator-deployment.yaml @@ -34,6 +34,14 @@ spec: {{- toYaml .Values.securityContext | nindent 10 }} image: "{{ .Values.redisOperator.imageName }}:{{ .Values.redisOperator.imageTag | default (printf "v%s" .Chart.AppVersion) }}" imagePullPolicy: {{ .Values.redisOperator.imagePullPolicy }} + livenessProbe: + httpGet: + path: /healthz + port: 8081 + readinessProbe: + httpGet: + path: /readyz + port: 8081 command: - /manager args: @@ -46,12 +54,6 @@ spec: - containerPort: 9443 name: webhook-server protocol: TCP - readinessProbe: - initialDelaySeconds: 15 - timeoutSeconds: 3 - livenessProbe: - initialDelaySeconds: 10 - timeoutSeconds: 3 volumeMounts: - mountPath: /tmp/k8s-webhook-server/serving-certs name: cert diff --git a/main.go b/main.go index 6a385504e..df3c37573 100644 --- a/main.go +++ b/main.go @@ -183,11 +183,11 @@ func main() { } // +kubebuilder:scaffold:builder - if err := mgr.AddHealthzCheck("health", healthz.Ping); err != nil { + if err := mgr.AddHealthzCheck("healthz", healthz.Ping); err != nil { setupLog.Error(err, "unable to set up health check") os.Exit(1) } - if err := mgr.AddReadyzCheck("check", healthz.Ping); err != nil { + if err := mgr.AddReadyzCheck("readyz", healthz.Ping); err != nil { setupLog.Error(err, "unable to set up ready check") os.Exit(1) }