0.0.21 • Published 3 years ago

hubot-k8s-local v0.0.21

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

Hubot Kubernetes Bot

Hubot bot that communicates with the Kubernetes environment where the bot is running.

Uses config mounted in the Hubot pod as described in https://kubernetes.io/docs/tasks/run-application/access-api-from-pod/#directly-accessing-the-rest-api

To allow Hubot to access resources in other namespaces, run the Hubot pod with a service account that has permission to do that.

Configuration:

  • HUBOT_K8S_DEFAULT_NAMESPACE - Default namespace in Kubernetes
  • HUBOT_K8S_CONSOLE - URL of the web console

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 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>

0.0.20

3 years ago

0.0.21

3 years ago

0.0.14

3 years ago

0.0.15

3 years ago

0.0.16

3 years ago

0.0.17

3 years ago

0.0.18

3 years ago

0.0.19

3 years ago

0.0.13

3 years ago

0.0.12

3 years ago

0.0.11

3 years ago

0.0.10

3 years ago

0.0.9

3 years ago

0.0.8

3 years ago

0.0.7

3 years ago

0.0.6

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago