npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@floriandorau/aks-management-cli

v1.2.2

Published

[![Build Status](https://app.travis-ci.com/floriandorau/aks-management-cli.svg?branch=main)](https://app.travis-ci.com/floriandorau/aks-management-cli) [![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=floriandorau_aks-manag

Downloads

21

Readme

aks-management-cli

Build Status Quality Gate Status

aks is a command line tool that let you manage the authorized IP ranges of managed AKS clusters. Therefore it uses Azure CLI and kubectl in the background.

Prerequisites

Make sure you use a Node version of at least 14.1.0. Besides Node, Azure CLI and kubectl needs to be installed on your machine.

Install

npm install -g @floriandorau/aks-management-cli

Usage

Run aks --help to see how to use it.

aks <command>

Commands:
  aks config <command>   Manage aks configuration
  aks context <command>  Manage aks context configurations
  aks get-credentials    Get access credentials for a managed Kubernetes cluster
  aks ip <command>       Manage authorized ip range of managed Kubernetes cluster
  aks completion         generate completion script

Options:
  --version  Show version
  --help     Show help

Before you start

Init aks configuration

Before you can use aks you need to set up a application config in your home directory. In order to do so you can use the following command. This will create an empty config file where aks will store its configuration.

aks config init

Add context to configuration

At second you need to configure your contexts. With this aks can determine which parameters should be used dependent on your current kubectl context.

To add a new context in your configuration you can use the following command.

aks context add {cluster-name} {resource-group} {subscription-id}

You can add multiple contexts to your configuration. If the cluster name matches the output of kubectl config current-context, aks can automatically use the correct settings for cluster name, resource group and its corresponding subscription.

List configured contexts

If you want to know, which context is already added to your aks configuration you can use the following command.

aks context list

AKS authorized IP ranges

The main purpose of aks is managing the authorized IP ranges of AKS clusters. Therefore it provides the following commands which you can use to modify the authorized ip ranges of a cluster which matches your currrent kubectl context.

Usage: aks ip <command>

Commands:
  aks ip add-current     Adds your current public ip to AKS authorized ip-ranges
  aks ip add <ip>        Adds <ip> to AKS authorized ip-ranges
  aks ip clear-range     Clears existing authorized ip-range of AKS
  aks ip remove-current  Removes current public ip from AKS authorized ip-ranges if exists
  aks ip remove <ip>     Removes <ip> from AKS authorized ip-ranges
  aks ip show-current    Prints your current public ip address
  aks ip show-range      Prints current authorized ip-range of AKS

Options:
  --version  Show version
  --help     Show help

All "current" commands will determine you current public IP address and modify the IP range accordingly.