Sidecar-container

From wikieduonline
Revision as of 09:28, 22 October 2024 by Welcome (talk | contribs) (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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
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"]

Advertising: