[ESR] Force esr-server to run as non-root 89/107789/1
authorKrzysztof Opasiak <k.opasiak@samsung.com>
Thu, 14 May 2020 19:28:54 +0000 (21:28 +0200)
committerKrzysztof Opasiak <k.opasiak@samsung.com>
Mon, 18 May 2020 13:16:21 +0000 (13:16 +0000)
commit8a538c7d286233a56ccf3b0adcedb9ca01045130
tree7349afc84517065b45b70bee29ecb2ee83f1e018
parent7dd6dd1de5ef186769d3df5f5b8d2f57c1448ffe
[ESR] Force esr-server to run as non-root

Use securityContext to run esr-server as a non-root user.
Unfortunately esr-server docker is built in a way that doesn't allow use
to just change the user and continue using it. We need to make sure
that conf dir is writable for this user because this docker modifies
its configuration files from docker_entrypoint.sh

Issue-ID: AAI-2896
Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com>
Change-Id: If6eba45c9571753fa9e5ce4f386c2e391788c734
(cherry picked from commit 1e6740ddde8f7040b204e63bc457c1f6bea90523)
kubernetes/esr/charts/esr-server/templates/deployment.yaml