Closed Milstein closed 2 months ago
@Milstein I've just created https://github.com/OCP-on-NERC/nerc-ocp-config/pull/535, which grants the necessary privileges to the robbie-job-runner
ServiceAccount to make this work.
Matt will need to update his Deployment to (a) use the robbie-job-runner
ServiceAccount, if it isn't already and (b) set an explicit UID on the container. That might look something like this:
apiVersion: apps/v1
kind: Deployment
metadata:
name: uidexample
spec:
template:
spec:
# Run pod using the robbie-job-runner serviceaccount.
serviceAccountName: robbie-job-runner
containers:
- name: uidexample
image: uidexample:latest
# Run the pod with the uid of the "positron" user
securityContext:
runAsUser: 1001970001
This should work as soon as the PR closes.
Issue with users' jobs withing a pod isolation: