ui-server
ui-server copied to clipboard
Kubernetes UI Server
trafficstars
ui-server
Kubernetes UI Server is an extended api server for Kubernetes. This exposes a number of apis for a Kubernetes cluster, such as:
WhoAmIservice returns the user info of the user making the api call.PodViewresource exposes actual resource usage by a Pod. The resource usage information is read from Prometheus.
Deploy into a Kubernetes Cluster
You can deploy UI Server using Helm chart found here.
helm repo add appscode https://charts.appscode.com/stable/
helm repo update
helm install kube-ui-server appscode/kube-ui-server
Usage
$ kubectl create -f artifacts/whoami.yaml -o yaml
apiVersion: identity.k8s.appscode.com/v1alpha1
kind: WhoAmI
response:
user:
groups:
- system:masters
- system:authenticated
username: kubernetes-admin
How It Woks
Identity Server is a Kubernetes extended apiserver (EAS). As an EAS, it has access to the user who is making an api call to the "whoami" server. You can find the core of the implementation here.