Skip to content

Instantly share code, notes, and snippets.

View sensei-wu's full-sized avatar

Zenifer Cheruveettil sensei-wu

View GitHub Profile

A step by step comparison of ENTRYPOINT and CMD commands of docker

Theory

Both ENTRYPOINT and CMD are commands which are used for customizing the startup behavior of a container.

Both commands can be used interchangeably to serve similar purposes, but nevertheless there are subtle differences between them.

ENTRYPOINT is the right way to specify a startup command for a container.

Level 1 (CKAD) Level 2 (Baseline for production) Level 3 (Expert)
Create and configure basic Pods
  • Define Pod and node affinities
  • Understand Taints and Tolerations
Understand SecurityContexts
  • Understand full range of security context options including Linux capabilities
Define an applications resource requirements Define pod disruption budgets
Create and consume secrets
kubectl expose rc kubia --type=LoadBalancer --name kubia-http