Create K8s Config

Command: config create

The pf9ctl config create command creates and activates a new deployment configuration that will be used by the subsequent CLI commands.

When you install pf9ctl CLI, it asks for some parameters for your PMK deployment, such as the deployment url, username, password, etc. These parameters are then stored in a config file which is later referenced every time you run a cli command like pf9ctl cluster create.

The config create command lets you create a new configuration.

Note: This command also makes the newly created configuration the new default - which means any future invocations of the CLI will now use this configuration.

You can change the default by running pf9ctl config activate .

Usage

Bash
Copy
Flag(s)TypeRequired/OptionalDescription
--config_name , --nameString Required Name for this configuration.
--du_url , --duString Required URL of your PMK deployment / account.
--os_usernameString Required The PMK username for the account the CLI should use to connect to PMK
--os_passwordString Required The PMK password for the account the CLI should use to connect to PMK
--os_regionString Required The PMK region you wish to use the CLI to connect to. (All PMK accounts are deployed with a default region called RegionOne.)
--os_tenantString Required The PMK tenant that the cluster or node objects created by the CLI should reside within. (All PMK accounts are deployed with a default tenant called service.)
--proxy-urlString Optional
--manage_hostnameBoolean Optional
--dns_resolver1String Optional
--dns_resolver2String Optional
--manage_resolverBoolean Optional
--helpShow this message and exit.

Example

Bash
Copy
Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard