This aims to create a minimal demo environment in Microsoft Azure to run HPE Container Platform (EPIC 5.0) installation. Please check bluedata4 branch for EPIC v4 installation.
Taken from the work of https://github.com/bluedata-community/bluedata-demo-env-aws-terraform
Run terraform to deploy resources in Azure, and then ssh to controller & run bluek8s_install.sh
script to continue with the installation.
Similar process should be followed as explained in aws template;
git clone https://github.com/bluedata-community/bluedata-demo-env-azure-terraform.git && cd bluedata-demo-env-azure-terraform
terraform init
cp cloud-init-ctr.yaml.template cloud-init-ctr.yaml
cp cloud-init.yaml.template cloud-init.yaml
After successful deployment of Azure resources, you can manually update NSG settings to secure access to nodes (only controller and gateway have public IP addresses but all ports are exposed by default). Once connected with bluedata user (default user by cloud-init, you can choose your own), run installation script to prepare nodes & setup EPIC in controller.
Query subscription ID
az account list --query "[].{name:name, subscriptionId:id, tenantId:tenantId}"
Set environment variable to the subscription you want to use (following line works with a single subscription only)
SUBSCRIPTION_ID=az account list --query "[].{sub:id}" -o tsv
Set subscription to use
az account set --subscription="${SUBSCRIPTION_ID}"
Create a service principle to be used for this deployment
az ad sp create-for-rbac --role="Contributor" --scopes="/subscriptions/${SUBSCRIPTION_ID}"
The output should be used to fill in provider details in terraform.tfvars Save appId, password, sp_name & tenant from response
AppId DisplayName Name Password Tenant ------------------------------------ ----------------------------- ------------------------------------ ------------------------------------ ------------------------------------ 3dbee582-0000-0000-0000-06e44d93dd63 azure-cli-2019-12-10-07-12-40 http://azure-cli-2019-12-10-07-12-40 bf3f0384-0000-0000-0000-6c39aecaaa21 105b2061-0000-0000-0000-24d304d195dc