Difference between revisions of "Spec.containers"

From wikieduonline
Jump to navigation Jump to search
Line 3: Line 3:
 
{{spec.containers}}
 
{{spec.containers}}
  
== [[Sidecar]] containers ==
+
== [[Sidecar containers]] ==
 
  {{sidecar-container}}
 
  {{sidecar-container}}
 
  
 
== Related ==
 
== Related ==

Revision as of 10:56, 22 October 2024

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

Sidecar containers

 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

See also

Advertising: