Kubernetes Sidecar Containers

From wikieduonline
(Redirected from Sidecar Containers)
Jump to navigation Jump to search

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

See also[edit]

Advertising: