Kubernetes how to create a sidecar which runs initialization and terminate Kubernetes how to create a sidecar which runs initialization and terminate kubernetes kubernetes

Kubernetes how to create a sidecar which runs initialization and terminate


I use Job to accomplish the task.

apiVersion: batch/v1kind: Job