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
pf9ctl config create --name CONFIG_NAME --du_url DEP_URL --os_username USERNAME --os_password PASSWORD --os_region REGION --os_tenant TENANT [OPTIONS]| Flag(s) | Type | Required/Optional | Description |
|---|---|---|---|
--config_name , --name | String | Name for this configuration. | |
--du_url , --du | String | URL of your PMK deployment / account. | |
--os_username | String | The PMK username for the account the CLI should use to connect to PMK | |
--os_password | String | The PMK password for the account the CLI should use to connect to PMK | |
--os_region | String | The PMK region you wish to use the CLI to connect to. (All PMK accounts are deployed with a default region called RegionOne.) | |
--os_tenant | String | 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-url | String | ||
--manage_hostname | Boolean | ||
--dns_resolver1 | String | ||
--dns_resolver2 | String | ||
--manage_resolver | Boolean | ||
--help | Show this message and exit. |
Example
pf9ctl config create --name MyConfig --du_url https://your-pmk-url --os_username foo --os_password fakepassword --os_region RegionOne --os_tenant serviceWas this page helpful?