File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 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
44Supports 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
9090See help command for more information:
9191```
9292waitfor.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
9595a common usecase is to use it as init container to wait for other pods to be ready before starting the main application.
9696For example waiting for a database to be ready before starting the app to prevent errors.
9797
9898Example:
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
102103Usage:
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
111113Flags:
112114 -h, --help help for waitfor
You can’t perform that action at this time.
0 commit comments