This repository creates an Azure Kubernetes Service and an API Management to demonstrate how you would use the Kubernetes API to create APIs in API Management
📂
├── [/.devcontainer](./.devcontainer/) contains the dev container with the installs necessary to run the project.
├── [/apim_artifacts](./apim_artifacts/) this folder is created by the demo.
├── [/apim_templates](./apim_templates/) holds the apim configuration that ASO will deploy.
├── [/infrastructure](./infrastructure/) contains the Terraform infrastructure.
├── [/scripts](./scripts/) contains scripts used to deploy project infrastructure.
├── [Makefile](./Makefile) defines the set of operations that can be executed from the command line.
└── [.env.example](./.env.example) contains the environment variables necessary to run the project.
This repository assumes that you are running this inside a VSCode DevContainer.
A makefile provides a frontend to interacting with the project. This makefile is self documentating, and has the following targets:
help 💬 This help message :)
infra 🏗️ Create the cloud Infrastructure
aso ⚙️ Setup Azure Service Operator
create_apim_artifacts ⚙️ Create APIM Artifacts
add_apim_artifacts ⬆️ Apply APIM Artifacts
remove_apim_artifacts ⬇️ Remove APIM Artifacts
Make a copy of the .env.example
and call it .env
; then define an Azure region, unique prefix
and your Azure Subscription Id. Next run the following from a terminal: -
make infra
This will create an AKS and an APIM service - go make yourself some lunch!
Run the following from a terminal: -
make aso
Run the following from a terminal: -
make add_apim_artifacts
Run the following from a terminal: -
make remove_apim_artifacts