Kubernetes FAQ

Deployment vs Service

  • Pod contains set of containers. One primary and other supporting containers. Pod = Replica and Deployment = ReplicaSet ???
  • Deployment represent set of multiple identical pods.
  • Deployment suitable for stateless applications.
  • For stateful applicationns use StatefulSets instead of Deployment.

StatefulSets

  • StatefulSets are suitable for deploying Kafka, MySQL, and other applications needing unique, persistent identities and stable hostnames.

ConfigMaps

  • A ConfigMap is an API object used to store non-confidential data in key-value pairs.
  • A ConfigMap allows you to decouple environment-specific configuration from your container images, so that your applications are easily portable.
  • For confidential data, use a Secret rather than a ConfigMap.