Skip to content

Commit

Permalink
Add probes comments with default values
Browse files Browse the repository at this point in the history
  • Loading branch information
ilya-hontarau committed Apr 2, 2024
1 parent 27daf04 commit acd264a
Showing 1 changed file with 6 additions and 3 deletions.
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.
// 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

0 comments on commit acd264a

Please sign in to comment.