• There are actually two ways to create and manage K8s components.
  • Imperative and declarative
ApproachImperativeDeclarative
ExplanationTelling Kubernetes what to doTelling Kubernetes what we want
ToolKubernetes CLI (e.g., kubectl)Kubernetes configuration files (YAML)
CapabilityEnables direct interaction with the clustersProvides an alternative for managing more complex architectures
OperationsOperate directly on live objectsOperate on object’s configuration files
LimitationNot suitable for managing complex architecturesYAML configuration files offer a more scalable approach for complex scenarios

⬅️ Kubernetes Architecture Control Plane and Worker Nodes | Main kubernetes components ➡️