Modify Openshift 3.7 projects region

Gloria Palma González
1 min readJul 30, 2018

--

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!

--

--

Gloria Palma González
Gloria Palma González

Written by Gloria Palma González

My life is a paradigm: I can do anything. IT engineer, melomaniac, in love: #Infrastructure #OpenSource #CommunityLeadershipTeams #SoftwareEngineering

No responses yet