Sha256: 8f408c1d845a5bbd25528839c7184f2034288eefe8a128214f9177a3853c24ed

Contents?: true

Size: 818 Bytes

Versions: 13

Compression:

Stored size: 818 Bytes

Contents

The exec command finds the latest pod from the deployment and runs `kubectl exec -ti POD bash` to get you into it. It spares you from having to manually find and type it.

## Examples

    kubes exec
    kubes exec sh
    kubes exec ls -l

## Multiple Deployments

If you have have multiple deployments in your `.kubes/resources` then the command will use the first deployment by default. You can specify the specfic deployment with the `--name` or `-n` option.  Examples:

    kubes exec --name web
    kubes exec -n web
    kubes exec -n clock
    kubes exec -n worker
    kubes exec -n web sh
    kubes exec -n web ls -l

## Multiple Pod Containers

If you have have multiple containers in your pod. You can specify the specfic container with the `--container` or `-c` option.  Examples:

    kubes exec --name web

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
kubes-0.4.7 lib/kubes/cli/help/exec.md
kubes-0.4.6 lib/kubes/cli/help/exec.md
kubes-0.4.5 lib/kubes/cli/help/exec.md
kubes-0.4.4 lib/kubes/cli/help/exec.md
kubes-0.4.3 lib/kubes/cli/help/exec.md
kubes-0.4.2 lib/kubes/cli/help/exec.md
kubes-0.4.1 lib/kubes/cli/help/exec.md
kubes-0.4.0 lib/kubes/cli/help/exec.md
kubes-0.3.5 lib/kubes/cli/help/exec.md
kubes-0.3.4 lib/kubes/cli/help/exec.md
kubes-0.3.3 lib/kubes/cli/help/exec.md
kubes-0.3.2 lib/kubes/cli/help/exec.md
kubes-0.3.1 lib/kubes/cli/help/exec.md