Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/customize probe settings in pod spec #97

Prev Previous commit
Next Next commit
Add probes comments with default values
  • Loading branch information
ilya-hontarau committed Apr 2, 2024
commit acd264a55cc4589e84d99122e274501e0265ddd5
9 changes: 6 additions & 3 deletions api/v1alpha1/etcdcluster_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -166,17 +166,20 @@ type PodSpec struct {
ExtraEnv []corev1.EnvVar `json:"extraEnv,omitempty"`

// LivenessProbe defines liveness probe check for the pod.
sircthulhu marked this conversation as resolved.
Show resolved Hide resolved
// If not specified, default probe will be used.
// If not specified, default probe will be used with HTTP probe handler and path /livez on the port 2379,
// with initialDelaySeconds 5 and 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.
// If not specified, default probe will be used with HTTP probe handler and path /readyz on the port 2379,
// with initialDelaySeconds 5 and 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.
// 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"`
}
Expand Down