Skip to content

ross-p-smith/apim-cloud-native-deployment

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

10 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Deploying API Management artifacts in a cloud native manner

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

Repository Structure

πŸ“‚
β”œβ”€β”€ [/.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.

Running Locally

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

Deploy the Infrastructure

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!

Install Azure Service Operator in your cluster

Run the following from a terminal: -

make aso

Use kubectl to apply configuration to AKS which then configures APIM!

Run the following from a terminal: -

make add_apim_artifacts

Use kubectl to remove configuration from AKS which then removes APIM configuration!

Run the following from a terminal: -

make remove_apim_artifacts

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published