Your DevOps study space

Real explanations. Videos with tests. Fresh exams every time. Keep the streak alive and watch the XP stack up.

Docker & Kubernetes networking · Networking Docs · StackwisePlanDevOps Docker & Kubernetes networking · Networking Docs · StackwiseCodePython Docker & Kubernetes networking · Networking Docs · StackwiseBuildDocker Docker & Kubernetes networking · Networking Docs · StackwiseTestDevOps Docker & Kubernetes networking · Networking Docs · StackwiseReleaseGit Docker & Kubernetes networking · Networking Docs · StackwiseDeployKubernetes Docker & Kubernetes networking · Networking Docs · StackwiseOperateLinux Docker & Kubernetes networking · Networking Docs · StackwiseMonitorDevOps

Pick a topic

Eight tracks, each with docs, a cheat sheet, videos and tests.

How it works

One loop, repeated until it sticks.

Jump back in

Picked up from where you left off.

Free forever

Your DevOps journey starts with one click.

Sign in with Google or GitHub to open every chapter, video, test and challenge. Your progress is saved wherever you learn.

Docker & Kubernetes networking

Containers added another layer of networking on top of servers. Nana's networking video tells it as a story in phases (physical servers, then virtual machines, then cloud, then Docker, then Kubernetes), and each phase adds one idea you need to know.

From servers to VMs to containers

With physical servers, each machine had its own network card and IP. Virtual machines put several machines on one physical server; the hypervisor gives each VM a virtual network card and connects them through a virtual switch. Containers go one step further: many isolated apps share one operating system, and Docker gives each container its own small virtual network setup.

Docker networking

  • Bridge network (the default): Docker creates a private virtual network on the host, usually 172.17.0.0/16, and each container gets its own IP on it. Containers on the same user-created network can reach each other by container name, because Docker runs a small DNS for them. That's why a web container can connect to db:5432.
  • Port mapping makes a container reachable from outside the host: docker run -p 8080:80 nginx sends traffic arriving on the host's port 8080 to port 80 inside the container. Without -p, nothing outside the host can reach it.
  • Host network (--network host): the container uses the host's network directly, with no isolation and no mapping.
  • Overlay network: stretches one virtual network across several hosts, so containers on different machines can talk as if they were side by side (used by Docker Swarm).
$ docker network create appnet
$ docker run -d --name db  --network appnet postgres
$ docker run -d --name web --network appnet -p 8080:3000 myapp
#   web reaches the database at "db:5432"; your browser reaches web at localhost:8080
visitoroutsidehost machine:8080host portbridge network 172.17.0.0/16web 172.17.0.2:80containerdb 172.17.0.3:5432container-p 8080:80db:5432 by name
Containers get private IPs on a bridge network and find each other by name. Only ports you publish with -p are reachable from outside the host.

Kubernetes networking

Kubernetes runs containers in pods across many machines (nodes), and its networking follows a few simple rules:

  • Every pod gets its own IP, unique in the whole cluster, and any pod can reach any other pod directly, with no NAT or port mapping. The plugin that sets this up is the CNI (Container Network Interface), for example Calico or Flannel.
  • Pods are temporary: when one is replaced it gets a new IP. So you never connect to a pod's IP directly. Instead you use a Service: a stable virtual IP and DNS name (like my-api.default.svc.cluster.local, or simply my-api) that load-balances across all the healthy pods behind it.
  • kube-proxy runs on every node and programs the rules that make a Service's IP forward to the right pods.
  • Service types: ClusterIP (default, reachable only inside the cluster), NodePort (opens the same port on every node), and LoadBalancer (asks the cloud for a real external load balancer).
  • An Ingress handles incoming HTTP/HTTPS from outside and routes it to Services by hostname or path (api.demee.cc to the API service, / to the frontend). It needs an ingress controller, usually Nginx, running in the cluster to do the actual routing.
  • By default every pod can talk to every other pod. NetworkPolicies are firewall rules between pods, for example "only the API pods may connect to the database pods".

Big setups sometimes add a service mesh (Istio, Linkerd): a small proxy next to every pod that handles encryption between services, retries and traffic metrics without changing the app.

Questions

Pick an answer. Get it wrong and you can try again right away, no waiting. 10 questions per topic - pick a filter below, then use Recreate questions for a fresh set on that topic.

Fresh questions every time

Exam

A mixed test across the whole site, shuffled so you never know which topic comes next. When you submit, every mistake comes with the reason and a jump to the exact moment in the video that explains it.

30 questions 6 topics 20 minute limit Up to 70 XP
1–4 answer · ←→ move
History

Essay

0 / 200-250 words
Sample answer
History
0:00 / 0:00
Not started

on YouTube
Subscribe

Topic progress

Activity

Achievements

Settings

Your profile and your account.

Profile details

* Required. Saved in this browser until you sign in.

Letters, numbers, dots, dashes and underscores.
0 / 160

Account

Checking…

App

Install Stackwise on your phone or computer. It opens in its own window from your home screen, and the Docs and cheat sheets you've opened keep working without internet.

Only admins can see this

Dashboard

Sign-ups, activity, messages and reviews in one place.

Prove it

Certificates

Pass a topic's test and get a certificate with its own public page you can share or add to LinkedIn. Each test is 10 questions drawn at random and graded on the server; you need 8 right, you have 15 minutes, and you get one try per topic a day.

From first command to production

Linux for DevOps

A path through Linux the way DevOps engineers use it: ten stages, every command explained with its flags, examples, real output and mistakes, the combinations engineers chain together, and incidents worked through step by step. Practise everything in a safe lab folder.

Before the interview

Interview prep

Questions that come up in real DevOps interviews, with the kind of answer that lands. Say yours out loud first, then compare. Each one links to the chapter that goes deeper.

    Private to you

    My notes

    Everything you wrote down while watching and reading, in one place. Saved to your account, never shown to anyone.