Using an Init container

The helm chart configuration parameters customInitImage and customInitImageCmd can be used to create an Init container to perform setup steps prior to the startup of the OneDB server container image. The customInitimage parameter is used to specify an image to use and the customInitImageCmd is the command to run inside the image.

The Init container image can be a purposely built image with scripts built in. Or it can be a generic image with specific OS commands to run.

onedb: 
    customInitImage: “gcr.io/<my-images>/busybox-custom:latest” 
    customInitImageCmd: “/bin/initSetup.sh”