How to switch between private clusters and public clusters on ROSA Classic

Solution Verified - Updated -

Environment

  • Red Hat OpenShift Service on AWS (Classic)

Issue

  • You want to switch your cluster from public to private and vice versa.

Resolution

Note:

This solution does not apply to ROSA HCP Clusters

  • You can switch your cluster between public and private on ROSA except privatelink mode. Private cluster which installed with privateLink does not supported switching to public.
  • From public to private change your cluster.
  • From private to public change your cluster using rosa cli as follows. You can also switch it as removing "Make router private" and "Make API private" check marks from "Networking" tab in OCM as well.
// Make API public 
$ rosa describe cluster -c test | grep Private
Private:                    Yes

$ rosa edit cluster -c test --private=false
I: Updated cluster 'test'

$ rosa describe cluster -c test | grep Private
Private:                    No
$ rosa list ingresses -c test

// Make router public
ID    APPLICATION ROUTER                               PRIVATE    DEFAULT    ROUTE SELECTORS
o4r9  https://apps.test.m3dd.p1.openshiftapps.com      yes        yes        

$ rosa edit ingress -c test --private=false o4r9
I: Updated ingress 'o4r9' on cluster 'test'

$ rosa list ingresses -c test
ID    APPLICATION ROUTER                               PRIVATE    DEFAULT    ROUTE SELECTORS
o4r9  https://apps.test.m3dd.p1.openshiftapps.com      no         yes        

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.

Comments