hubot-k8s
A hubot script for interacting with kubernetes
Last updated a year ago by kevin_schmidt .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install hubot-k8s 
SYNC missed versions from official npm registry.

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>

Current Tags

  • 0.1.0                                ...           latest (a year ago)

1 Versions

  • 0.1.0                                ...           a year ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 1
Dependencies (3)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |