Socket
Book a DemoInstallSign in
Socket

hubot-k8s-logging

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

hubot-k8s-logging

A hubot script for interacting with kubernetes

0.1.7
unpublished
latest
Source
npmnpm
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

Hubot Kubernetes Bot

Let's you connect to multiple kubernetes environments and interact with them.

Thanks to https://github.com/canthefason/hubot-kubernetes for the inspiration.

Configuration:

  • 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

Commands:

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

Display Current Kubernetes Context

k8s context

Switching Kubernetes Context

k8s context <context>

Display Current Kubernetes Namespace

k8s namespace|ns

Switching Kubernetes Namespace

k8s namespace|ns <namespace>

List Deployments

k8s deployments|deploy [<labelSelector>]

List Services

k8s services|svc [<labelSelector>]

List Cron Jobs

k8s cronjobs [<labelSelector>]

List Jobs

k8s jobs [<labelSelector>]

Get logs from a pod

k8s logs|log <pod name>

Keywords

hubot

FAQs

Package last updated on 05 Feb 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

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.