Using Helm Chart and Kubernetes, pass a file to the container during postStart
Follow the below steps
- Create a ConfigMap object using the file/script that you want to use in postStart event
- Mount the ConfigMap as volume inside the pod
- You should be able to access the file/script inside pod/container.