aws-samples / aws-workshop-for-kubernetes

AWS Workshop for Kubernetes
Apache License 2.0
2.66k stars 1.07k forks source link

Kubernetes Design Patterns and Anti-Patterns #39

Open arun-gupta opened 7 years ago

arun-gupta commented 7 years ago

Let's list Kubernetes design patterns here:

Anti-patterns

dalbhanj commented 7 years ago

Design pattern - have regular backups of your etcd cluster state?

dalbhanj commented 7 years ago

Design pattern - Evaluate HA for your clusters and applications and follow appropriate upgrade process (in-place or blue/green)

christopherhein commented 7 years ago

@dalbhanj do you consider backups of etcd cluster state an anti-pattern or design pattern?

christopherhein commented 7 years ago

add design practices: imperative vs declarative object management.

https://kubernetes.io/docs/tutorials/object-management-kubectl/object-management/

Raffo commented 7 years ago

For users, I would also consider discussing the number of replicas in a deployment. It happened to us that someone was using deployments with only one replica... and then complained about their application not being available. We usually recommend minimum 3 when they are interested in HA.