This repository contains a comprehensive set of Kubernetes YAML manifests for learning and practicing different Kubernetes concepts. Each file demonstrates a specific Kubernetes resource or configuration, making it a handy reference for both beginners and advanced users.
podspec.yaml,devpod.yaml,expod.yaml– Basic Pod specificationsdep.yaml,nginx-deployment.yaml– Deploymentsrc.yaml,repc.yaml– ReplicationController examplesreplicasetpod.yaml,replicasetmatchlabel.yaml,matchexpressionset.yaml– ReplicaSet demos
svc.yaml,nginx-service.yaml– ClusterIP servicesNodeport.yaml,lb.yaml– NodePort & LoadBalancer servicesheadless.yaml– Headless servicesvcwithoutsel.yaml,ep.yaml– Endpoint serviceingressdeploy.yaml– Ingress with deployment
pv.yaml,pvc.yaml,pvpod.yaml– PersistentVolume, PersistentVolumeClaim, and pod usageemptydirpod.yaml– UsingemptyDirresource-pod.yaml,rquota.yaml– Resource requests, limits & quotas
cm.yaml,cm-pod.yaml– ConfigMapssec.yaml,secenvpod.yaml,secvolpod.yaml– Secrets (env & volume usage)
livenessprobe.yaml– Liveness probereadinessprobe.yaml– Readiness probestartupprobe.yaml– Startup probe
nodeselector.yaml,nodeaffinity.yaml– Node selection & affinitypodaff.yaml,podaffnity.yaml,podantiaff.yaml,podantiaffinity.yaml– Pod affinity & anti-affinitywith-affinity-antiaffinity.yaml– Combined scheduling rulestoleration.yaml– Tolerations for taints
role.yaml,rolebind.yaml– Role & RoleBindingclusrole.yaml,clusbinding.yaml– ClusterRole & ClusterRoleBindingru.yaml,sf.yaml,mb-config.yaml– Security-related configs
components.yaml– Multi-component manifestns.yaml– Namespace definitionmetrics.yaml– Metrics-related resourcemulticont.yaml– Multi-container podlrange.yaml– Label range selector demo
-
Clone the repository:
git clone https://github.com/<your-org>/<your-repo>.git cd <your-repo>
-
Apply any manifest to your Kubernetes cluster:
kubectl apply -f dep.yaml kubectl get pods
-
Clean up:
kubectl delete -f dep.yaml
By using this repository, you will learn:
- How to deploy applications with Pods, Deployments, and ReplicaSets
- Exposing apps via ClusterIP, NodePort, LoadBalancer, and Ingress
- Managing storage with Persistent Volumes, PVCs, and EmptyDir
- Configuring ConfigMaps and Secrets securely
- Implementing Probes for health checks
- Applying scheduling techniques (nodeSelector, affinity, tolerations)
- Setting up RBAC for access control
- Add Helm charts for templated deployments
- Provide real-world multi-tier app examples
- Integrate with CI/CD pipelines (ArgoCD, Flux, Jenkins)
.