Dashboard for sandbox environments
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.
GET /api/deployments
: lists the all deployments in all namespaces exceptkube-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).
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