Coder Social home page Coder Social logo

aks-ingress-pattern's Introduction

Sample implement patterns of Ingress on Azure Kubernetes Service

Table of Contents

About

Deployment codes for 3 sample implement patterns of Ingress on AKS.

  1. Application Gateway Ingress Controller
  2. NGINX Ingress Controller
  3. Combination of 1 and 2

Getting Started

Mainly use Azure CLI and flux v2

Prerequisites / Tested

Usage

Clone or fork this repo. And export environemt variables related to GitHub.

export GITHUB_TOKEN=<your-token>
export GITHUB_USER=<your-username>

1. Azure Application Gateway Ingress Controller

az group create -n rg-ingress-appgw -l japaneast
az aks create \
  -g rg-ingress-appgw \
  -n <your-prefix>-ingress-appgw \
  --network-plugin="azure" \
  --network-policy="calico" \
  --enable-managed-identity \
  -a ingress-appgw \
  --appgw-name agw-ingress \
  --appgw-subnet-cidr "10.2.0.0/16"
az aks get-credentials -g rg-ingress-appgw -n <your-prefix>-ingress-nginx --admin
flux bootstrap github \
  --owner=$GITHUB_USER \
  --repository=aks-ingress-pattern \
  --branch=main \
  --path=./clusters/appgw \
  --personal

After use

az group delete -n rg-ingress-appgw

2. NGINX Ingress Controller

az group create -n rg-ingress-nginx -l japaneast
az aks create \
  -g rg-ingress-nginx \
  -n <your-prefix>-ingress-nginx \
  --network-plugin="azure" \
  --network-policy="calico" \
  --enable-managed-identity
az aks get-credentials -g rg-ingress-nginx -n <your-prefix>-ingress-nginx --admin
flux bootstrap github \
  --owner=$GITHUB_USER \
  --repository=aks-ingress-pattern \
  --branch=main \
  --path=./clusters/nginx \
  --personal

After use

az group delete -n rg-ingress-nginx

3. Combination of 1 and 2

az group create -n rg-ingress-combi -l japaneast
az aks create \
  -g rg-ingress-combi \
  -n <your-prefix>-ingress-combi \
  --network-plugin="azure" \
  --network-policy="calico" \
  --enable-managed-identity
az aks get-credentials -g rg-ingress-combi -n <your-prefix>-ingress-combi --admin
flux bootstrap github \
  --owner=$GITHUB_USER \
  --repository=aks-ingress-pattern \
  --branch=main \
  --path=./clusters/combi \
  --personal
az network vnet subnet create \
  -g <your-aks-node-resource-group> \
  -n snet-appgw \
  --vnet-name <your-aks-vnet> \
  --address-prefix 10.2.0.0/16
az network public-ip create \
  -g <your-aks-node-resource-group> \
  -n pip-appgw \
  --sku Standard
az network application-gateway create \
  -g <your-aks-node-resource-group> \
  -n agw-ingress \
  --vnet-name <your-aks-vnet> \
  --subnet snet-appgw \
  --capacity 2 \
  --sku Standard_v2 \
  --http-settings-cookie-based-affinity Disabled \
  --frontend-port 80 \
  --http-settings-port 80 \
  --http-settings-protocol Http \
  --public-ip-address pip-appgw \
  --servers 10.240.255.1

You can replace NGINX Ingress Service IP address with --servers option. Match the definition in release vaule.

After use

az group delete -n rg-ingress-combi

aks-ingress-pattern's People

Contributors

torumakabe avatar

Watchers

 avatar  avatar  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.