Generating charts, creating license tokens and setting the account’s custom domain are done by an organization Owner
or Admin. See Understanding roles.
How it works
- You deploy and test your services in a LocalOps environment.
- You generate a versioned Helm chart from that environment.
- You create a license token for each customer.
- You turn on the chart’s installation page and share its URL and the token with the customer.
- The customer installs the chart. The token authenticates every pull of the chart and its private images.
Before you generate
The chart is built from what’s running in the environment, so get the environment right first:- Deploy and test every service that is part of your app. Using a dedicated Git branch, such as
self-hosted, keeps the self-hosted version’s code separate. - Decide which secrets the customer sets. Secrets you expose in the chart appear in
values.yamlwith their description as a comment above them, so the customer knows what each value means. Secrets marked sensitive are never written into the chart. See Expressions in generated Helm charts. - Expose volume settings, if needed. Volumes marked
expose: trueinops.jsonappear underpersistenceinvalues.yaml, so the customer can size disks or point at their own Kubernetes secret. See Volumes in the generated Helm chart.
Generate a chart
1
Open the environment dashboard
Go to the environment that runs the version you want to ship.
2
Generate the chart
At the top right, open the menu and click Generate Helm Chart.
3
Name and version it
Give the chart a name and a version number. Optionally add a changelog in Markdown describing what changed. It
appears against the version under Available Versions, so the teams installing your chart can see what each
version brings.
values.yaml, and pod and
container security settings (podSecurityContext, securityContext) that let it run under the restricted Pod
Security Standard.
Create license tokens
1
Open License tokens
In the LocalOps console, open the License tokens section.
2
Create a token per customer
Create a new token and name it after the customer. Use a separate token for each customer, so each one has their
own access and their own usage numbers.
- Authenticates pulls. The chart and its Docker images won’t download with an invalid token.
- Tracks installations. The License tokens section shows total and active installations for each token, and the same numbers appear next to each chart version.
- Can be validated from your app. The token is available to your services as the
BYOC_LICENSE_TOKENenvironment variable. Call the validation API at startup or from a background job, and stop services for a customer whose token is no longer valid.
Share the installation page
1
Set a custom domain
In account settings, set a custom domain, such as
byoc.yourcompany.com. The installation page and the license
validation API are served from it.2
Turn on the installation page
Open the Helm charts section from the left sidebar, click your chart and turn on Installation page url.
3
Hand over the URL and token
Send the customer the installation page URL and their license token. The installation URL is public and has all
instructions for installing and operating the chart, including the commands and
values.yaml, so the customer’s IT
team can follow it on their own.Release new versions
When your code changes, deploy and test it in the same environment, then generate the chart again with a new version number and changelog. Customers pick up the new version withhelm repo update and helm upgrade.
Each Helm install of your chart gets a unique LOPS_INSTANCE_ID (also available as DEPLOYMENT_ID), which you can use
to tag logs, metrics or external resources by installation. See
Built in secrets.