Changing the User ID

Our default image use node user with uid and gid 1000.

If you want to change them, create custom image with following commands

FROM <IMAGE>:<TAG> # choose your base image
RUN apk add -U shadow \
    && usermod -u 1002810011 node \
    && groupmod -g 1002810011 node \
    && chown -R node:node /home/node \
    && chown -R node:node /usr/app/services/deployment-service/ \
    && apk del -U shadow

When installing the agent add runAsUser and runAsGroup to helm values.customer.yml, not that strictSecurityContext must also be enabled to modify the uid and gid.

strictSecurityContext: true
runAsUser: "1002810011"
runAsGroup: "1002810011"