How to enjoy a hassle-free AliCloud Serverless Kubernetes experience with Tyk

If your business is based in the Asia-Pacific (APAC) region, you’re likely already familiar with Alibaba Cloud (often known as AliCloud). But did you know you can combine AliCloud Serverless Kubernetes with Tyk to enjoy simplicity, scalability, and cost-efficiency in container orchestration? It takes five simple steps to set up. Let’s walk through them now.

The benefits of AliCloud

AliCloud enjoys substantial popularity in the APAC region due to its extensive network of data centres, competitive pricing and tailored solutions. Its strategically located data centres ensure fast and reliable access to cloud services, appealing to APAC businesses. Additionally, AliCloud’s cost-effective pricing models make it an attractive choice for a wide range of organisations, while its industry-specific solutions align well with the needs of local businesses.

Furthermore, AliCloud’s commitment to compliance with regional data privacy regulations and active collaborations with local partners and governments have bolstered its reputation and made it a preferred cloud service provider in the APAC region.

AliCloud Serverless Kubernetes

Alibaba Cloud Serverless Kubernetes Service (ASKS) simplifies containerised application management with a serverless approach, abstracting infrastructure complexities. It provides a hassle-free Kubernetes experience, meaning you can focus on building rather than infrastructure management.

ASKS automates resource scaling, optimising costs and performance. It seamlessly integrates with Alibaba Cloud services, enhancing containerised application development and deployment. ASKS also supports multi-region deployment for high availability.

If you’re looking for simplicity, scalability, and cost-efficiency in container orchestration, you’re in the right place. Adding Tyk into the mix means you can securely manage and secure traffic from outside your network to inside when using Kubernetes.

Tyk on AliCloud Kubernetes

Tyk has official Helm releases for all Tyk release versions. This is the optimum way to deploy Tyk on any container orchestration platform. It ranges from managed Kubernetes platforms like OpenShift and Rancher to Kubernetes-as-a-service on any public cloud. Here’s how to get started in five simple steps.

 

Step 1: Create an AliCloud account, choose ECI service and create a Kubernetes cluster

AliCloud provides a Kubernetes-as-a-service, which allows you to design a Kubernetes

cluster from the ground up. It has abstracted the Kubernetes control plane completely. It will enable you to configure and tune worker node components. You can do all the configuration from the Alibaba Cloud GUI, as shown below:

 

 

Step 2: Set up AliCloud CLI

You can set up AliCloud Command Line Interface (CLI) from this link here. With internet access, you can configure AliCloud CLI from your laptop or any other machine. Once configured, you can access AliCloud services, which you can instantiate via CLI commands.

See below how AliCloud CLI is connected to your account:

 

JavaScript

  ~ aliyun configure

Configuring profile 'default' in 'AK' authenticate mode...

Access Key Id [*********************dWn]:

Access Key Secret [***************************jcN]:

Default Region Id [ap-southeast-3]:

Default Output Format [json]: json (Only support json)

Default Language [zh|en] en:

Saving profile[default] ...Done.

Configure Done!!!

..............888888888888888888888 ........=8888888888888888888D=..............

...........88888888888888888888888 ..........D8888888888888888888888I...........

.........,8888888888888ZI: ...........................=Z88D8888888888D..........

.........+88888888 ..........................................88888888D..........

.........+88888888 .......Welcome to use Alibaba Cloud.......O8888888D..........

.........+88888888 ............. ************* ..............O8888888D..........

.........+88888888 .... Command Line Interface(Reloaded) ....O8888888D..........

.........+88888888...........................................88888888D..........

..........D888888888888DO+. ..........................?ND888888888888D..........

...........O8888888888888888888888...........D8888888888888888888888=...........

............ .:D8888888888888888888.........78888888888888888888O ..............

  ~

 

You can also configure and set up your Kubernetes cluster through the CLI as an alternative method to using their cloud console (as in step one above). Click here for the documentation for setting up the Kubernetes cluster through CLI.

Step 3: Set up kubeconfig and download it to the working machine

Now it’s time to download the kubeconfig file for the Kubernetes cluster you created in Alicloud. Add it to the $HOME/.kube directory.

 

Step 4: Deploy AliCloud Redis and Postgres services

We will use Alicloud’s Apsara Redis and RDS for Tyk Redis and Postgres requirements in this deployment. Both the services are available as pay-as-you-go or subscription models in AliCloud.

 

 

 

Step 5: Deploy using Tyk Helm chart

You have now set up all the infrastructure to deploy Tyk in AliCloud’s Kubernetes service, including access to the Kubernetes cluster from your machine through the CLI.

All you need to do now is follow the Tyk Helm official documentation for deploying Tyk components.

Note that there is a section in the above documentation where you will need to edit the values.yaml file to insert Apsara Redis and RDS settings, as shown below:

JavaScript

.

.

redis:

  addrs:

     - r-zf83f671h40znygdycpd.redis.kualalumpur.rds.aliyuncs.com:6379

...

.

postgres:

  host: pgm-zf8m2in9tfjwt9008o.pgsql.kualalumpur.rds.aliyuncs.com

  port: 5432

  user: admin

  password: admin@123

  database: tyk_analytics

  sslmode:

.

.

 

Once you have updated the values.yaml file configuration settings, you can run the Tyk Helm deployment.

You now have a fully installed Tyk stack within the AliCloud Serverless Kubernetes service. Nice.

A compelling choice for businesses 

Alibaba Cloud offers specific advantages to APAC customers, including deep local market expertise, multilingual support, compliance with data sovereignty regulations, regional partnerships, cultural relevance, optimised content delivery, industry-specific solutions and a diverse marketplace ecosystem.

These benefits cater to the unique needs and characteristics of the APAC market, making Alibaba Cloud a compelling choice for businesses seeking cloud services that align with regional requirements and preferences. Using Tyk’s API management platform with AliCloud enhances that experience by delivering seamless API management and security that’s easy to deploy and manage. Why not chat with our team to find out more?