Skip to content

A collection of manifests to deploy debugging pods

Notifications You must be signed in to change notification settings

glitchcrab/k8s-dbg-ymls

Repository files navigation

k8s-dbg-ymls

A collection of Kubernetes manifests to deploy a debugging pod with both Alpine and Ubuntu containers. Images are from here and here.

Note: namespaces are not defined.

Deploy

  1. Deploy service account:
kubectl create -f https://raw.githubusercontent.com/glitchcrab/k8s-dbg-ymls/master/service-account.yaml
  1. Deploy RBAC required to use the PodSecurityPolicy:
kubectl create -f https://raw.githubusercontent.com/glitchcrab/k8s-dbg-ymls/master/rbac.yaml
  1. Deploy PodSecurityPolicy (if required):
kubectl create -f https://raw.githubusercontent.com/glitchcrab/k8s-dbg-ymls/master/pod-security-policy.yaml
  1. Deploy NetworkPolicy (if required):
kubectl create -f https://raw.githubusercontent.com/glitchcrab/k8s-dbg-ymls/master/network-policy.yaml
  1. Deploy pod
    1. As an unprivileged user:
    kubectl create -f https://raw.githubusercontent.com/glitchcrab/k8s-dbg-ymls/master/deployment-not-root.yaml
    1. As the root user:
    kubectl create -f https://raw.githubusercontent.com/glitchcrab/k8s-dbg-ymls/master/deployment-root.yaml

Cleanup

kubectl delete -f https://raw.githubusercontent.com/glitchcrab/k8s-dbg-ymls/master/deployment-root.yaml
kubectl delete -f https://raw.githubusercontent.com/glitchcrab/k8s-dbg-ymls/master/deployment-not-root.yaml
kubectl delete -f https://raw.githubusercontent.com/glitchcrab/k8s-dbg-ymls/master/network-policy.yaml
kubectl delete -f https://raw.githubusercontent.com/glitchcrab/k8s-dbg-ymls/master/pod-security-policy.yaml
kubectl delete -f https://raw.githubusercontent.com/glitchcrab/k8s-dbg-ymls/master/rbac.yaml
kubectl delete -f https://raw.githubusercontent.com/glitchcrab/k8s-dbg-ymls/master/service-account.yaml

About

A collection of manifests to deploy debugging pods

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published