/debug-pod

kubernetes debug pod

Primary LanguageDockerfileMIT LicenseMIT

debug-pod

pipeline

debug pod conatainer image with the following packages installed:

  • certinfo
  • jwt
  • curl
  • jq
  • bind-tools
  • openssl
  • netcat-openbsd
  • iputils
  • telnet

run

  • default namespace, latest image - kubectl run debug --image=pete911/debug-pod --rm -it --restart=Never -- sh
  • specify namespace and image - kubectl run debug -n <namespace> --image=pete911/debug-pod:<version> --rm -it --restart=Never -- sh

If you need to target specific node, access node file system, you can create pod manifest and apply it, e.g. create debug-pod.yaml file:

apiVersion: v1
kind: Pod
metadata:
  name: debug-pod
spec:
  containers:
    - image: pete911/debug-pod:latest
      name: debug-pod
      command:
        - sleep
        - "3600"
      volumeMounts:
        - name: host
          mountPath: /host
  volumes:
    - name: host
      hostPath:
        path: /
        type: Directory

and then run kubectl apply -f debug-pod.yaml

release

Releases are published to dockerhub when the new tag is created e.g. git tag -m "add super cool feature" v1.0.0 && git push --follow-tags