Set Health Probe
Kubemqctl
Helm
kubectl

Flags

Flag
Type/Options
Default
Description
--health-enabled
bool
false
Set enable/disable health prob
--initial-delay-seconds
int
10
Set Initial Delay Seconds
--health-period-seconds
int
10
Set Period Seconds Interval
--health-timeout-seconds
int
5
Set Timeout Seconds
--health-success-threshold
int
1
Set Success Threshold
--health-failure-threshold
int
12
Set Failure Threshold

Example

Enable liveness prob with default values
1
kubemqctl create cluster --health-enabled true
Copied!
Change default of visibility to 3 minutes:
1
kubemqctl create cluster --queue-default-visibility-seconds 180
Copied!

Values

Flag
Type/Options
Default
Description
health.enabled
bool
false
Set enable/disable health prob
health.initialDelaySeconds
int
10
Set Initial Delay Seconds
health.periodSeconds
int
10
Set Period Seconds Interval
health.timeoutSeconds
int
5
Set Timeout Seconds
health.successThreshold
int
1
Set Success Threshold
health.failureThreshold
int
12
Set Failure Threshold

Example

Enable liveness prob with default values
1
helm install kubemq-cluster --set health.enabled=true kubemq-charts/kubemq
Copied!

Fields

Field
Type/Options
Default
Description
enabled
bool
false
Set enable/disable health prob
initialDelaySeconds
int
10
Set Initial Delay Seconds
periodSeconds
int
10
Set Period Seconds Interval
timeoutSeconds
int
5
Set Timeout Seconds
successThreshold
int
1
Set Success Threshold
failureThreshold
int
12
Set Failure Threshold

Example

Enable liveness prob with default values
Run:
1
kubectl apply -f {below-yaml-file}
Copied!
1
apiVersion: core.k8s.kubemq.io/v1alpha1
2
kind: KubemqCluster
3
metadata:
4
name: kubemq-cluster
5
namesapce: kubemq
6
labels:
7
app: kubemq-cluster
8
spec:
9
replicas: 3
10
health:
11
enabled: false
12
initialDelaySeconds: 5
13
periodSeconds: 10
14
timeoutSeconds: 10
15
failureThreshold: 12
16
successThreshold: 1
Copied!
Last modified 1yr ago
Copy link