Learning repository for Kubernetes — tracking daily exercises and explorations.
- Overview
- Objectives
- Repository Structure
- Prerequisites
- Usage
- Examples
- What I Learned
- Next Steps
- Author
This repository is part of my learning journey in Kubernetes.
It contains basic resource definitions used on Day 1 of studying Kubernetes — covering Pods, Namespaces, Deployments, etc., to understand how Kubernetes workloads are defined and run.
- Understand the basic Kubernetes resource types: Pod, Namespace, Deployment.
- Practice writing YAML manifests for these resources.
- Deploy simple applications in Kubernetes and observe how they work.
- Learn how Kubernetes schedules workloads inside namespaces and how to define deployments.
File | Purpose |
---|---|
namespace.yml |
Defines a Kubernetes Namespace for isolating resources. |
pod.yml |
Defines a Pod resource (single container). |
deployment.yml |
Defines a Deployment resource (manages replicas, rollouts). |
To use these manifests, you will need:
- A Kubernetes cluster (kind / minikube / k3s / GKE / EKS / AKS / etc.)
kubectl
configured to talk to your cluster- Basic knowledge of
kubectl
commands
Here’s how you can apply the configurations in this repository:
kubectl apply -f namespace.yml
kubectl get namespaces
kubectl apply -f pod.yml -n nginx-test
kubectl get pods -n nginx-test
kubectl apply -f deployment.yml -n nginx-test
kubectl get deployments -n nginx-test
kubectl get pods -n nginx-test