unleash-proxy

by Unleash Org

Helm chartv0.8.13App v1.4.8

A Helm chart for deploying Unleash Proxy to kubernetes

About this chart

The Unleash Proxy

The Unleash proxy offers a way to use Unleash in client-side applications, such as single-page and native apps.

The Unleash proxy sits between the Unleash API and your client-side SDK and does the evaluation of feature toggles for your client-side SDK. This way, you can keep your configuration private and secure, while still allowing your client-side apps to use Unleash's features.

The proxy offers three important features:

  • Performance: The caches all features in memory and can run close to your end-users. A single instance can handle thousands of requests per second, and you can easily scale it by adding additional instances.
  • Security: The proxy evaluates the features for the user on the server-side and by default only exposes results for features that are enabled for the specific user. No feature toggle configuration is ever shared with the user.
  • Privacy: If you run the proxy yourself, Unleash will never get any data on your end-users: no user ids, no IPs, no nothing.

You can read more about the proxy in the Unleash proxy reference documentation.

Prerequisites

  • Kubernetes 1.16+
  • Helm 3+

Get Repo Info

helm repo add unleash https://docs.getunleash.io/helm-charts
helm repo update

See helm repo for command documentation.

Install Chart

helm install unleash-proxy unleash/unleash-proxy

See configuration below.

See helm install for command documentation.

Dependencies

The functionality of unleash-proxy is dependent on having a running Unleash installation, however, this chart does not have any other dependencies and can be configured to use an in-cluster Unleash instance or an instance hosted somewhere else. See configuration

Uninstall Chart

helm uninstall unleash-proxy

This removes all the Kubernetes components associated with the chart and deletes the release.

See helm uninstall for command documentation.

Upgrading Chart

helm upgrade unleash-proxy unleash/unleash-proxy --install

See helm upgrade for command documentation.

Configuration

See description of configuration in values.yaml

Deploy unleash-proxy with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has unleash-proxy 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 chartunleash-proxy is pinned at v0.8.13 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