kubectl-ephemeral

module
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 16, 2024 License: Apache-2.0

README

kubectl-ephemeral

A simple kubectl plugin that allows launching ephemeral containers from a YAML file (as kubectl debug does not expose all options).

Installation

Run make build to get the binary _build/kubectl-ephemeral built. Then run:

$ chmod +x _build/kubectl-ephemeral
$ cp _build/kubectl-ephemeral /usr/local/bin/kubectl-ephemeral # or somewhere else where it will be available in your PATH

Usage

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 to debug a running Go application is provided in examples/delve.yaml.

The ephemeral container specification mostly aligns with normal containers, but some differences exist. In doubt, check the corev1.EphemeralContainer type.

$ kubectl ephemeral <target pod name> -f <path to ephemeral container>.yaml -c <target container name>

Directories

Path Synopsis
cmd
internal
cmd

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL