Kubernetes has been around long enough now that there are a number of companies running Kubernetes. In our day jobs, we've seen Kubernetes run in production across a number of different industry verticals and in numerous configurations. Let's explore what folks across the industry are doing when providing customer-facing workloads. At a high level, there are several key areas:
- Make sure to set limits in your cluster.
- Use the appropriate workload types for your application.
- Label everything! Labels are very flexible and can contain a lot of information that can help identify an object, route traffic, or determine placement.
- Don't use default values.
- Tweak the default values for the core Kubernetes components.
- Use load balancers as opposed to exposing services directly on a node's port.
- Build your Infrastructure as Code and use...