professional-service/examples/ske-azure-arc-integration
2026-07-01 13:40:32 +02:00
..
.terraform.lock.hcl example(ske-azure-arc): add example on how to add ske cluster to azure arc 2026-05-19 21:42:02 +02:00
010-provider.tf example(ske-azure-arc): add example on how to add ske cluster to azure arc 2026-05-19 21:42:02 +02:00
020-variables.tf example(ske-azure-arc): add example on how to add ske cluster to azure arc 2026-05-19 21:42:02 +02:00
030-stackit-azure-arc.tf example(ske-azure-arc): add example on how to add ske cluster to azure arc 2026-05-19 21:42:02 +02:00
040-outputs.tf example(ske-azure-arc): add example on how to add ske cluster to azure arc 2026-05-19 21:42:02 +02:00
MAINTAINERS.md example(ske-azure-arc): add example on how to add ske cluster to azure arc 2026-05-19 21:42:02 +02:00
README.md example(ske-azure-arc): add example on how to add ske cluster to azure arc 2026-05-19 21:42:02 +02:00
stackit.docs.yaml hackathon: work on idea 2026-07-01 13:40:32 +02:00

STACKIT SKE Azure Arc Integration

This repository contains Terraform and CLI steps to connect a STACKIT SKE cluster to Azure Arc.

Prerequisites

  • Azure CLI installed and authenticated (az login)
  • Terraform installed
  • STACKIT Project & Service Account configured

Setup Guide

1. Provision Infrastructure

Deploy the SKE cluster and an Azure Resource Group to host the Arc connection:

terraform init
terraform apply

2. Connect to Azure Arc

Run the following commands to register required Azure providers and connect the cluster:

# Register Azure Arc providers
az extension add --name connectedk8s
az provider register --namespace Microsoft.Kubernetes
az provider register --namespace Microsoft.KubernetesConfiguration
az provider register --namespace Microsoft.ExtendedLocation

# Export SKE Kubeconfig
terraform output -raw kubeconfig > .kubeconfig

# Connect cluster to Azure Arc
az connectedk8s connect \
  --name "stackit-$(terraform output -raw cluster_name)" \
  --resource-group "$(terraform output -raw azure_resource_group)" \
  --location "$(terraform output -raw azure_location)" \
  --kube-config .kubeconfig

References