Login 24/7 Support Community tyk.io

Launch Tyk Enterprise Developer Portal with helm chart

Introduction

To launch the portal using helm chart, you need to take the following steps:

  • Create the tyk-enterprise-portal-conf secret
  • Specify config settings for the portal in values.yaml
  • Launch the portal using the helm chart

This guide provides a clear and concise, step-by-step recipe for launching the Tyk Enterprise Developer Portal using helm charts.

Create the tyk-enterprise-portal-conf secret

Make sure the tyk-enterprise-portal-conf secret exists in your namespace. This secret will automatically be generated during the Tyk Dashboard bootstrap if the dash.enterprisePortalSecret value is set to true in the values.yaml.

If the secret does not exist, you can create it by running the following command.

kubectl create secret generic tyk-enterprise-portal-conf -n ${NAMESPACE} \
  --from-literal=TYK_ORG=${TYK_ORG} \
  --from-literal=TYK_AUTH=${TYK_AUTH}

Where TYK_ORG and TYK_AUTH are the Tyk Dashboard Organisation ID and the Tyk Dashboard API Access Credentials respectively. Which can be obtained under your profile in the Tyk Dashboard.

Config settings

You must set the following values in the values.yaml or with --set {field-name}={field-value} with the helm upgrade command:

Description Field name
1. Enable portal installation enterprisePortal.enabled
2. Enable portal bootstrapping enterprisePortal.bootstrap
3. Tyk license key for your portal installation enterprisePortal.license
4. Portal database dialect. Available dialects are:
  • mysql
  • postgres
  • sqlite3
enterprisePortal.storage.type
5. Connection string to the portal's database.

An example for the mysql dialect:

admin:secr3t@tcp(tyk-portal-mysql:3306)/portal?charset=utf8mb4&parseTime=true

enterprisePortal.storage.connectionString

In addition to value.yaml, you can also define the environment variables described in the Configuration section to further customize your portal deployment. These environment variables can also be listed as a name value list under the extraEnvs section of the helm chart.

Launch the portal using the helm chart

Run the following command to update your infrastructure and install the developer portal:

helm upgrade tyk-pro tyk-helm/tyk-pro -f values.yaml -n tyk
In case this is the first time you are launching the portal, it will be necessary to bootstrap it before you can use it. For detailed instructions, please refer to the bootstrapping documentation.

Note: Helm chart supports Enterprise Portal v1.2.0+.