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.
- 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.
- 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.
-
Clone the Repository:
git clone https://github.com/sumanmanna134/azureK8S-powershell.git
-
Navigate to the Scripts Directory:
cd azureK8S-powershell
-
Authenticate with Azure: Run the following command to log in to your Azure account:
az login
To create a new AKS cluster, use the Create-AKSCluster.ps1
script:
.\Create-AKSCluster.ps1 -ResourceGroupName "myResourceGroup" -ClusterName "myAKSCluster" -Location "EastUS"
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
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"
To delete an AKS cluster, use the Delete-AKSCluster.ps1
script:
.\Delete-AKSCluster.ps1 -ResourceGroupName "myResourceGroup" -ClusterName "myAKSCluster"
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.
Contributions are welcome! If you have suggestions or improvements, please submit a pull request with a description of the changes.
This project is licensed under the MIT License - see the LICENSE file for details.
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!