Skip to content

Latest commit

 

History

History
47 lines (35 loc) · 1000 Bytes

File metadata and controls

47 lines (35 loc) · 1000 Bytes

podshell

Simple alpine based container env for dev and debug purposes.

Usage

Imperative and removed on exit:

kubectl run -it --rm --restart=Never --image=ghcr.io/mpepping/podshell:latest shell

Declarative:

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"]
EOF

As a Deployment:

kubectl create deployment shell --image=ghcr.io/mpepping/podshell:latest -- sleep infinit

Or in docker or podman:

docker run -ti --rm ghcr.io/mpepping/podshell:latest || podman run -ti --rm ghcr.io/mpepping/podshell:latest

Binenv

Install 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.