For masters, the openshift start
command accepts options that indicate that it
should simply write the configuration files that it would have used, then
terminate. For nodes, a configuration file can be written using the oadm
create-node-config
command. Creating new configuration files is useful to get a
starting point for defining your configuration.
The following commands write the relevant launch configuration file(s),
certificate files, and any other necessary files to the specified
--write-config
or --node-dir
directory.
To create configuration files for an all-in-one server (a master and a node on
the same host) in the specified directory:
$ openshift start --write-config=/openshift.local.config
$ openshift start master --write-config=/openshift.local.config/master
$ oadm create-node-config --node-dir=/openshift.local.config/node-<node_hostname> --node=<node_hostname> --hostnames=<hostname>,<ip_address>
For the --hostnames
option in the above command, use a comma-delimited list of
every host name or IP address you want server certificates to be valid for. The
above command also assumes that certificate files are located in an
openshift.local.config/master/ directory. If they are not, you can include
options to specify their location. Run the command with the -h
option to see
details.