Configuring clusters to use a proxy
Use the following guidelines to find out how to set up your clusters to use a proxy.
What base image are you using? | Where are the platform repositories? | What to do |
---|---|---|
Default | Public | Use Register a proxy for clusters |
Default | Local | Use Register a proxy for clusters |
Custom | Public | Set up the proxy on your custom image OR use Register a proxy for clusters. |
Custom | Local | Not required. Skip this section. |
You can define a proxy configuration as an external source in Cloudbreak web UI or CLI, and then (optionally) specify to configure that proxy configuration on the hosts that are part of the cluster during cluster create. Refer to Register a proxy for clusters section below for more information.
Register a proxy for clusters
Cloudbreak allows you to save your existing proxy configuration information as an external source so that you can provide the proxy information to multiple clusters that you create with Cloudbreak. The steps are:
- Register your proxy in Cloudbreak web UI or CLI.
- Once the proxy has been registered with Cloudbreak, it will show up in the list of available proxies when creating a cluster under advanced External Sources > Configure Proxy. You should select it for every cluster that you create with Cloudbreak.
Steps
- From the navigation pane, select External Sources > Proxy Configurations.
- Select Register Proxy Configuration.
- Provide the following information:
Parameter Description Example Name Enter the name to use when registering this database to Cloudbreak. This is not the database name. my-proxy Description Provide description. Protocol Select HTTP or HTTPS. HTTPS Server Host Enter the URL of your proxy server host. 10.0.2.237 Server Port Enter proxy server port. 3128 Username Enter the username for the proxy. testuser Password Enter the password for the proxy. MyPassword123 - Click REGISTER to save the configuration.
- The proxy will now show up when creating a cluster under advanced External Sources > Configure Proxy. You should select it each time you create a cluster.