Skip to content

Commit a7a80b4

Browse files
author
Arkady Emelyanov
committed
update readme
1 parent 9db8fc6 commit a7a80b4

1 file changed

Lines changed: 22 additions & 0 deletions

File tree

README.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,28 @@ to perform actual cleanup of deleted images!
164164
[14:37:42][Step 2/5] Process exited with code 0
165165
```
166166

167+
## Command execution
168+
169+
For each given selector, find all associated pods and execute provided command
170+
in each container of each pod.
171+
172+
### Sample output
173+
174+
```
175+
$ fuse exec --deployments app=acme-staging-wrk,app=acme-staging-adm --command date
176+
===> kubectl --namespace=default get deployment --selector=app=acme-staging-wrk -o yaml
177+
===> kubectl --namespace=default get deployment --selector=app=acme-staging-adm -o yaml
178+
===> kubectl --namespace=default get pods --selector=app=acme-staging-wrk,project=acme-188825 -o yaml
179+
===> kubectl --namespace=default get pods --selector=app=acme-staging-adm,project=acme-188825 -o yaml
180+
===> kubectl --namespace=default exec acme-staging-wrk-2842908200-wwlxe --container=acme-staging-wrk date
181+
===> Pod: default/acme-staging-wrk-2842908200-wwlxe, Container: acme-staging-wrk:
182+
Tue Jul 4 18:49:11 MSK 2017
183+
184+
===> kubectl --namespace=default exec acme-staging-adm-3301714455-wwnu8 --container=acme-staging-adm date
185+
===> Pod: default/acme-staging-adm-3301714455-wwnu8, Container: acme-staging-adm:
186+
Tue Jul 4 18:49:11 MSK 2017
187+
```
188+
167189
## Stability
168190

169191
Tool currently in pre-release stage, but, it is using heavily to deliver

0 commit comments

Comments
 (0)