Difference between revisions of "Sidecar-container"

From wikieduonline
Jump to navigation Jump to search
(Created page with " apiVersion: v1 kind: Pod metadata: name: my-pod spec: containers: - name: main-container image: busybox command: ["sh", "-c", "echo 'Main process runnin...")
 
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
apiVersion: v1
+
{{lc}}
kind: Pod
+
 
  metadata:
+
  {{sidecar-container}}
  name: my-pod
+
 
spec:
+
 
  containers:
+
 
  - name: main-container
+
 
    image: busybox
+
{{Sidecar}}
    command: ["sh", "-c", "echo 'Main process running'; sleep 30"]
 
  - name: sidecar-container
 
    image: [[busybox]]
 
    command: ["[[sh]]", "[[-c]]", "[[while true]]; do sleep 3600; done"]
 

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



Sidecar, Kubernetes Sidecar Containers, Sidecar (Kubernetes), Sidecar container

Advertising: