Difference between revisions of "Spec.containers"

From wikieduonline
Jump to navigation Jump to search
(Created page with " https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/#resource-requests-and-limits-of-pod-and-container spec.containers[].resources.limits.cpu...")
 
 
(16 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 +
{{lc}}
 +
https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/#resource-requests-and-limits-of-pod-and-container
 +
 +
 +
 +
{{spec.containers TOC}}
 +
 +
 +
{{Kind pod nginx}}
  
https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/#resource-requests-and-limits-of-pod-and-container
+
== [[Sidecar containers]] ==
[[spec.]]containers[].resources.limits.cpu
+
{{sidecar-container}}
spec.containers[].resources.limits.memory
+
 
spec.containers[].resources.limits.hugepages-<size>
+
== Related ==
spec.containers[].resources.requests.cpu
+
* <code>[[containers:]], [[Kubernetes, env:|env:]]</code>
spec.containers[].resources.requests.memory
+
* <code>[[kind: Deployment]], [[kind: Pod]]</code>
spec.containers[].resources.requests.hugepages-<size>
+
* <code>[[template.metadata]]</code>
 +
 
 +
== See also ==
 +
* {{containers:}}
 +
* {{spec.containers}}
 +
* {{kind: Pod}}
 +
 
 +
[[Category:Docker]]

Latest revision as of 18:57, 27 October 2024

https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/#resource-requests-and-limits-of-pod-and-container


spec.containers[].image
spec.containers[].command  
spec.containers[].tty  
spec.containers[].stdy  
spec.containers[].resources.limits.cpu
spec.containers[].resources.limits.memory
spec.containers[].resources.limits.hugepages-<size>
spec.containers[].resources.requests.cpu
spec.containers[].resources.requests.memory
spec.containers[].resources.requests.hugepages-<size>
spec.containers[*].volumeMounts


apiVersion: v1
kind: Pod
metadata:
  name: nginx
  labels:
    env: test
spec:
  containers:
  - name: nginx
    image: nginx
    imagePullPolicy: IfNotPresent
  nodeSelector:
    disktype: ssd

Sidecar containers[edit]

 apiVersion: v1
kind: Pod
metadata:
  name: my-pod
spec:
  containers:
  - name: main-container
    image: busybox
    command: ["sh", "-c", "echo 'Main process running'; sleep 30"]
  - name: sidecar-container
    image: busybox
    command: ["sh", "-c", "while true; do sleep 3600; done"]

Related[edit]

See also[edit]

Advertising: