Customizing the Local Edition Deployment Manifest
Based on the outcome of the planning phase, you can create a Kubernetes cluster spanning one or more nodes. You can also change the deployment manifest appropriately with the number of components per zone.
Files to Modify
In the API Management - Local Edition installer container, change to the following folder:
/var/jenkins_home/docker-deploy/aws/k8s
Update the appropriate deployment manifest using the descriptions in the tables in the "Customize Kubernetes Cluster" section below:
Customize Kubernetes Cluster
The following parameters in the applicable manifest must be configured:
The following parameters in the applicable manifest should be configured:
Parameter | Description |
---|---|
k8s_node_count | The number of worker VMs in the AWS EKS Kubernetes cluster. Customize this for your deployment. If you plan to create a multi-zone cluster, an equal number of nodes are recommended per zone. For example, use 9 if you want to create 3 nodes in three regions: us-east-1a, us-east-1b, and us-east-1e under us-east-1 region. |
k8s_version | The Kubernetes version. This must be 1.11, 1.12, or 1.13. (Note that only major and minor numbers are used. Patch numbers, such as 1.12.8, should not be used.) |
k8s_node_size | The instance type for the Kubernetes worker nodes. For example: m3.small, m3.medium, m3.large.
Based on the deployment type, the following node size is recommended: |
k8s_node_volume_size | The disk size, in GB. |
Generating Deployment Scripts and Configuration
Generate deployment scripts and configuration by running the appropriate command in the /var/jenkins_home/docker-deploy/aws/k8s/ folder:
An example output for single-zone deployment is:
TMG_CLUSTER_NAME: TML Reference Cluster Single Zone TMG_CLUSTER_MODE: tethered in "tethered" mode, admin must specify "api_key" and "api_secret" in "tml_sql_properties.json" and "tml_log_properties.json" TMG_CLUSTER_TAG: 4984199f97988b245f35601743b9303b K8S_AWS_ZONES us-east-1e TMG_ZONE_NAME 0: us-east-1e TMG_ZONE_COUNT: 1 TMG_RELEASE_VERSION: 5.2.0 TMGC_REPO_NAME: tml/v5.2.0.1 repositoryUri 894547326815.dkr.ecr.us-east-1.amazonaws.com/tml/v5.2.0.1 AWS_REGISTRY_HOST 894547326815.dkr.ecr.us-east-1.amazonaws.com