GithubHelp home page GithubHelp logo

aks-meetup's Introduction

July DevOps Mumbai Meetup

AKS Cluster with RBAC

Create Resource Group

az group create --name julymeetuprg --location eastus

Create AKS cluster with RBAC

az aks create --name julymeetupaks --resource-group julymeetuprg --node-count 1 --node-vm-size Standard_D4s_v3 --generate-ssh-keys --enable-rbac

Get AKS admin creds

az aks get-credentials --name julymeetupaks --resource-group julymeetuprg --admin

Initialize helm with cluster

Create service account for tiller

kubectl create -f helm-rbac.yaml

Initialize helm

helm init --service-account tiller

Install service catalog

Add Repo for service catalog chart

helm repo add svc-cat https://svc-catalog-charts.storage.googleapis.com

install service catalog

helm install svc-cat/catalog --name catalog --namespace catalog --set controllerManager.healthcheck.enabled=false

create service principal for OSBA

az ad sp create-for-rbac

. ./.env.sh

Install OSBA

Add helm Repo for osba

helm repo add azure https://kubernetescharts.blob.core.windows.net/azure

helm install OSBA

helm install azure/open-service-broker-azure --name osba --namespace osba \
    --set azure.subscriptionId=$AZURE_SUBSCRIPTION_ID \
    --set azure.tenantId=$AZURE_TENANT_ID \
    --set azure.clientId=$AZURE_CLIENT_ID \
    --set azure.clientSecret=$AZURE_CLIENT_SECRET

Link wordpress with azure mysql using OSBA : https://github.com/Azure/helm-charts/tree/master/wordpress

Install Service Broker CLI

curl -LO https://servicecatalogcli.blob.core.windows.net/cli/latest/$(uname -s)/$(uname -m)/svcat
chmod +x ./svcat
mv ./svcat /usr/local/bin/

Install Wordpress

Install Wordpress with Azure MySQL backend

helm install azure/wordpress --name wordpress --namespace wordpress --set resources.requests.cpu=0

See brokers

svcat get brokers

See Classes

svcat get classes

See Plans

svcat get plans

See secrets

App in Action

ACI

az container create -g julymeetuprg --name nginx --image nginx --ip-address public

watch az container list -o table

container logs -g julymeetuprg -n nginx

az container delete -g julymeetuprg --name nginx

Virtual Kubelet

Access default namespace

kubectl apply -f virtual-kubelet-rbac.yaml

kubens default

install aci connector on cluster

az aks install-connector --resource-group julymeetuprg --name julymeetupaks --os-type linux --connector-name julymeetupaciconnector --aci-resource-group MC_julymeetuprg_julymeetupaks_eastus

az aks remove-connector --resource-group julymeetuprg --name julymeetupaks --connector-name virtual-kubelet

aks-meetup's People

Contributors

manisbindra avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Forkers

rishyjee bkumar73

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.