Make a primary Geo node, secondary

I have followed all steps to create a primary and secondary geo nodes.
But when I run this in the secondary node

gitlab-rake gitlab:geo:check

I get

Checking Geo ...

GitLab Geo is available ... yes
GitLab Geo is enabled ... yes
GitLab Geo secondary database is correctly configured ... not a secondary node
Database replication enabled? ... not a secondary node
Database replication working? ... not a secondary node
...

And when I run I get nil

sudo gitlab-rails runner "puts Gitlab::Geo.current_node.inspect"