Giter Club home page Giter Club logo

arohcp-workspace's Introduction

Deploy Azure Kubernetes Service (AKS) with ARM Template

This repository contains an ARM template (aks-arm-template.json) to deploy an Azure Kubernetes Service (AKS) cluster using the Azure CLI (az) command-line interface.

Prerequisites

Before you begin, ensure you have the following:

  • Azure CLI installed and authenticated with appropriate permissions.
  • An Azure subscription.

Deployment Steps

  1. Login to Azure: If you haven't already logged in to your Azure account, use the following command to login:
    az login
  2. Select Subscription: If you have multiple subscriptions, select the appropriate one:
    az account set --subscription <subscription_id_or_name>
  3. Deploy the ARM Template: Use the following command to deploy the ARM template
    az deployment group create --resource-group <resource_group_name> --template-file ./aks-arm-template.json
  4. Check if deployment went through: Check the state of template based deployment
    az deployment group list -g perf-scale-harsha -o table
    az aks list -o table

Retreive the kubeconfig

To access your newly deployed AKS, perform the following steps to download the kubeconfig

  1. Check "ProvisioningState" of your AKS Cluster
    az aks list -o table
  2. Get access credentials for your AKS Cluster
    az aks get-credentials --name <CLUSTER_NAME> --resource-group <RESOURCE_GROUP_NAME> --file /tmp/kubeconfig

Executing the workload

The ./e2e-aks-run.sh script is small wrapper to be used as entrypoint of some of its flags. Currently, the following workloads are supported:

Workloads
kubelet-density
kubelet-density-cni
cluster-density-k8s
hcp-density-aks

Environment variables

This wrapper supports some variables to tweak some basic parameters, like:

  • AKS_MC_CLUSTER_NAME: Defines the name of your AKS Cluster, by default empty.
  • ES_SERVER: Defines the ElasticSearch/OpenSearch endpoint. By default it points the development instance. Indexing can be disabled with export ES_SERVER=""
  • PROM_URL: Defines the Azure's Managed Prometheus endpoint URL for scrapping the index, by default empty.
  • TOKEN: Defines the token corresponding to Azure's Managed Prometheus Token, by default empty.
  • WORKLOAD: Defines the WORKLOAD, by default kubelet-density

arohcp-workspace's People

Contributors

mukrishn avatar krishvoor avatar morenod 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.