port-agent
by Port Labs
A Helm chart for Port Agent
About this chart
Port Agent
Port Agent allows to consume and run Port Actions and Workflows in your VPC.
Introduction
This chart installs the Port Agent via a Deployment resource.
Usage
Helm must be installed to use the charts. Please refer to Helm's documentation to get started.
Once Helm has been set up correctly, add the repo as follows:
helm repo add port-labs https://port-labs.github.io/helm-charts
If you had already added this repo earlier, run helm repo update to retrieve
the latest versions of the packages. You can then run helm search repo port-labs to see the charts.
Then, install the chart using the following command:
helm upgrade --install my-port-agent port-labs/port-agent \
--create-namespace --namespace port-agent \
--set env.normal.PORT_ORG_ID=YOUR_PORT_ORG_ID \
--set env.normal.PORT_API_BASE_URL=https://api.port.io \
--set env.normal.STREAMER_NAME=KAFKA \
--set env.normal.KAFKA_CONSUMER_GROUP_ID=YOUR_KAFKA_CONSUMER_GROUP_ID \
--set env.secret.PORT_CLIENT_ID=YOUR_PORT_CLIENT_ID \
--set env.secret.PORT_CLIENT_SECRET=YOUR_PORT_CLIENT_SECRET
Replace YOUR_PORT_ORG_ID, YOUR_KAFKA_CONSUMER_GROUP_ID, YOUR_PORT_CLIENT_ID, YOUR_PORT_CLIENT_SECRET
with the values that Port supplied you.
Note: For HTTP Polling set STREAMER_NAME=POLLING and omit KAFKA_CONSUMER_GROUP_ID. See the Streamer Types section below for details.
To uninstall the chart use:
helm uninstall my-port-agent --namespace port-agent
The command removes all the Kubernetes components associated with the chart and deletes the release.
Configuration
The following table lists the configuration parameters of the port-agent chart and default values.
| Parameter | Description | Default |
|---|---|---|
image.repository | Image repository | ghcr.io/port-labs/port-agent |
image.pullPolicy | Image pull policy | IfNotPresent |
image.tag | Image tag | "" |
replicaCount | Number of port-agent replicas (ensure Kafka topic has enough partitions when scaling up) | 1 |
imagePullSecrets | Image pull secrets | [] |
nameOverride | Chart name override | "" |
fullnameOverride | Fully qualified app name override | "" |
secret.annotations | Annotations for Secret object | {} |
secret.name | Secret object name | "" |
secret.useExistingSecret | Enable this if you wish to create your own secret with credentials | false |
podServiceAccount.name | Service account to attach to the pod. | null |
env.normal.STREAMER_NAME | Streamer name, available: [KAFKA, POLLING] | "KAFKA" |
env.normal.PORT_ORG_ID | Your Port org id - Required | "" |
env.normal.PORT_API_BASE_URL | Port API base url | "https://api.port.io" |
env.normal.KAFKA_CONSUMER_GROUP_ID | Kafka consumer group id - Required if using Kafka streamer | "" |
env.normal.KAFKA_CONSUMER_SECURITY_PROTOCOL | Kafka consumer security protocol | "SASL_SSL" |
env.normal.KAFKA_CONSUMER_AUTHENTICATION_MECHANISM | Kafka consumer authentication mechanism | "SCRAM-SHA-512" |
env.normal.KAFKA_CONSUMER_AUTO_OFFSET_RESET | Kafka consumer auto offset reset | "largest" |
env.normal.DETAILED_LOGGING | Enables or disables detailed logging. When set to "true", comprehensive request and response information is logged. When set to "false", only summary information is logged. Note: Detailed logs may include sensitive information such as authentication tokens and request payloads. | "true" |
env.normal.WEBHOOK_VERIFY_SSL | Enables or disables SSL certificate verification for webhook requests | "true" |
env.secret.PORT_CLIENT_ID | Port API client id | "" |
env.secret.PORT_CLIENT_SECRET | Port API client secret | "" |
controlThePayloadConfig | Override the default control the payload configuration file with custom json configuration | "" |
podAnnotations | Annotations to be added to the pod | {} |
podSecurityContext | Security context applied to the pod | {} |
containerSecurityContext | Security context applied to the container | {} |
extraVolumes | Additional volumes to be added to the pod | [] |
extraVolumeMounts | Additional volume mounts to be added to the container | [] |
resources | Container resource requests & limits | {} |
nodeSelector | NodeSelector applied to the pod | {} |
tolerations | Tolerations ap |
Deploy port-agent with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has port-agent on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartport-agent is pinned at v0.8.18 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below opentenant validate opentenant.yaml terraform init && terraform apply