https://github.com/swisscom/kube-tools
A collection of small tools to work with Kubernetes
https://github.com/swisscom/kube-tools
Last synced: 10 months ago
JSON representation
A collection of small tools to work with Kubernetes
- Host: GitHub
- URL: https://github.com/swisscom/kube-tools
- Owner: swisscom
- License: mit
- Created: 2021-03-17T12:27:03.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2021-03-17T12:32:11.000Z (about 5 years ago)
- Last Synced: 2025-03-18T02:57:42.430Z (about 1 year ago)
- Language: Go
- Size: 149 KB
- Stars: 2
- Watchers: 14
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# kube-tools
A collection of tools to work with Kubernetes
## kube-ps1
A super simple command to display a string that you can easily put in your PS1 prompt.
The output is usually used in your prompt as follows:

### Usage
Depending on what and how you want your prompt look like,
put the following in your `~/.zshrc` / `~/.bashrc`:
```bash
PS1='%{$fg[green]%}%n@%m:%{$fg_bold[blue]%}%2~ %{$fg[yellow]$(kube-ps1) %}$(git_prompt_info)%{$reset_color%}%(!.#.$) '
```
Basically, call `$(kube-ps1)` in your prompt and enjoy!
## kcn
Simple utility to switch between namespaces

### Usage
```bash
$ kcn ns1 # Switches to ns1
```