Openshift deployment without requiring admin privileges
Closed this issue · 2 comments
djuarezg commented
Openshift deployment templates are really great, but could be adapted to run under an unprivileged environment, i.e. shared Openshift cluster where you might not have admin privileges for running Security context changes.
Currently the required workaround is to add initContainers
+ volumes or build images ourselves with permission edits.
djuarezg commented
Related to this privileges templates could be improved by separating configuration files to configMaps, as in this extract:
volumeMounts:
(...)
- mountPath: /etc/faf/plugins/centosmantisbt.conf
name: centosmantis
subPath: centosmantisbt.conf
volumes:
(...)
- configMap:
name: centosmantis
name: centosmantis
Of course another option would be to deal with permissions on /etc/faf/*
as these files cannot be edited unless you have admin privileges on the cluster to run apps as root. Either that or mount them from a configMap