Modify Openshift 3.7 projects region
Hi :D this is a really easy and fast advice about how to change the region in Openshift projects.
Is a classic problem, wait, wait … is a need for any kind of role that has the ownership of the project, even administrator or operator, especially after to scale-up or post-installing Openshift.
The first time that I tried it takes me a long time finding specific information about how to do this so this is the main reason to write this small post.
Example:
$ oc patch namespace my-project -p '{"metadata":{"annotations":{"openshift.io/node-selector":"region=my-region"}}}'
You need to know that after this change all the pods into this project will be living in this region.
Gade ou pi ta!