Big News: Socket Selected for OpenAI's Cybersecurity Grant Program.Details
Socket
Book a DemoSign in
Socket

k8ss

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

k8ss

k8s switcher

latest
Source
npmnpm
Version
1.9.0
Version published
Maintainers
1
Created
Source

k8ss

k8s cluster and namespace switcher

Git commit with emojis! Build Status semantic-release

Quality gate

Prerequisites

  • nodejs installed (tested in version 12)
  • kubectl installed
  • k8s-config folder in home directory, for example:
~
 |-- k8s-config
       |-- hangzhou
              |-- config
       |-- beijing
              |-- config

Installation

npm install k8ss --global

Usage

List all configured clusters

k8ss list

Switch to cluster or namespace

# full usage:
k8ss switch --cluster=hangzhou --namespace=test

# switch namespace only without change cluster:
k8ss s --namespace=stage

Login

k8ss login

How

  • move the related config file into ~/.kube
  • execute kubectl config set-context $(kubectl config current-context) --namespace=<namespace>

FAQ

  • npm WARN checkPermissions Missing write access to /usr/local/nvm/versions/node/v12.13.1/lib/node_modules

    Then you can install it locally by npm i k8ss and then run it as ./node_modules/.bin/k8ss switch --namespace=xxx.

Keywords

k8s

FAQs

Package last updated on 27 Dec 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts