B0go / kube-dash

Simple kubernetes dashboard for sandbox environments

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

kube-dash

Dashboard for sandbox environments

Idea

The idea is to give the ability to start up services in a sandbox clusters without giving them a lot of permissions (or any, for that mather).

For now, only the HTTP API is ready, but the idea is to have a cli tool and a web dashboard.

API

  • GET /api/deployments: lists the all deployments in all namespaces except kube-system;
  • PUT /api/deployments/{namespace}/{deployment name}/up: scale up a deployment (1 replica);
  • PUT /api/deployments/{namespace}/{deployment name}/down: scale down a deployment (0 replicas).

Deploy

Just run:

kubectl create -f https://raw.githubusercontent.com/caarlos0/kube-dash/master/deployment.yaml

It will create a deployment and a service in the kube-system namespace.

You will probably also need an ingress, here is an example:

apiVersion: extensions/v1beta1
kind: Ingress
metadata:
  name: kube-dash
  namespace: kube-system
spec:
  rules:
  - host: dash.foo.local
    http:
      paths:
      - backend:
          serviceName: kube-dash
          servicePort: 80

About

Simple kubernetes dashboard for sandbox environments


Languages

Language:Go 60.4%Language:HTML 28.7%Language:JavaScript 11.0%