{"id":13620990,"url":"https://github.com/maorfr/kube-tasks","last_synced_at":"2025-04-14T22:33:11.703Z","repository":{"id":41849540,"uuid":"205652213","full_name":"maorfr/kube-tasks","owner":"maorfr","description":"A tool to perform simple Kubernetes related actions","archived":false,"fork":true,"pushed_at":"2022-04-26T15:43:35.000Z","size":34,"stargazers_count":23,"open_issues_count":2,"forks_count":18,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-11-08T07:39:30.730Z","etag":null,"topics":["abs","aws","azure","go","golang","google-cloud-storage","kubernetes","s3"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"nuvo/kube-tasks","license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/maorfr.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-09-01T08:56:01.000Z","updated_at":"2023-11-12T01:36:38.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/maorfr/kube-tasks","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maorfr%2Fkube-tasks","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maorfr%2Fkube-tasks/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maorfr%2Fkube-tasks/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maorfr%2Fkube-tasks/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/maorfr","download_url":"https://codeload.github.com/maorfr/kube-tasks/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248972613,"owners_count":21191826,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["abs","aws","azure","go","golang","google-cloud-storage","kubernetes","s3"],"created_at":"2024-08-01T21:01:01.500Z","updated_at":"2025-04-14T22:33:06.692Z","avatar_url":"https://github.com/maorfr.png","language":"Go","funding_links":[],"categories":["Go"],"sub_categories":[],"readme":"[![Release](https://img.shields.io/github/release/maorfr/kube-tasks.svg)](https://github.com/maorfr/kube-tasks/releases)\n[![Travis branch](https://img.shields.io/travis/maorfr/kube-tasks/master.svg)](https://travis-ci.org/maorfr/kube-tasks)\n[![Docker Pulls](https://img.shields.io/docker/pulls/maorfr/kube-tasks.svg)](https://hub.docker.com/r/maorfr/kube-tasks/)\n[![Go Report Card](https://goreportcard.com/badge/github.com/maorfr/kube-tasks)](https://goreportcard.com/report/github.com/maorfr/kube-tasks)\n[![license](https://img.shields.io/github/license/maorfr/kube-tasks.svg)](https://github.com/maorfr/kube-tasks/blob/master/LICENSE)\n\n# Kube tasks\n\nA tool to perform simple Kubernetes related actions\n\n## Commands\n\n### Simple Backup\n\nUsage:\n```\nBackup files to cloud storage\n\nUsage:\n  kube-tasks simple-backup [flags]\n\nFlags:\n  -b, --buffer-size float   in-memory buffer size (in MB) to use for files copy (buffer per file) (default 6.75)\n  -c, --container string    container name to act on\n      --dst string          destination to backup to. Example: s3://bucket/backup\n  -n, --namespace string    namespace to find pods\n  -p, --parallel int        number of files to copy in parallel. set this flag to 0 for full parallelism (default 1)\n      --path string         path to act on\n  -l, --selector string     selector to filter on\n      --tag string          tag to backup to. Default is Now (yyMMddHHmmss)\n```\n\nExample: Backup Jenkins\n```\nkube-tasks simple-backup -n default -l release=jenkins -c jenkins --path /var/jenkins_home --dst s3://maorfr-jenkins-data\n```\n\n### Wait for Pods\n\nUsage:\n```\nWait for a given number of ready pods\n\nUsage:\n  kube-tasks wait-for-pods [flags]\n\nFlags:\n  -n, --namespace string   namespace to find pods\n  -r, --replicas int       number of ready replicas to wait for (default 1)\n  -l, --selector string    selector to filter on\n```\n\nExample: Cassandra Repairer init container\n```\nkube-tasks wait-for-pods -n prod -l release=prod-cassandra --replicas=3\n```\n\n### Execute\n\nUsage:\n```\nExecute a command in a container. Only executes the command in the first pod\n\nUsage:\n  kube-tasks execute [flags]\n\nFlags:\n      --command string     command to execute in container\n  -c, --container string   container name to act on\n  -n, --namespace string   namespace to find pods\n  -l, --selector string    selector to filter on\n```\n\nExample: Cassandra Repairer\n```\nkube-tasks execute -n prod -l release=prod-cassandra --command \"nodetool repair --full\"\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaorfr%2Fkube-tasks","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmaorfr%2Fkube-tasks","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaorfr%2Fkube-tasks/lists"}