Proxy configmap

Edit this configmap to configure parameters such as connection timeouts and to enable or disable transport layer security (TLS) encryption.

Contents

The proxy is configured with the {{ .Release.Name }}-proxy-config configmap, where {{ .Release.Name }} is the unique name that is assigned to the deployment, for example, noi. The configmap is used to configure parameters such as connection timeouts and to enable or disable TLS encryption, as in the following example:
  connectionTimeoutMs: "900000"
  externalHostOrIP: mycluster.icp
   revision: "1"
  routes: |
    [{"Port":6001, "Service": "{{ .Release.Name }}-objserv-agg-primary:4100"},
     {"Port":6002, "Service": "{{ .Release.Name }}-objserv-agg-backup:4100"}
    ]
  tlsEnabled: "true"
  tlsHandshakeTimeoutMs: "2000"
  
Where mycluster.icp is the public domain name of the cluster.
The following table lists the data elements that are contained in the proxy configmap:
Table 1. Data elements in the proxy configmap
Data elements Description

connectionTimeoutMs

Use this element to specify the connection timeout in milliseconds.

externalHostOrIP

Use this element to specify the external Host or IP address. After deployment, do not edit this value.

revision

Version number of configmap. Must be incremented when a change is made to the configmap, or the change will not be active. Must be an integer greater than 0.

routes

Use this element to specify the gateway routes. After deployment, do not edit this value.

tlsEnabled

Use this element to enable or disable TLS encryption.

tlsHandshakeTimeoutMs

Use this element to specify the TLS handshake timeout in milliseconds.

After you update the configmap the changes are automatically applied to the existing proxy pod.