manage
create-proxy-config
Create the resources that are needed to provide your proxy configuration to Cloud Pak for Data.
- Required role
-
Instance administrator An instance administrator can run this command.
Prerequisites
Before you run this command, a cluster administrator must install and enable the resource specification injection (RSI) webhook.
For more information about the commands to install and enable RSI, see:
Extended description
If you have a cluster-wide proxy configuration, you can use the create-proxy-config
command to generate configuration resources that
support the following types of connections:
httpProxy
httpsProxy
noProxy
After you create the proxy configuration resources, you must apply the configuration by running
the cpd-cli
manage
enable-proxy
command.
Syntax
cpd-cli manage create-proxy-config \
--cpd_instance_ns=<project-name> \
[--proxy_host=<proxy-server-hostname>] \
[--proxy_port=<proxy-server-port>] \
[--proxy_user=<proxy-server-username>] \
[--proxy_password=<proxy-server-password>] \
[-vv][-vv][-vvv]
Arguments
The create-proxy-config
command has no arguments.
Options
Option | Description |
---|---|
--cpd_instance_ns |
The project (namespace) where you want to create or update the patch.
If there are any projects tethered to this project, the patch will also apply to the tethered
projects.
|
--proxy_host |
The host name or IP address of your proxy
server.
|
--proxy_password |
The password of the specified proxy server user, if the proxy server
requires authentication.
|
--proxy_port |
The port number to connect to on the proxy
server.
|
--proxy_user |
The name of a proxy server user, if the proxy server requires
authentication.
|
-v -vv -vvv |
Display verbose output. Options are listed from least verbose to the most verbose.
|
Examples
It is strongly recommended that you use a script to create environment variables with the correct values for your environment. For details, see Setting up installation environment variables.
- Create the configuration resources for an HTTP proxy server that does not require authentication
-
cpd-cli manage create-proxy-config \ --cpd_instance_ns=${PROJECT_CPD_INST_OPERANDS} \ --proxy_host=${PROXY_HOST} \ --proxy_port=${PROXY_PORT}
- Create the configuration resources for an HTTP proxy server that requires authentication
-
cpd-cli manage create-proxy-config \ --cpd_instance_ns=${PROJECT_CPD_INST_OPERANDS} \ --proxy_host=${PROXY_HOST} \ --proxy_port=${PROXY_PORT} \ --proxy_user=${PROXY_USER} \ --proxy_password=${PROXY_PASSWORD}