Skip to content

Commit

Permalink
feat: customize probe settings in pod spec (#97)
Browse files Browse the repository at this point in the history
Closes #82
  • Loading branch information
ilya-hontarau authored Apr 3, 2024
1 parent 1c851a6 commit ebee713
Show file tree
Hide file tree
Showing 5 changed files with 883 additions and 32 deletions.
18 changes: 18 additions & 0 deletions api/v1alpha1/etcdcluster_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,24 @@ type PodSpec struct {
// ExtraEnv are the extra environment variables to pass to the etcd container.
// +optional
ExtraEnv []corev1.EnvVar `json:"extraEnv,omitempty"`

// LivenessProbe defines liveness probe check for the pod.
// If not specified, default probe will be used with HTTP probe handler and path /livez on the port 2379,
// with periodSeconds 5.
// +optional
LivenessProbe *corev1.Probe `json:"livenessProbe,omitempty"`

// ReadinessProbe defines readiness probe check for the pod.
// If not specified, default probe will be used with HTTP probe handler and path /readyz on the port 2379,
// with periodSeconds 5.
// +optional
ReadinessProbe *corev1.Probe `json:"readinessProbe,omitempty"`

// StartupProbe defines startup probe check for the pod.
// If not specified, default probe will be used with HTTP probe handler and path /readyz?serializable=false on the port 2379,
// with periodSeconds 5.
// +optional
StartupProbe *corev1.Probe `json:"startupProbe,omitempty"`
}

// StorageSpec defines the configured storage for a etcd members.
Expand Down
15 changes: 15 additions & 0 deletions api/v1alpha1/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit ebee713

Please sign in to comment.