Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

To test application changes on Kubernetes locally, start a cluster, build a new container image, make that image available to the cluster, update the Deployment to use it, and verify the running Pod before exercising the app. A source-code edit alone does not alter the container already running in Kubernetes.

Choose a local Kubernetes option

Kubernetes describes local clusters as a safe environment for learning and experimentation. For testing your own code, choose a cluster tool that can use the container image you build. Kubernetes lists local learning environments and browser-based playgrounds; a playground can help you practice commands, but a local cluster is the practical choice for iterating on your own application image.

Option What it provides What to consider
kind A Kubernetes cluster whose nodes run in Docker or Podman containers. Install Docker or Podman. Its documented workflow builds an image, loads it into kind, then applies a manifest. See the kind Quick Start.
minikube A local cluster that can be single-node or multi-node. It supports multiple drivers and runtimes; setup varies by host and selected driver. It can build an image for the cluster or load an image built elsewhere. See minikube image workflows.
Browser playground A browser-based environment for practicing Kubernetes concepts and commands. Kubernetes names Killercoda among the learning options. It is not a substitute for building and deploying your own source tree in a local cluster.

Install kubectl before setting up a cluster; Kubernetes identifies it as the primary command-line tool for communicating with a cluster. Follow the current installation instructions for your operating system and chosen cluster driver in the Kubernetes tools guide.

Start the cluster and check your context

For minikube, start the cluster and confirm its status:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
#1 Best Overall
Elebase USB to USB C Adapter for iPhone 18 Pro Max,USBC Car Charger Adapter
  • Read Before You Buy — No Video Output: These adapters support charging and USB 2.0 data transfer, but cannot transmit video signals. Except for standard USB webcams (which use USB data only), they are not compatible with HDMI/DisplayPort cables, video-capable USB-C hubs, or docking stations with video output.
  • Convert USB-A Ports to USB-C: Designed to connect USB-C earphones, cables, flash drives, card readers, and other USB-C accessories to standard USB-A ports. Plug-and-play with no drivers or software required.
  • Aluminum Alloy Housing: Built with a sturdy aluminum alloy shell that aids in heat dissipation and protects against daily wear and scratches. Designed to maintain a stable and secure connection.
  • Compact & Travel-Friendly: The ultra-compact design allows the adapter to stay plugged into your device without blocking adjacent ports or adding bulk, reducing wear and tear on your original USB ports.
  • 12-Month Warranty: Backed by a 12-month manufacturer warranty for peace of mind. Designed to meet strict quality control standards for reliable everyday performance.
minikube start
minikube status

The Hello Minikube walkthrough checks that cluster components are running before deploying. For kind, create a cluster using its Quick Start instructions. Before applying anything, check which cluster kubectl will use:

kubectl config current-context

kubectl selects a cluster, user, and context from its kubeconfig. If the displayed context is not the local cluster you intend to use, switch to the correct context before continuing; otherwise commands may affect a different cluster. The kubectl documentation explains this configuration.

Build a new image from your changed source

After editing the application, build a new container image using the project’s Dockerfile and build context. The command below is a pattern: replace the context and any build options with those required by the repository.

Rank #2
Anker USB-C Hub, 5-in-1 USB Hub for Laptops, 4K HDMI Multiport Adapter
  • 5-in-1 USB-C Hub: Experience comprehensive connectivity featuring a Power Delivery input, two USB-A 2.0 ports, a USB-A 3.0 port, and an HDMI port. (Note: The USB-C power delivery input port is only for connecting an external wall charger to power your laptop and cannot power peripheral devices.)
  • 90W Pass-Through Charging: Achieve optimal charging with 90W pass-through power to your laptop, supported by a total input of 100W, with the hub reserving 10W for operational efficiency. (Note: Wall charger not included.)
  • Quick Data Transfers: Accelerate your productivity with rapid data transfers using a high-speed 5Gbps USB 3.0 port and two 480Mbps USB 2.0 ports.
  • 4K HDMI Display: Enhance your visual experience with a hub capable of delivering 4K resolution at 30Hz in both mirror and extend modes. Please note that this hub is compatible with MacBook (macOS 12 and newer), Windows 10 and 11, ChromeOS, and laptops equipped with DP Alt Mode and Power Delivery. Note: This device is not compatible with Linux.
  • What You Get: Anker USB-C Hub (5-in-1, 4K HDMI), welcome guide, 18-month warranty, and our friendly customer service.
docker build -t my-app:dev1 .

Use a tag that identifies the build, such as dev1, then bump it to dev2 after another change. A distinct tag makes it easier to confirm which image the Deployment is meant to run. The Kubernetes workflow sources document image building and loading, but the application’s own build command and required context depend on the project.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Make the image available to the cluster

A locally built image is not necessarily available to the cluster’s nodes. Choose the matching image workflow:

With kind

kind load docker-image my-app:dev1

kind documents this load step between building the image and applying the Deployment. See its Quick Start for the complete sequence.

Rank #3
Sale
Anker USB C Hub, 7in1 Multi-Port USB Adapter, 4K@60Hz USBC to HDMI Splitter
  • Sleek 7-in-1 USB-C Hub: Features an HDMI port, two USB-A 3.0 ports, and a USB-C data port, each providing 5Gbps transfer speeds. It also includes a USB-C PD input port for charging up to 100W and dual SD and TF card slots, all in a compact design.
  • Flawless 4K@60Hz Video with HDMI: Delivers exceptional clarity and smoothness with its 4K@60Hz HDMI port, making it ideal for high-definition presentations and entertainment. (Note: Only the HDMI port supports video projection; the USB-C port is for data transfer only.)
  • Double Up on Efficiency: The two USB-A 3.0 ports and a USB-C port support a fast 5Gbps data rate, significantly boosting your transfer speeds and improving productivity.
  • Fast and Reliable 85W Charging: Offers high-capacity, speedy charging for laptops up to 85W, so you spend less time tethered to an outlet and more time being productive.
  • What You Get: Anker USB-C Hub (7-in-1), welcome guide, 18-month warranty, and our friendly customer service.

With minikube

Load an image built with Docker or another local workflow:

minikube image load my-app:dev1

Or build it through minikube:

minikube image build -t my-app:dev1 .

The available behavior depends on the selected driver and runtime; consult the minikube image documentation for the applicable method.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Point the Deployment at the new image and apply it

In your Deployment manifest, set the container image under spec.template.spec.containers[].image to the exact tag you just made available, for example my-app:dev1. The manifest’s image-pull policy must also suit local images. Kubernetes defaults to Always when the image tag is latest or no tag is specified; for other tags, the documented default is IfNotPresent. For a local-only image workflow, avoid relying on latest; use a versioned tag with IfNotPresent, or use Never when appropriate to your setup and the image is already present on the node.

Rank #4
Sale
UGREEN USB to USB C Adapter Combo 4-Pack, 10Gbps USB C Converter Space Gray
  • Dual Converters, Infinite Potential:Includes 2× USB C male to USB A female adapters and 2× USB A male to USB C female adapters. Perfect for a wide range of uses—tablets with Bluetooth keyboards, expand USB ports on macbook, and more. Two different converters for all your daily needs
  • Next-Level 10Gbps & 3A Charging: No more slow 480Mbps, this usb to usb c adapter has a transfer speed of up to 10Gbps, allowing you to do more transferring in less time. This usb adapter fits both USB A and USB C charger, supporting up to 3A fast charging
  • Upgraded Exquisite Craftsmanship: With an aluminum alloy housing and metal connector, the usbc to usb adapter is extremely durable and sturdy. Rigorously tested to withstand more than 10,000 times of plugging and unplugging, ensuring long-lasting performance
  • Broad Compatible: The usb c to usb adapter widely supports all USB C/ USB A devices like laptops, tablets, cellphones, car chargers, and phone chargers. Such as compatible with MacBook Pro/Air 2023/2022, Thunderbolt 4/3 Devices,Apple MagSafe Watch 9/8/7/SE/Ultra, iPad Pro 2022/2021, Samsung Galaxy S23/S20/S10, and iPhone 17/16/15 Pro. Plug and play
  • Please Note: To reach 10Gbps speed, keep the cable under 3.3 ft. For USB A Male to USB C adapters, try flipping the USB C connector. USB C Male to USB A adapters support bidirectional 10Gbps transfer within 3.3 ft

Apply the manifest declaratively:

kubectl apply -f deployment.yaml

Keeping manifests in version control makes the desired workload configuration reviewable and repeatable. Imperative commands can be useful for a quick experiment, but they are harder to reproduce and audit than applying a manifest.

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Verify the rollout and test the running application

Check the Deployment and Pods after applying the updated manifest:

kubectl get deployments
kubectl get pods

Wait for the intended replica to become ready before testing. If the Pod is still starting, examine its status, recent events, and container output:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Best Value
Anker USB C Hub, 5-in-1 USBC to HDMI Splitter with 4K Display
  • 5-in-1 Connectivity: Equipped with a 4K HDMI port, a 5 Gbps USB-C data port, two 5 Gbps USB-A ports, and a USB C 100W PD-IN port. Note: The USB C 100W PD-IN port supports only charging and does not support data transfer devices such as headphones or speakers.
  • Powerful Pass-Through Charging: Supports up to 85W pass-through charging so you can power up your laptop while you use the hub. Note: Pass-through charging requires a charger (not included). Note: To achieve full power for iPad, we recommend using a 45W wall charger.
  • Transfer Files in Seconds: Move files to and from your laptop at speeds of up to 5 Gbps via the USB-C and USB-A data ports. Note: The USB C 5Gbps Data port does not support video output.
  • HD Display: Connect to the HDMI port to stream or mirror content to an external monitor in resolutions of up to 4K@30Hz. Note: The USB-C ports do not support video output.
  • What You Get: Anker 332 USB-C Hub (5-in-1), welcome guide, our worry-free 18-month warranty, and friendly customer service.
kubectl get events
kubectl describe pod <pod-name>
kubectl logs <pod-name>

Replace <pod-name> with the Pod name shown by kubectl get pods. The Hello Minikube tutorial demonstrates checking status, events, and logs. Then run the project’s own tests and reach the application using its configured access path. A Pod is private by default; for a simple local check, the tutorial demonstrates proxy access, while ordinary exposure to clients requires an appropriate Service and access setup.

Troubleshoot common iteration failures

  • ImagePullBackOff: Confirm that the image tag in the manifest exactly matches the one loaded or built for the cluster. Check that the image is available to the relevant node and that the pull policy is compatible with the local workflow.
  • The old code still appears: Rebuild after the source edit, use a new tag, load that exact tag into the cluster, and update the Deployment image field to match. Reusing an ambiguous tag or leaving the manifest unchanged can leave the old workload image in place.
  • The Pod is not ready: Check Deployment and Pod status, inspect events for scheduling or startup problems, then read the container logs. Startup may take time; status and logs show whether it is progressing or failing.
  • Changes went to the wrong cluster: Check kubectl config current-context and kubeconfig before applying. Select the intended local context before repeating the deployment command.

A successful local run confirms behavior only in that local setup. A single-node learning cluster, for example, does not reproduce every production topology or managed-cluster condition.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.