Kubernetes Application Best Practices Best practices for applications on Kubernetes git clone this repo and work your way through the individual READMEs in the following order: App Components What a Pod is and what a Pod is not Use Deployments for stateless components Resource requests and limits Use Services to expose and access your components App Troubleshooting Streamline your troubleshooting efforts App Patterns Use StatefulSets for stateful components Configure components via environment variables and use ConfigMaps for configuration parameters Persistence App Design Make your components log to stdout / stderr Graceful shutdown App Monitoring Use liveness and readiness probes on your components Expose your component's metrics on an endpoint App Security Run with ServiceAccounts Restricting network connectivity Unprivileged containers Read-only filesystem Minimal containers Scan your images Use Secrets with care App Deployment Be declarative Managing variants