The Optimizely Agent allows you to run a proxy to Optimizely in your own infrastructure, to help prevent adblockers from interfering with A/B tests. This repository contains a Helm chart to make it easy to host the Optimizely Agent in your own Kubernetes infrastructure.
To install the chart with the release name my-agent
:
helm repo add optimizely-agent https://optimizely.github.io/optimizely-agent-helm
helm install my-agent optimizely-agent/agent
To override values in a chart, use either the '--values' flag and pass in a file or use the '--set' flag and pass configuration from the command line, to force a string value use '--set-string'. You can use '--set-file' to set individual values from a file when the value itself is too long for the command line or is dynamically generated.
helm install -f myvalues.yaml my-agent optimizely-agent/agent
or
helm install --set nameOverride=abc123 my-agent optimizely-agent/agent
more about this: https://helm.sh/docs/helm/helm_install/
To uninstall/delete the my-agent
deployment:
helm delete my-agent
Property | Description |
---|---|
replicaCount | Number of deployment replicas |
image | Docker image to be used |
autoscaling | To allow and configure autoscaling |
nameOverride | Replaces the name of the chart in the Chart.yaml file |
fullnameOverride | Completely replaces the generated name |
serviceAccount | Specifies whether a service account should be created |
podAnnotations | A map with Kubernetes annotations |
podSecurityContext | The security settings that you specify for a Pod apply to all Containers in the Pod |
securityContext | The security settings that you specify for agent container |
env | Environment variables and secrets |
service | The type of network service to use and mapping of incoming ports to targetPorts |
ingress | Exposes HTTP and HTTPS routes from outside the cluster to services within the cluster |
nodeSelector | To constrain Pods to nodes with specific labels |
tolerations | Tolerations to apply to Pods |
affinity | Sets the affinity Kubernetes attribute for Pods |
config | Optimizely client instance configuration properties |