Code Monkey home page Code Monkey logo

apim-cloud-native-deployment's Introduction

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

apim-cloud-native-deployment's People

Contributors

ross-p-smith avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.