I have OpenShift 4.7 installed, using the default restricted SCC. The UID range is:
openshift.io/sa.scc.uid-range: 1000700000/10000
I have 3 replica pods of a Deploymwent, and all are getting the same UID:
uid=1000700000(1000700000) gid=0(root) groups=0(root),1337
In OpenShift documentation they say that pods are getting a random UID, starting with the first ID within the range. So I assumed that the first pod will get UID 1000700000, second pod will get 1000700001 and the third pod will get 1000700002.
I deleted one of the pods, and it restarted with the same UID again.
Is that the correct behaviour?