Skip to content

Commit cc3c695

Browse files
author
marcel
committed
2 parents 14db491 + c4a7da4 commit cc3c695

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# k8s-wait-for
2-
Go cli app to wait for kubernetes pod/jobs to come ready
2+
Go cli app to wait for kubernetes pod/jobs/sql to come ready
33

44
Supports service account by default and if no one is found it's try to use /.kube/config
55

@@ -90,14 +90,15 @@ State: Pod vault-2 --> Ready: true
9090
See help command for more information:
9191
```
9292
waitfor.exe -h
93-
This tool waits for kubernetes pods or jobs to be ready
93+
This tool waits for kubernetes pods or jobs and SQL databases to be ready
9494
9595
a common usecase is to use it as init container to wait for other pods to be ready before starting the main application.
9696
For example waiting for a database to be ready before starting the app to prevent errors.
9797
9898
Example:
9999
waitfor pod -n vault -l app.kubernetes.io/instance=vault
100100
waitfor job -n snipeit -l job=generate-app-key
101+
waitfor sql -u root -p mysecretpassword -s mariadb.mydatabase.cluster.local -d mydb
101102
102103
Usage:
103104
waitfor [command]
@@ -107,6 +108,7 @@ Available Commands:
107108
help Help about any command
108109
job wait for a job to complete
109110
pod wait for a pod to be ready
111+
sql wait for SQL connection
110112
111113
Flags:
112114
-h, --help help for waitfor

0 commit comments

Comments
 (0)