Simple alpine based container env for dev and debug purposes.
Imperative and removed on exit:
kubectl run -it --rm --restart=Never --image=ghcr.io/mpepping/podshell:latest shellDeclarative:
kubectl apply -f - <<EOF
apiVersion: v1
kind: Pod
metadata:
labels:
run: shell
name: shell
spec:
containers:
- image: ghcr.io/mpepping/podshell:latest
imagePullPolicy: Always
name: shell
command: ["sleep"]
args: ["86400"]
EOFAs a Deployment:
kubectl create deployment shell --image=ghcr.io/mpepping/podshell:latest -- sleep infinitOr in docker or podman:
docker run -ti --rm ghcr.io/mpepping/podshell:latest || podman run -ti --rm ghcr.io/mpepping/podshell:latestInstall binenv by running /usr/local/bin/_add_binenv. This will download and configure the binenv command. This allows you to install all sorts of tools in the running container.