Multi Region Support - Multiple EKS config support
requested to merge feature/multi_region_support_eks_configs into feature/multi_region_support_multiple_platforms
Related tasks
Context
The docker-entrypoint.sh
script used by the Cloudsim docker image is in charge of getting EKS kubeconfig. The current script is only able to get a single kubeconfig.
Change
The docker-entrypoint.sh
has been updated to support multiple configurations.
The AWS_EKS_CLUSTER_CONFIG
environment variable is used to configure target EKS clusters. The information must be provided as an array of fields.
AWS_EKS_CLUSTER_CONFIG
fields (in order):
- AWS Region - Target AWS Region.
- Cluster Name - EKS Cluster name.
- Kubeconfig - Kubeconfig filename.
Notes:
- All fields are required.
- Fields are separated by commas.
- Kubeconfig files will be stored in the running user's home .kube directory.
- Multiple cluster configurations can be defined by separating them with semicolons.
Example
Cluster name
↓
AWS_EKS_CLUSTER_CONFIG="us-east-1,test-cluster,config_test_cluster_ue_1;us-east-2,test-cluster,config_test_cluster_ue_2"
↑ ↑
Region Cluster config name
Other information
Additional documentation
Edited by Alejo Carballude