Skip to content

Commit cdee58f

Browse files
authored
Add controller readiness exec probe
1 parent 4495f2c commit cdee58f

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

cli/k8s_client/yaml_factory.go

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -775,6 +775,17 @@ spec:
775775
initialDelaySeconds: 120
776776
periodSeconds: 120
777777
timeoutSeconds: 90
778+
readinessProbe:
779+
exec:
780+
command:
781+
- tridentctl
782+
- -s
783+
- "{IP_LOCALHOST}:8000"
784+
- version
785+
failureThreshold: 3
786+
initialDelaySeconds: 10
787+
periodSeconds: 10
788+
timeoutSeconds: 10
778789
{CSI_TRIDENT_MAIN_RESOURCES}
779790
env:
780791
- name: KUBE_NODE_NAME

0 commit comments

Comments
 (0)