Difference between revisions of "Resource Management for Pods and Containers"

From wikieduonline
Jump to navigation Jump to search
Line 9: Line 9:
  
  
{{kind pod resource}}
+
{{kind pod resources}}
  
 
== See also ==
 
== See also ==
  
 
* {{Kubernetes scheduler}}
 
* {{Kubernetes scheduler}}

Revision as of 07:26, 30 May 2024


spec.containers: image


---
apiVersion: v1
kind: Pod
metadata:
  name: frontend
spec:
  containers:
  - name: app
    image: images.my-company.example/app:v4
    resources:
      requests:
        memory: "64Mi"
        cpu: "250m"
      limits:
        memory: "128Mi"
        cpu: "500m"
  - name: log-aggregator
    image: images.my-company.example/log-aggregator:v6
    resources:
      requests:
        memory: "64Mi"
        cpu: "250m"
      limits:
        memory: "128Mi"
        cpu: "500m"

See also

Advertising: