Skip to content

Commit

Permalink
Install kubernetes during ci
Browse files Browse the repository at this point in the history
  • Loading branch information
predatorray committed Mar 14, 2020
2 parents 2c8770b + 140e6c6 commit fe3f0c8
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 2 deletions.
18 changes: 18 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,22 @@
language: bash
sudo: required

env:
global:
- CHANGE_MINIKUBE_NONE_USER=true
- MINIKUBE_WANTUPDATENOTIFICATION=false
- MINIKUBE_WANTREPORTERRORPROMPT=false
- MINIKUBE_HOME=$HOME
- CHANGE_MINIKUBE_NONE_USER=true
- KUBECONFIG=$HOME/.kube/config

before_script:
- curl -Lo kubectl https://storage.googleapis.com/kubernetes-release/release/v1.16.0/bin/linux/amd64/kubectl && chmod +x kubectl && sudo mv kubectl /usr/local/bin/
- curl -Lo minikube https://storage.googleapis.com/minikube/releases/v1.4.0/minikube-linux-amd64 && chmod +x minikube && sudo mv minikube /usr/local/bin/
- mkdir -p $HOME/.kube $HOME/.minikube
- touch $KUBECONFIG
- sudo minikube start --vm-driver=none --kubernetes-version=v1.16.0
- "sudo chown -R travis: /home/travis/.minikube/"

script:
- make
20 changes: 18 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
# kubectl-tmux-exec

![homebrew](https://img.shields.io/badge/homebrew-0.0.3-orange)
[![homebrew](https://img.shields.io/badge/homebrew-0.0.3-orange)](https://brew.sh/)
[![krew](https://img.shields.io/badge/krew-0.0.2-blue)](https://krew.sigs.k8s.io/)
![license](https://img.shields.io/badge/license-MIT-green)

A kubectl plugin that uses [Tmux](https://github.com/tmux/tmux) to multiplex commands to pods.
A kubectl plugin that controls multiple pods simultaneously using [Tmux](https://github.com/tmux/tmux).

![screenshot](../assets/screenshot.png?raw=true)

Expand Down Expand Up @@ -73,6 +74,21 @@ Or, execute it directly.
kubectl-tmux_exec --help
```

## Options

Flag | Usage
--- | ---
`-l`<br>`--selector` | Selector (label query) to filter on, supports '=', '==', and '!='.(e.g. -l key1=value1,key2=value2)<br>You must either use `--selector` or `--file` option.
`-f`<br>`--file` | Read pod names line-by-line from a file.<br>You must either use `--selector` or `--file` option.
`-c`<br>`--container` | Container name. If omitted, the first container in the pod will be chosen
`-i`<br>`--stdin` | Pass stdin to the container (**deprecated**, since it's enabled by default)
`-t`<br>`--tty` | Stdin is a TTY (**deprecated**, since it's enabled by default)
`-d`<br>`--detach` | Make the Tmux session detached
`--remain-on-exit` | Remain Tmux window on exit
`--select-layout` | One of the five Tmux preset layouts: even-horizontal, even-vertical, main-horizontal, main-vertical, or tiled.

The usage of these options is also available by `--help`.

## Example

The `tmux-exec` is similar to `exec`, except that it requires label selectors while `exec` requires a pod name.
Expand Down

0 comments on commit fe3f0c8

Please sign in to comment.