Skip to content

Commit a34b386

Browse files
author
marcel
committed
update
1 parent 1496a68 commit a34b386

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

README.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# k8s-wait-for
22
Go cli app to wait for kubernetes pod/jobs to come ready
33

4+
Supports service account by default and if no one is found it's try to use /.kube/config
5+
46
Example how to use it:
57

68
```yaml
@@ -40,6 +42,21 @@ spec:
4042
imagePullPolicy: Always
4143
```
4244
45+
Example output while waiting for vault pods to be ready:
46+
```
47+
waitfor.exe pod -n vault -l app.kubernetes.io/instance=vault
48+
Info: Namespace set by user: "vault"
49+
Info: Label set by user: "app.kubernetes.io/instance=vault"
50+
Info: Trying in-cluster config...
51+
Info: Error, falling back to kubeconfig...
52+
Waiting for Pods in namespace vault with selector 'app.kubernetes.io/instance=vault'...
53+
=== Fri, 19 Sep 2025 14:51:38 CEST ===========
54+
State: Pod vault-0 --> Ready: true
55+
State: Pod vault-1 --> Ready: true
56+
State: Pod vault-2 --> Ready: true
57+
==============================================
58+
```
59+
4360
See help command for more information:
4461
```
4562
waitfor.exe -h

0 commit comments

Comments
 (0)