How to make oc cluster up persistent?

There are a couple ways to do this. oc cluster up doesn't have a primary use case of persisting resources.

There are couple ways to do it:

  • Leverage capturing etcd as described in the oc cluster up README
  • There is a wrapper tool, that makes it easy to do this.

There is now an example in the cluster up --help command, it is bound to stay up to date so check that first

oc cluster up --help

...


Examples:

  # Start OpenShift on a new docker machine named 'openshift'
  oc cluster up --create-machine

  # Start OpenShift using a specific public host name
  oc cluster up --public-hostname=my.address.example.com

  # Start OpenShift and preserve data and config between restarts
  oc cluster up --host-data-dir=/mydata --use-existing-config

So specifically in v1.3.2 use --host-data-dir and --use-existing-config