You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`nodeSelector`| NodeSelector applied to the pod |`{}`|
67
+
|`tolerations`| Tolerations applied to the pod |`[]`|
68
+
|`affinity`| Affinity applied to the pod |`{}`|
69
+
|`selfSignedCertificate.enabled`| Enable self-signed certificate trust for the agent |`false`|
70
+
|`selfSignedCertificate.certificate`| The value of the self-signed certificate |`""`|
71
+
|`selfSignedCertificate.secret.useExistingSecret`| Enable this if you wish to use your own secret with the self-signed certificate |`false`|
72
+
|`selfSignedCertificate.secret.key`| The key in the existing self-signed certificate secret |`crt`|
73
+
|`selfSignedCertificate.secret.name`| The name of an existing secret containing the self-signed certificate |`""`|
33
74
34
-
## Advanced configuration
35
-
Some environments require special configuration when working with the Port agent. This includes working with self-signed certificates and/or proxies.
75
+
:::note
76
+
Ensure your Kafka topic has enough partitions when increasing `replicaCount` beyond 1. Each replica acts as a consumer in the consumer group.
77
+
:::
36
78
37
-
Port's agent uses Python's [requests](https://requests.readthedocs.io/en/latest/) library. This allows passing advanced configuration using environment variables.
79
+
## Self-signed certificate configuration
38
80
39
-
To add an environment variable using the agent's Helm chart, either:
81
+
For self-hosted 3rd-party applications with self-signed certificates, the agent can be configured to trust custom CA certificates. The `selfSignedCertificate` parameters control this behavior.
Use this option to provide the certificate content directly in your Helm values file or via the `--set-file` flag. The Helm chart will create and manage a Kubernetes secret containing the certificate.
57
86
58
-
### Proxy configuration
87
+
**How to use:**
88
+
1. Set `selfSignedCertificate.enabled` to `true`
89
+
2. Provide the certificate content in `selfSignedCertificate.certificate`
90
+
3. Keep `selfSignedCertificate.secret.useExistingSecret` as `false` (default)
59
91
60
-
#### `HTTP_PROXY`, `HTTPS_PROXY` & `ALL_PROXY`
61
-
`HTTP_PROXY`, `HTTPS_PROXY`, and `ALL_PROXY` are environment variables used to specify a proxy server for handling HTTP, HTTPS, or all types of requests, respectively. The values assigned to these settings should be the URL of the proxy server.
92
+
**Method A: Inline certificate in values.yaml**
62
93
63
-
For example:
64
-
```sh showLineNumbers
65
-
HTTP_PROXY=http://my-proxy.com:1111
66
-
HTTPS_PROXY=http://my-proxy.com:2222
67
-
ALL_PROXY=http://my-proxy.com:3333
94
+
Configure in your `values.yaml`:
95
+
```yaml
96
+
selfSignedCertificate:
97
+
enabled: true
98
+
certificate: |
99
+
-----BEGIN CERTIFICATE-----
100
+
<YOUR_CERTIFICATE_CONTENT>
101
+
-----END CERTIFICATE-----
102
+
secret:
103
+
name: ""
104
+
key: crt
105
+
useExistingSecret: false
68
106
```
69
107
70
-
#### `NO_PROXY`
71
-
72
-
`NO_PROXY`allows blacklisting certain addresses from being handled through a proxy. This variable accepts a comma-seperated list of hostnames or urls.
73
-
74
-
For example:
75
-
```sh showLineNumbers
76
-
NO_PROXY=http://127.0.0.1,google.com
108
+
Install with:
109
+
```bash
110
+
helm install my-port-agent port-labs/port-agent \
111
+
--create-namespace --namespace port-agent \
112
+
-f values.yaml
77
113
```
78
114
79
-
For more information take a look at the Requests [proxy configuration documentation](https://requests.readthedocs.io/en/latest/user/advanced/#proxies).
80
-
81
-
### SSL Environment Configuration
82
-
83
-
### Self-signed Certificate Configuration
84
-
85
-
#### Option 1: Provide certificate in Helm values
115
+
**Method B: Reference certificate file using `--set-file`**
When `selfSignedCertificate.enabled` is set to `true`, the Helm chart automatically:
110
162
- Mounts the certificate to `/usr/local/share/ca-certificates/cert.crt`
111
-
- Sets `SSL_CERT_FILE` and `REQUESTS_CA_BUNDLE` environment variables
112
-
- Configures Python libraries (requests, httpx) to trust the certificate
163
+
- Sets `SSL_CERT_FILE` and `REQUESTS_CA_BUNDLE` environment variables to point to the certificate
113
164
114
-
#### Multiple certificates
165
+
### Multiple certificates
115
166
116
-
When multiple certificates are required, one certificate must be provided via `selfSignedCertificate` as described above. Additional certificates can be mounted using `extraVolumes` and `extraVolumeMounts`:
167
+
For environments requiring multiple custom certificates, use the `extraVolumes` and `extraVolumeMounts` parameters alongside the built-in `selfSignedCertificate` feature. One certificate must be provided via `selfSignedCertificate`, and additional certificates can be mounted as extra volumes.
- A complete list of configuration parameters is available in the [Port Agent Helm chart repository](https://github.com/port-labs/helm-charts/tree/main/charts/port-agent);
215
+
- An example `values.yaml` file with all available parameters is available [here](https://github.com/port-labs/helm-charts/blob/main/charts/port-agent/values.yaml).
216
+
217
+
## Extra environment variables
218
+
219
+
To pass extra environment variables to the agent's runtime, you can use the `env.normal` section for non-sensitive variables.
`HTTP_PROXY`, `HTTPS_PROXY`, and `ALL_PROXY` are environment variables used to specify a proxy server for handling HTTP, HTTPS, or all types of requests, respectively. The values assigned to these settings should be the URL of the proxy server.
245
+
246
+
For example:
247
+
```sh showLineNumbers
248
+
HTTP_PROXY=http://my-proxy.com:1111
249
+
HTTPS_PROXY=http://my-proxy.com:2222
250
+
ALL_PROXY=http://my-proxy.com:3333
251
+
```
252
+
253
+
#### `NO_PROXY`
254
+
255
+
`NO_PROXY`allows blacklisting certain addresses from being handled through a proxy. This variable accepts a comma-separated list of hostnames or URLs.
256
+
257
+
For example:
258
+
```sh showLineNumbers
259
+
NO_PROXY=http://127.0.0.1,google.com
260
+
```
261
+
262
+
For more information, see the Requests [proxy configuration documentation](https://requests.readthedocs.io/en/latest/user/advanced/#proxies).
263
+
135
264
## Next Steps
136
265
137
266
Follow one of the guides below:
138
267
139
-
- [GitLab Pipeline Trigger](/actions-and-automations/setup-backend/gitlab-pipeline/gitlab-pipeline.md) - Create an action that triggers GitLab Pipeline execution.
268
+
- [GitLab Pipeline Trigger](/actions-and-automations/setup-backend/gitlab-pipeline/gitlab-pipeline.md) - Create an action that triggers GitLab Pipeline execution.
0 commit comments