Giter VIP home page Giter VIP logo

sumanmanna134 / azurek8s-powershell Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 14 KB

This repository provides PowerShell scripts for managing Azure Kubernetes Service (AKS) clusters. It includes scripts for creating, scaling, updating, and deleting AKS clusters, streamlining the management of Kubernetes environments in Azure.

PowerShell 100.00%
aks azure helm k8s keda keda-azure-pipelines-scaler powershell-script

azurek8s-powershell's Introduction

Azure Kubernetes Service (AKS) PowerShell Scripts

This repository contains PowerShell scripts for managing and automating tasks related to Azure Kubernetes Service (AKS). These scripts are designed to simplify operations such as cluster management, scaling, and monitoring.

Features

  • Cluster Management: Scripts for creating, updating, and deleting AKS clusters.
  • Scaling Operations: Automate scaling of nodes and pods.
  • Monitoring and Maintenance: Scripts for checking cluster health and performing maintenance tasks.
  • Configuration Management: Manage and update cluster configurations efficiently.

Getting Started

Prerequisites

  • PowerShell: Ensure you have PowerShell installed. Download PowerShell
  • Azure CLI: Install the Azure CLI to interact with Azure resources. Install Azure CLI
  • Azure Subscription: You need an Azure subscription to create and manage AKS clusters.

Setup

  1. Clone the Repository:

    git clone https://github.com/sumanmanna134/azureK8S-powershell.git
  2. Navigate to the Scripts Directory:

    cd azureK8S-powershell
  3. Authenticate with Azure: Run the following command to log in to your Azure account:

    az login

Usage

Creating an AKS Cluster

To create a new AKS cluster, use the Create-AKSCluster.ps1 script:

.\Create-AKSCluster.ps1 -ResourceGroupName "myResourceGroup" -ClusterName "myAKSCluster" -Location "EastUS"

Scaling an AKS Cluster

To scale the number of nodes in an AKS cluster, use the Scale-AKSCluster.ps1 script:

.\Scale-AKSCluster.ps1 -ResourceGroupName "myResourceGroup" -ClusterName "myAKSCluster" -NodeCount 3

Updating AKS Cluster Configuration

To update the configuration of an AKS cluster, use the Update-AKSCluster.ps1 script:

.\Update-AKSCluster.ps1 -ResourceGroupName "myResourceGroup" -ClusterName "myAKSCluster" -KubernetesVersion "1.20.7"

Deleting an AKS Cluster

To delete an AKS cluster, use the Delete-AKSCluster.ps1 script:

.\Delete-AKSCluster.ps1 -ResourceGroupName "myResourceGroup" -ClusterName "myAKSCluster"

Directory Structure

  • Create-AKSCluster.ps1 - Script to create a new AKS cluster.
  • Scale-AKSCluster.ps1 - Script to scale the AKS cluster nodes.
  • Update-AKSCluster.ps1 - Script to update the AKS cluster configuration.
  • Delete-AKSCluster.ps1 - Script to delete an AKS cluster.

Contributing

Contributions are welcome! If you have suggestions or improvements, please submit a pull request with a description of the changes.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Contact

For questions or feedback, please open an issue on the GitHub repository or contact me directly.


Feel free to customize this template according to your specific needs!

azurek8s-powershell's People

Contributors

sumanmanna134 avatar

Stargazers

 avatar

Watchers

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