Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

hubot-k8s-bot

Package Overview
Dependencies
Maintainers
1
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hubot-k8s-bot

A hubot script for interacting with kubernetes

  • 0.1.1-b24
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

Hubot Kubernetes Bot 机器人

支持多 K8S 集群并与其交互。

配置

  • HUBOT_K8S_CONTEXTS {"prod":{"server":"https://kubernetes.cluster.io","ca":"./ca.crt","dashboardPrefix":"https://kubernetes.cluster.io","token":"<kubernetes token>"}}
  • HUBOT_K8S_DEFAULT_CONTEXT - Default context (from above config)
  • HUBOT_K8S_DEFAULT_NAMESPACE - Default namespace in Kubernetes

命令:

All commands operate in the currently selected namespace and context. All commands with label selectors accept it in the form label=value.

列出所有命令

k8s help

列出 Kubernetes 集群

k8s context

切换 Kubernetes 集群

k8s context <context>

列出 Kubernetes 命名空间

k8s namespace|ns

切换 Kubernetes 命名空间

k8s namespace|ns <namespace>

列出 Deployments

k8s deployments|deploy [<labelSelector>]

列出 Statefulsets

k8s statefulsets|sts [<labelSelector>]

列出 Nodes

k8s nodes|no [<labelSelector>]

列出 Services

k8s services|svc [<labelSelector>]

列出 Cron Jobs

k8s cronjobs|cj [<labelSelector>]

列出 Jobs

k8s jobs [<labelSelector>]

列出 Pods

k8s pods|po [<labelSelector>]

获取日志

k8s logs|log <pod name>

鸣谢

  • https://github.com/astamiviswakarma/hubot-k8s
  • https://github.com/canthefason/hubot-kubernetes

Keywords

FAQs

Package last updated on 03 Mar 2023

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc