Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/maorfr/kube-tasks
A tool to perform simple Kubernetes related actions
https://github.com/maorfr/kube-tasks
abs aws azure go golang google-cloud-storage kubernetes s3
Last synced: 3 months ago
JSON representation
A tool to perform simple Kubernetes related actions
- Host: GitHub
- URL: https://github.com/maorfr/kube-tasks
- Owner: maorfr
- License: apache-2.0
- Fork: true (nuvo/kube-tasks)
- Created: 2019-09-01T08:56:01.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2022-04-26T15:43:35.000Z (almost 3 years ago)
- Last Synced: 2024-08-01T21:46:21.431Z (6 months ago)
- Topics: abs, aws, azure, go, golang, google-cloud-storage, kubernetes, s3
- Language: Go
- Size: 33.2 KB
- Stars: 23
- Watchers: 3
- Forks: 18
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[![Release](https://img.shields.io/github/release/maorfr/kube-tasks.svg)](https://github.com/maorfr/kube-tasks/releases)
[![Travis branch](https://img.shields.io/travis/maorfr/kube-tasks/master.svg)](https://travis-ci.org/maorfr/kube-tasks)
[![Docker Pulls](https://img.shields.io/docker/pulls/maorfr/kube-tasks.svg)](https://hub.docker.com/r/maorfr/kube-tasks/)
[![Go Report Card](https://goreportcard.com/badge/github.com/maorfr/kube-tasks)](https://goreportcard.com/report/github.com/maorfr/kube-tasks)
[![license](https://img.shields.io/github/license/maorfr/kube-tasks.svg)](https://github.com/maorfr/kube-tasks/blob/master/LICENSE)# Kube tasks
A tool to perform simple Kubernetes related actions
## Commands
### Simple Backup
Usage:
```
Backup files to cloud storageUsage:
kube-tasks simple-backup [flags]Flags:
-b, --buffer-size float in-memory buffer size (in MB) to use for files copy (buffer per file) (default 6.75)
-c, --container string container name to act on
--dst string destination to backup to. Example: s3://bucket/backup
-n, --namespace string namespace to find pods
-p, --parallel int number of files to copy in parallel. set this flag to 0 for full parallelism (default 1)
--path string path to act on
-l, --selector string selector to filter on
--tag string tag to backup to. Default is Now (yyMMddHHmmss)
```Example: Backup Jenkins
```
kube-tasks simple-backup -n default -l release=jenkins -c jenkins --path /var/jenkins_home --dst s3://maorfr-jenkins-data
```### Wait for Pods
Usage:
```
Wait for a given number of ready podsUsage:
kube-tasks wait-for-pods [flags]Flags:
-n, --namespace string namespace to find pods
-r, --replicas int number of ready replicas to wait for (default 1)
-l, --selector string selector to filter on
```Example: Cassandra Repairer init container
```
kube-tasks wait-for-pods -n prod -l release=prod-cassandra --replicas=3
```### Execute
Usage:
```
Execute a command in a container. Only executes the command in the first podUsage:
kube-tasks execute [flags]Flags:
--command string command to execute in container
-c, --container string container name to act on
-n, --namespace string namespace to find pods
-l, --selector string selector to filter on
```Example: Cassandra Repairer
```
kube-tasks execute -n prod -l release=prod-cassandra --command "nodetool repair --full"
```