Difference between revisions of "Kubernetes Sidecar Containers"

From wikieduonline
Jump to navigation Jump to search
(Created page with "* https://kubernetes.io/docs/concepts/workloads/pods/sidecar-containers/ {{Sidecar}}")
 
Line 2: Line 2:
  
  
 +
{{sidecar-container}}
  
{{Sidecar}}
+
== See also ==
 +
* {{Sidecar}}

Revision as of 09:29, 22 October 2024


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"]

See also

Advertising: