aws-samples / aws-workshop-for-kubernetes

AWS Workshop for Kubernetes
Apache License 2.0
2.64k stars 1.06k forks source link

Kubernetes Design Patterns and Anti-Patterns #39

Open arun-gupta opened 6 years ago

arun-gupta commented 6 years ago

Let's list Kubernetes design patterns here:

Anti-patterns

dalbhanj commented 6 years ago

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

dalbhanj commented 6 years ago

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

christopherhein commented 6 years ago

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

christopherhein commented 6 years ago

add design practices: imperative vs declarative object management.

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

Raffo commented 6 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.