Kubernetes Basics for Beginners: Run Containers
Compare pod, node, and container options for Kubernetes. Pick the right setup, avoid common pitfalls, and verify your cluster step by step.

On this page
TL;DR — Key takeaways
- Kubernetes runs containers through pods, which wrap one or more containers on a node.
- Choose managed Kubernetes for lower operational overhead and faster setup.
- Choose self-hosted Kubernetes when you need full control over the control plane and networking.
- Verify cluster health with kubectl get nodes, kubectl get pods, and pod logs before scaling.
- Always back up configuration and test upgrades in a staging environment first.
Kubernetes can feel overwhelming when you first start. The terminology alone is enough to make anyone pause. This guide breaks down the core pieces you need to run containers without years of DevOps experience.
I have seen support tickets where a single misconfigured pod blocked an entire deployment. The fix usually came down to checking node status, pod events, and image pulls. You can avoid that delay by following a clear order.
What Kubernetes Actually Runs
Kubernetes manages containers, but it does not run containers directly. It schedules them into pods. A pod is the smallest unit you can deploy. Each pod shares storage, network, and lifecycle behavior for its containers.
A node is the machine that hosts pods. The control plane decides where pods land and keeps the cluster state. For beginners, the mental model is simple: containers live inside pods, and pods live on nodes.
- Container: isolated process running your application
- Pod: one or more containers treated as a single unit
- Node: worker machine that runs pods
- Control plane: manages scheduling and cluster state
Managed vs Self-Hosted Kubernetes
Managed Kubernetes removes the heavy lifting of patching, upgrades, and control plane maintenance. Providers handle the control plane and often include monitoring and backup options. This path suits teams that want to deploy quickly and focus on applications.
Self-hosted Kubernetes gives you full control over the control plane, networking, and hardware. You choose the nodes, the OS, and the upgrade schedule. This path suits teams with strict compliance or cost requirements, but it demands more operational attention.
The trade-off is time versus control. Managed services reduce daily maintenance. Self-hosted setups can be cheaper at scale but require skilled staff to keep the cluster stable.
- Managed: faster setup, lower operational burden, vendor handles upgrades
- Self-hosted: full control, lower long-term cost at scale, higher maintenance
- Choose managed for speed and stability
- Choose self-hosted for control and custom infrastructure
Step-by-Step: Running Your First Container
Start with a simple deployment. Create a YAML file that names the image, the number of replicas, and the resource limits. Apply it with kubectl apply. Then verify the pod reaches the running state.
Check the node status first. If a node is not ready, the pod cannot start. Next, inspect pod events with kubectl describe pod. Look for image pull errors, scheduling failures, or failed probes. Finally, read the logs with kubectl logs to confirm the application starts.
- Write a deployment YAML with image, replicas, and resources
- Apply with kubectl apply -f deployment.yaml
- Run kubectl get nodes to confirm all nodes are ready
- Run kubectl describe pod to find scheduling or image errors
- Run kubectl logs to verify the application output
When Each Step Applies and How to Verify
This workflow applies to any new deployment, whether you use managed or self-hosted Kubernetes. The verification steps stay the same. A pod in the Running state does not guarantee the app works. Always check readiness and liveness probes.
If a probe fails, the pod may be running but unhealthy. Review the probe configuration in your YAML. Check the application logs for startup errors. Test the service endpoint directly before scaling the deployment.
- Verify node readiness before scaling
- Check pod events for scheduling and image issues
- Confirm probes pass before declaring success
- Test the service endpoint after deployment
- Scale only after the baseline deployment is stable
Common Pitfalls and Safe Testing Boundaries
The most common issue is a missing or wrong image tag. Kubernetes pulls the image from a registry, and a typo or missing tag causes a crash loop. Another frequent problem is insufficient resources. Set requests and limits so the scheduler can place pods correctly.
Never apply changes to production without a rollback plan. Back up your deployment YAML and cluster configuration. Test upgrades in a staging environment first. Keep the previous version available so you can revert quickly if something breaks.
- Verify image tags before applying
- Set resource requests and limits
- Back up configuration before any change
- Test upgrades in staging first
- Keep a rollback plan ready for production
How to Choose Your Path
If you need a working cluster in a day and plan to grow steadily, start with a managed Kubernetes service. If you already manage servers and need custom networking or hardware placement, build a self-hosted cluster. Both paths require the same verification habits.
The right choice depends on your team size, budget, and maintenance capacity. Managed services trade cost for convenience. Self-hosted setups trade convenience for control. Pick the option that matches your operational reality.
- Managed: best for speed, low maintenance, and predictable growth
- Self-hosted: best for control, custom networking, and long-term cost savings
- Match the choice to your team's maintenance capacity
- Use the same verification steps for both paths
Quick troubleshooting checklist
- Install kubectl and connect to the target cluster
- Run kubectl get nodes to confirm all nodes are ready
- Deploy a test pod and check its status with kubectl get pods
- Review pod logs with kubectl logs when troubleshooting
- Back up cluster configuration before any upgrade or scaling change
FAQ
What is the difference between a pod, a node, and a container in Kubernetes?
A container is the isolated process running your application. A pod is the smallest deployable unit in Kubernetes and can hold one or more containers that share storage and network. A node is a worker machine, either physical or virtual, that runs pods.
How do I choose between managed and self-hosted Kubernetes?
Choose managed Kubernetes if you want faster setup, automatic patching, and less operational overhead. Choose self-hosted Kubernetes if you need full control over the control plane, networking, and hardware placement.
What should I check first when a pod fails to start?
Check node status, pod status, events, and logs. Run kubectl get nodes to confirm nodes are ready, then kubectl describe pod to find scheduling or image issues, and kubectl logs to inspect application output.
Related articles
- Hosting OperationsKubernetes: 5 Basics That Save Deploy TimeStop debugging slow Kubernetes deploys. Compare 5 core basics to fix rollout delays and secure your cluster setup in minutes.
- Hosting OperationsKubernetes Deployment Guide 2026: From Basics to Production: Practical GuideStep-by-step Kubernetes deployment guide covering cluster setup, workload deployment, security hardening, and production readiness with practical examples.
- Hosting OperationsKubernetes Tutorial 2025: How to Deploy Your First Cluster: Practical GuideStep-by-step Kubernetes tutorial for deploying your first cluster. Learn kubectl basics, pod management, and production-ready configurations with testable
- Hosting OperationsKubernetes Best Practices: 5 Fixes for StabilityCompare resource limits, ingress setup, and monitoring. See which Kubernetes best practices fix stability issues and when to apply each one.
- Hosting Operationskubernetes explained: Best Options in 2026Compare managed Kubernetes options for 2026. Learn trade-offs, setup steps, and how to verify your cluster before you deploy.
- Hosting OperationsNew AWS Services: 2026 Architecture ComparisonCompare new AWS services to cut TCO. Fix architecture gaps by evaluating serverless vs. container trade-offs for mid-size teams.