port-agent

by Port Labs

Helm chartv0.8.18App v0.8.14Verified publisher

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.

ParameterDescriptionDefault
image.repositoryImage repositoryghcr.io/port-labs/port-agent
image.pullPolicyImage pull policyIfNotPresent
image.tagImage tag""
replicaCountNumber of port-agent replicas (ensure Kafka topic has enough partitions when scaling up)1
imagePullSecretsImage pull secrets[]
nameOverrideChart name override""
fullnameOverrideFully qualified app name override""
secret.annotationsAnnotations for Secret object{}
secret.nameSecret object name""
secret.useExistingSecretEnable this if you wish to create your own secret with credentialsfalse
podServiceAccount.nameService account to attach to the pod.null
env.normal.STREAMER_NAMEStreamer name, available: [KAFKA, POLLING]"KAFKA"
env.normal.PORT_ORG_IDYour Port org id - Required""
env.normal.PORT_API_BASE_URLPort API base url"https://api.port.io"
env.normal.KAFKA_CONSUMER_GROUP_IDKafka consumer group id - Required if using Kafka streamer""
env.normal.KAFKA_CONSUMER_SECURITY_PROTOCOLKafka consumer security protocol"SASL_SSL"
env.normal.KAFKA_CONSUMER_AUTHENTICATION_MECHANISMKafka consumer authentication mechanism"SCRAM-SHA-512"
env.normal.KAFKA_CONSUMER_AUTO_OFFSET_RESETKafka consumer auto offset reset"largest"
env.normal.DETAILED_LOGGINGEnables 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_SSLEnables or disables SSL certificate verification for webhook requests"true"
env.secret.PORT_CLIENT_IDPort API client id""
env.secret.PORT_CLIENT_SECRETPort API client secret""
controlThePayloadConfigOverride the default control the payload configuration file with custom json configuration""
podAnnotationsAnnotations to be added to the pod{}
podSecurityContextSecurity context applied to the pod{}
containerSecurityContextSecurity context applied to the container{}
extraVolumesAdditional volumes to be added to the pod[]
extraVolumeMountsAdditional volume mounts to be added to the container[]
resourcesContainer resource requests & limits{}
nodeSelectorNodeSelector applied to the pod{}
tolerationsTolerations 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.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartport-agent is pinned at v0.8.18 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. 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