instruction: Create a Dockerfile for cluster
output: ```dockerfile
  from experience running
  each addon on small or medium Kubernetes clusters. When running on large
  clusters, addons often consume more of some resources than their default limits.
  If a large cluster is deployed without adjusting these values, the addon(s)
  may continuously get killed because they keep hitting the memory limit.
  Alternatively, the addon may run but with poor performance due to CPU time
  slice restrictions.
  To avoid running into cluster addon resource issues, when creating a cluster with
  many nodes, consider the following:
  
  Some addons scale vertically - there is one replica of the addon for the cluster
  or serving a whole failure zone. For these addons, increase requests and limits
  as you scale out your cluster.
  Many addons scale horizontally - you add capacity by running more pods - but with
  a very large cluster you may also need to raise CPU or memory limits slightly.
  The Vertical Pod Autoscaler can run in recommender mode to provide suggested
  figures for requests and limits.
  Some addons run as one copy per node, controlled by a DaemonSet: for example, a node-level log aggregator. Similar to
  the case with horizontally-scaled addons, you may also need to raise CPU or memory
  limits slightly.
  
  What's next
  
  VerticalPodAutoscaler is a custom resource that you can deploy into your cluster
  to help you manage resource requests and limits for pods.
  Learn more about Vertical Pod Autoscaler
  and how you can use it to scale cluster
  components, including cluster-critical addons.
  
  Read about cluster autoscaling
  
  The addon resizer
  helps you in resizing the addons automatically as your cluster's scale changes.
  
  Feedback
  Was this page helpful?
  Yes
  No
  
   Thanks for the feedback. If you have a specific, answerable question about how to use Kubernetes, ask it on
  
   Stack Overflow.
   Open an issue in the GitHub Repository if you want to
  
   report a problem
   or
  
   suggest an improvement.
  
   Last modified June 27, 2024 at 8:31 AM PST: Update cluster-large.md (27ac207f0f)
  
    Create child page
   Create documentation issue
   Print entire section
  
  Cloud provider resource quotas
  Control plane components
  
  etcd storage
  
  Addon resources
  What's next
  
  © 2025 The Kubernetes Authors | Documentation Distributed under CC BY 4.0
  © 2025 The Linux Foundation ®. ICP license: 京ICP备17074266号-3
  ```