12.6. Using Multiple OpenShift Configuration Files


The OpenShift Enterprise interactive setup wizard creates a new express.conf configuration file in the ~/.openshift directory with the specified user and server settings. Multiple configuration files can be created, but you must then use the --config option with the client tools to select the appropriate configuration file.

Procedure 12.2. To Create a New Configuration File:

  1. Run rhc setup with the --config command to create a new configuration file:
    # rhc setup --config=~/.openshift/bob.conf
  2. Verify that you can connect to OpenShift using different configuration files. Run an rhc command without specifying the configuration file. In this example, the domain for the account configured in the express.conf file is displayed.
    # rhc domain show
  3. Run the rhc command with --config option. In this example, the domain for the account configured in the bob.conf file is displayed.
    # rhc domain show --config=~/.openshift/bob.conf

Note

To switch between different OpenShift environments frequently, see Section 12.7, “Switching Between Multiple OpenShift Environments”.
Red Hat logoGithubRedditYoutubeTwitter

Learn

Try, buy, & sell

Communities

About Red Hat Documentation

We help Red Hat users innovate and achieve their goals with our products and services with content they can trust.

Making open source more inclusive

Red Hat is committed to replacing problematic language in our code, documentation, and web properties. For more details, see the Red Hat Blog.

About Red Hat

We deliver hardened solutions that make it easier for enterprises to work across platforms and environments, from the core datacenter to the network edge.

© 2024 Red Hat, Inc.