tyk-operator
by Tyk
A Helm chart to install the tyk-operator
About this chart
Tyk Operator
Tyk Operator brings Full Lifecycle API Management capabilities to Kubernetes. Configure Ingress, APIs, Security Policies, Authentication, Authorization, Mediation and more - all using GitOps best practices with Custom Resources and Kubernetes-native primitives.
Usage
helm repo add tyk-charts https://helm.tyk.io/public/helm/charts/
helm repo update
Prerequisites
Before installing Tyk Operator ensure you follow this guide and complete all steps from it, otherwise Tyk Operator won't function properly: https://github.com/TykTechnologies/tyk-operator/blob/master/docs/installation/installation.md#tyk-operator-installation
NOTE: cert-manager is required for the default admission-webhook mode as
described here.
If you haven't installed cert-manager yet, you can install it as follows:
kubectl apply -f https://github.com/cert-manager/cert-manager/releases/download/v1.8.0/cert-manager.yaml
Installation
If you have a fully functioning & bootstrapped Tyk Installation and cert-manager, you can install Tyk Operator as follows:
helm install tyk-operator tyk-charts/tyk-operator
Admission webhooks are enabled by default. To run without them:
helm install tyk-operator tyk-charts/tyk-operator --set webhooks.enabled=false
Disabled mode sets ENABLE_WEBHOOKS=false and omits the webhook Service,
admission configurations, cert-manager Certificate/Issuer, container port, TLS
mount, and TLS volume. Controller-side validation remains active for the CRDs
that support this mode. cert-manager is not required when webhooks are disabled.
By default, it will install the latest stable release of Tyk Operator.
You can install any other version by
- Setting
image.tagin values.yml or with--set {image.tag}={VERSION_TAG}while doing the helm install. - Installing CRDs of the corresponding version. This is important as operator might not work otherwise. You can do so by running the below command.
kubectl apply -f https://raw.githubusercontent.com/TykTechnologies/tyk-charts/refs/heads/main/tyk-operator-crds/crd-$TYK_OPERATOR_VERSION.yaml
Replace $TYK_OPERATOR_VERSION with the image tag corresponding to the Tyk Operator version to which the Custom Resource Definitions (CRDs) belong. For example, to install CRDs compatible with Tyk Operator v1.0.0, set $TYK_OPERATOR_VERSION to v1.0.0.
For detailed documentation, please refer to the official Tyk documentation https://tyk.io/docs/tyk-operator/.
Deploy tyk-operator with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has tyk-operator 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.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the charttyk-operator is pinned at v1.6.0 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- 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