PitchHut
Log in / Sign up
duplik8s
8 views
Simplify resource duplication in Kubernetes with ease and precision.
Pitch

Introducing duplik8s, the kubectl plugin that streamlines the duplication of Kubernetes resources like Pods, Deployments, and StatefulSets. With user-friendly syntax and features like tag tracking for easy cleanup and smooth handling of persistent storage, duplik8s simplifies testing and debugging in your cluster. Take your Kubernetes experience to the next level.

Description

Duplik8s is an innovative kubectl plugin designed to simplify the duplication of resources within your Kubernetes cluster. With duplik8s, you can effortlessly create duplicates of Pods, Deployments, and StatefulSets, enhancing your testing, debugging, and development processes.

Key Features:

  • Multi-Resource Duplication: Easily duplicate various Kubernetes resources, not limited to just Pods.
  • Identifiable Resources: Each duplicated resource is tagged with a duplik8s label, ensuring straightforward identification and management.
  • Persistent Storage Support: Seamlessly duplicate Pods with persistent volume mounts, avoiding common pitfalls.
  • Probe Management: Automatically disables liveness and readiness probes in cloned Pods, allowing you to keep them idle.
  • Simple Syntax: A user-friendly command structure that streamlines the selection and duplication of Kubernetes resources.

Getting Started:

The plugin supports all standard flags available in kubectl, such as --namespace, --context, and --kubeconfig.

Usage Examples:

Duplicate a Pod

$ kubectl duplicate pod my-pod

This command creates a new Pod identical to the original, with probes disabled and commands overridden to ensure it remains idle.

Interactively Select a Pod to Duplicate

$ kubectl duplicate pod

You will be prompted to select a Pod from a list in your specified namespace.

Duplicate a Deployment

$ kubectl duplicate deployment my-deployment

Customize Command Execution in a Cloned Pod

$ kubectl duplicate pod nginx-pod --command-override "/bin/sh","-c","echo Hello, World"

List All Duplicated Resources

$ kubectl duplicate list

Cleanup Duplicated Resources

$ kubectl duplicate cleanup

Use Cases:

Duplik8s is perfect for scenarios where you need to troubleshoot without affecting live Pods. Whether you need to investigate a non-responsive Pod or run a script in the same environment as a live instance, duplik8s allows you to do so safely and efficiently.

Moreover, when integrated with k9s, duplication becomes even easier. Simply press Ctrl-T after configuring your plugins, and you're ready to duplicate your Pods and dive into their containers effortlessly.

Experience the power and simplicity of duplicating Kubernetes resources with duplik8s, your go-to solution for enhanced Kubernetes management!