{"id":17962503,"url":"https://github.com/embik/kubectl-ephemeral","last_synced_at":"2025-04-03T19:20:13.119Z","repository":{"id":153022263,"uuid":"623577262","full_name":"embik/kubectl-ephemeral","owner":"embik","description":"A simple kubectl plugin to launch ephemeral containers.","archived":false,"fork":false,"pushed_at":"2024-05-16T18:33:10.000Z","size":63,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-30T17:46:04.848Z","etag":null,"topics":["containers","ephemeral","kubectl","kubectl-plugin","kubernetes"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/embik.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-04-04T16:44:54.000Z","updated_at":"2024-12-28T00:49:11.000Z","dependencies_parsed_at":"2023-11-22T20:28:16.161Z","dependency_job_id":"91a165a2-36e7-4f28-a91c-c794774b678b","html_url":"https://github.com/embik/kubectl-ephemeral","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/embik%2Fkubectl-ephemeral","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/embik%2Fkubectl-ephemeral/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/embik%2Fkubectl-ephemeral/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/embik%2Fkubectl-ephemeral/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/embik","download_url":"https://codeload.github.com/embik/kubectl-ephemeral/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247061882,"owners_count":20877176,"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":["containers","ephemeral","kubectl","kubectl-plugin","kubernetes"],"created_at":"2024-10-29T11:19:34.566Z","updated_at":"2025-04-03T19:20:13.090Z","avatar_url":"https://github.com/embik.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# kubectl-ephemeral\n\nA simple `kubectl` plugin that allows launching ephemeral containers from a YAML file (as `kubectl debug` does not expose all options).\n\n## Installation\n\n`kubectl-ephemeral` is currently available from [my krew index](https://github.com/embik/krew-index) or my [Homebrew tap](https://github.com/embik/homebrew-tap).\n\n### Krew\n\nThis installation method requires [krew](https://krew.sigs.k8s.io) installed.\n\nAdd the krew index and synchronize the local copy of it:\n\n```sh\n$ kubectl krew index add embik https://github.com/embik/krew-index.git\n$ kubectl krew update\n```\n\n`kubectl-ephemeral` can now be installed with the following command:\n\n```sh\n$ kubectl krew install embik/ephemeral\n```\n\n### Homebrew\n\nInstallation via [Homebrew](https://brew.sh) is possible with the following command:\n\n```sh\n$ brew install embik/tap/kubectl-ephemeral\n```\n\n### Manual\n\nRun `make build` to get the binary `_build/kubectl-ephemeral` built. Then run:\n\n```sh\n$ chmod +x _build/kubectl-ephemeral\n$ cp _build/kubectl-ephemeral /usr/local/bin/kubectl-ephemeral # or somewhere else where it will be available in your PATH\n```\n\n## Usage\n\n`kubectl-ephemeral` requires you to provide a YAML file that describes the ephemeral container you want to launch. An example on how to launch [Delve](https://github.com/go-delve/delve) to debug a running Go application is provided in [examples/delve.yaml](./examples/delve.yaml).\n\nThe ephemeral container specification mostly aligns with normal containers, but some differences exist. In doubt, check the [corev1.EphemeralContainer](https://pkg.go.dev/k8s.io/api/core/v1#EphemeralContainer) type.\n\n```sh\n$ kubectl ephemeral \u003ctarget pod name\u003e -f \u003cpath to ephemeral container\u003e.yaml -c \u003ctarget container name\u003e\n```\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fembik%2Fkubectl-ephemeral","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fembik%2Fkubectl-ephemeral","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fembik%2Fkubectl-ephemeral/lists"}