PCDS Tutors — Home • Online • Academic • Professional LearningServing 10+ launch cities • Expanding across India
Practical learning guideIntermediate

Kubernetes: Tutorial, Projects & Course Syllabus

Kubernetes workloads, services, configuration, security and operations.

Who this is for

Developers, DevOps and platform engineers

Before you start

Docker basics and Kubernetes resource concepts. A local disposable cluster is optional.

Practical lesson

Read a Deployment specification and its rollout behavior

A Deployment reconciles a desired replica count and manages rolling updates through ReplicaSets.

A readiness probe controls whether a pod is considered ready for traffic. It is not the same as a liveness probe.

Set up your practice environment

Read the following manifest. If you already have a disposable local cluster, save as demo.yaml and use kubectl apply --dry-run=client -f demo.yaml; do not apply it to production. Image tag is illustrative and must be reviewed before actual deployment.

yaml
apiVersion: apps/v1
kind: Deployment
metadata:
  name: study-demo
spec:
  replicas: 2
  selector:
    matchLabels:
      app: study-demo
  template:
    metadata:
      labels:
        app: study-demo
    spec:
      containers:
        - name: web
          image: nginx:alpine
          ports:
            - containerPort: 80
          readinessProbe:
            httpGet:
              path: /
              port: 80

Expected result

The manifest requests two pods with matching labels and HTTP readiness checks. It does not create a public Service or Ingress. A dry run validates basic resource structure but not application health.

Walk through the example

  1. The selector must match labels in the pod template.
  2. The Deployment controller reconciles two desired replicas.
  3. Readiness checks determine whether the pod is ready to serve; a Service would select matching ready pods.

Common mistake

A containerPort declaration alone does not expose the workload publicly or create a Service.

Try it yourself

Change replicas to 3. What additional object would you need for stable in-cluster addressing?

Reveal suggested solution

Set replicas: 3 and design a ClusterIP Service with selector app: study-demo and targetPort 80. Review resource requests and rollout behavior before a real deployment.

Portfolio project brief

Design a staged rollout of a learning web app with resource limits, probes, internal Service, monitoring and rollback.

Acceptance criteria

  • Validate manifests on a disposable cluster.
  • Do not store real secrets in YAML.
  • Demonstrate a failed readiness check and document rollback.

This is a project specification, not a completed downloadable project. Build and test it independently or with a mentor.

Quick self-test

Choose one answer per question, then check your score. No sign-in required.

1. What does replicas: 2 express?
2. What indicates that a pod can receive traffic?

Complete learning roadmap

These are suggested course modules, not a claim that every module has a full tutorial on this site.

  1. 01Cluster concepts
  2. 02Pods & deployments
  3. 03Services & ingress
  4. 04ConfigMaps & secrets
  5. 05Storage & scaling
  6. 06Observability & troubleshooting

Learning outcomes

  • Deploy workloads
  • Expose and scale services
  • Troubleshoot clusters

Continue with official documentation

Original PCDS learning material. Check the official documentation for your installed software version; these guides are not vendor-endorsed courses.

Kubernetes Deployment documentation →

Need help learning Kubernetes?

Choose a city and describe your learning goal in the enquiry form. Mention Kubernetes, your current level and whether you prefer home or online learning. Tutor availability and pricing are subject to confirmation.

Browse Kubernetes tutoring options in Mira Road or select a city above.

Kubernetes Tutorial, Practical Project & Course Syllabus | PCDS Learning