/rancher-cluster-workload

Deploys SUSE Rancher Kubernetes clusters on Azure Kubernetes Service, including integration into Microsoft Entra ID (Azure AD), Azure Monitor and Microsoft Defender for Cloud.

Primary LanguagePythonGNU General Public License v3.0GPL-3.0

rancher-cluster-workload

CI

About

Deploys Rancher Kubernetes clusters on Azure Kubernetes Service, including integration into Microsoft Entra ID (Azure AD), Azure Monitor and Microsoft Defender for Cloud.

Requirements

Python

See the .python-version file.

Terraform

See the .tfswitchrc file.

Test

INCLUDE_DEV=true make install
make test

Deploy

export ARM_CLIENT_ID="[ARM client ID]" \
  ARM_CLIENT_SECRET="[ARM client secret]" \
  ARM_SUBSCRIPTION_ID="[ARM subscription ID]" \
  ARM_TENANT_ID="[ARM tenant ID]" \
  ENVIRONMENT="[environment]" \
  REGION="[region]" \
  SET="[set]" \
  WORKLOAD_NAME="[workload name]" \
  WORKLOAD_TYPE="rancher-cluster-workload" \
  WORKLOAD_VERSION="[workload version]" \
  ZONE="[zone]"
make deploy

Configuration

# config/[environment]/main.tfvars

clusters = [
  {
    name               = "[name, e.g. foo]"
    kubernetes_version = "[kubernetes version, e.g 1.27.3]"
    node_count         = "[node count, e.g. 3]"
    vm_size            = "[VM size, e.g. Standard_D2s_v3]"
  },
  [...]
]
rancher_server_key_vault_id = "[Rancher Server Key Vault resource ID]"