Using Helm Chart and Kubernetes, pass a file to the container during postStart Using Helm Chart and Kubernetes, pass a file to the container during postStart kubernetes kubernetes

Using Helm Chart and Kubernetes, pass a file to the container during postStart


Follow the below steps

  1. Create a ConfigMap object using the file/script that you want to use in postStart event
  2. Mount the ConfigMap as volume inside the pod
  3. You should be able to access the file/script inside pod/container.