/AzureArc-Alibaba-K8S

connect a Alibaba Kubernetes cluster to Azure Arc

Primary LanguageHCLMIT LicenseMIT

AzureArc-Alibaba-K8S

Connect a Alibaba Cloud Kubernetes cluster to Azure Arc_ and deploy workloads on it which has PaaS abstracted with Dapr.

prerequisites

  • Aliyun CLI
  • Azure CLI
  • jq
  • Terraform

getting started

environment variables

set environment variables (e.g. in .profile) :

export ALICLOUD_ACCESS_KEY="----Alibaba Cloud access-key----"
export ALICLOUD_SECRET_KEY="----secret-key----"
export ALICLOUD_REGION="----region----" # e.g. cn-shanghai
export ALICLOUD_PROFILE="akProfile"

export AZURE_SUBSCRIPTION_ID="----Azure subscription id----"
export AZURE_LOCATION="----location---" # e.g. southeastasia
export AZURE_RESOURCE_GROUP="---resource group----"

deploy jump VM and cluster

cd ./AzureArc-Alibaba-K8S/setups
terraform init
terraform apply

setup jump VM

cd ..
./setup_ay_jump.sh

check VM installation status

./ssh_ay_jump.sh

tail /var/log/cloud-init-output.log

deploy sample application

./deploy_demo.sh