ui-server

module
v0.0.50 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 12, 2024 License: Apache-2.0

README

Go Report Card Build Status Docker Pulls Slack Twitter

ui-server

Kubernetes UI Server is an extended api server for Kubernetes. This exposes a number of apis for a Kubernetes cluster, such as:

  • WhoAmI service returns the user info of the user making the api call.
  • PodView resource 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: authentication.k8s.io/v1
kind: SelfSubjectReview
metadata:
  creationTimestamp: "2024-06-10T18:41:37Z"
status:
  userInfo:
    groups:
    - kubeadm:cluster-admins
    - 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.

Directories

Path Synopsis
apis
cost/v1alpha1
+k8s:openapi-gen=true +k8s:deepcopy-gen=package +k8s:defaulter-gen=TypeMeta +groupName=cost.k8s.appscode.com
+k8s:openapi-gen=true +k8s:deepcopy-gen=package +k8s:defaulter-gen=TypeMeta +groupName=cost.k8s.appscode.com
offline/v1alpha1
+k8s:openapi-gen=true +k8s:deepcopy-gen=package +k8s:defaulter-gen=TypeMeta +groupName=offline.licenses.appscode.com
+k8s:openapi-gen=true +k8s:deepcopy-gen=package +k8s:defaulter-gen=TypeMeta +groupName=offline.licenses.appscode.com
policy/v1alpha1
+k8s:openapi-gen=true +k8s:deepcopy-gen=package +k8s:defaulter-gen=TypeMeta +groupName=policy.k8s.appscode.com
+k8s:openapi-gen=true +k8s:deepcopy-gen=package +k8s:defaulter-gen=TypeMeta +groupName=policy.k8s.appscode.com
cmd
pkg

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL