Hi Dave,

'oc cluster up' is not meant to be used to  run a multi-node cluster.  It
will only stand up a single-node cluster. The main issue is networking. It
won't setup an sdn for you.
However, you can make it listen on an alternate address by specifying a
numeric IP address with --public-hostname

The oc cluster join command is an experimental command meant to add a node
to an existing cluster that was setup via ansible. Despite the common
command prefix, it has no relation to 'oc cluster up'.

To install openshift on 2 nodes, please use the openshift-ansible
installer. You'd need to setup ansible in a client machine and create an
inventory file that points to your 2 machines. You can find a sample
inventory and instructions here:
https://docs.openshift.org/3.9/install_config/install/advanced_install.html#single-master


On Wed, Apr 18, 2018 at 6:20 PM, Dave Neary <[email protected]> wrote:

> Hi all,
>
> I am trying to set up a small 2 node OpenShift cluster on two NUCs (each
> with 16G of RAM and 120GB SSDs), and I've hit a snag.
>
> It looked like oc cluster up/oc cluster join would be the easiest way to
> do it without setting up independent VMs and using minishift, so that is
> what I'm trying.
>
> I'm following the instructions here:
> https://wiki.centos.org/SpecialInterestGroup/PaaS/OpenShift-Quickstart
>
> My issues:
>
> * On master: oc cluster up is listening on 127.0.0.1 rather than an
> externally accessible IP address - oc cluster --help doesn't give any
> clue as to how to set the IP address for the server to listen on
> * On node: oc cluster join wants a secret from the master - an internet
> search tells me that I can get that by copying and pasting the value of
> admin/kubeconfig - but I have no idea where to find that.
>
> Anyone know how to change the IP the server listens on, and add one
> other node to make a 2 node cluster? If this is ill advised for any
> reason, how would you install OpenShift on 2 nodes like this?
>
> Thanks,
> Dave.
>
> --
> Dave Neary - Open Source and Standards team
> Red Hat - http://community.redhat.com
> Ph: +1-978-399-2182 / Cell: +1-978-799-3338
>
> _______________________________________________
> users mailing list
> [email protected]
> http://lists.openshift.redhat.com/openshiftmm/listinfo/users
>
_______________________________________________
users mailing list
[email protected]
http://lists.openshift.redhat.com/openshiftmm/listinfo/users

Reply via email to