I've added an option to specify security context for Kubernetes pods. This is done by specifying a ConfigMap, its namespace and a key that holds a yaml securityContext configuration in the environment variables.
To have "runAsGroup" option available I had to update io.kubernetes to 3.0.0 I chose this version as it supported "runAsGroup" and required very few changes in the code.
I've added an option to specify security context for Kubernetes pods. This is done by specifying a ConfigMap, its namespace and a key that holds a yaml securityContext configuration in the environment variables.
To have "runAsGroup" option available I had to update io.kubernetes to 3.0.0 I chose this version as it supported "runAsGroup" and required very few changes in the code.