在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):skooner-k8s/skooner开源软件地址(OpenSource Url):https://github.com/skooner-k8s/skooner开源编程语言(OpenSource Language):JavaScript 92.4%开源软件介绍(OpenSource Introduction):Skooner - Kubernetes DashboardWe are changing our name from k8dash to Skooner! Please bear with us as we update our documentation and codebase to reflect this change. If you previously installed k8dash, you will need to uninstall it from your cluster and install Skooner instead. For most cases this can be done by running the following Skooner is the easiest way to manage your Kubernetes cluster. Skooner is now a sandbox project of the Cloud Native Computing Foundation!
Table of ContentsPrerequisites
(Back to Table of Contents) Getting StartedDeploy Skooner with something like the following... NOTE: never trust a file downloaded from the internet. Make sure to review the contents of kubernetes-skooner.yaml before running the script below. kubectl apply -f https://raw.githubusercontent.com/skooner-k8s/skooner/master/kubernetes-skooner.yaml To access skooner, you must make it publicly visible. If you have an ingress server setup, you can accomplish by adding a route like the following: kind: Ingress
apiVersion: networking.k8s.io/v1
metadata:
name: skooner
namespace: kube-system
spec:
rules:
- host: skooner.example.com
http:
paths:
- path: /
backend:
sevice:
name: skooner
port:
number: 80
pathType: ImplementationSpecific Note: (Back to Table of Contents) kubectl proxyUnfortunately,
(Back to Table of Contents) Logging inThere are multiple options for logging into the dashboard: Service Account Token, OIDC, and NodePort. Service Account TokenThe first (and easiest) option is to create a dedicated service account. In the command line: # Create the service account in the current namespace (we assume default)
kubectl create serviceaccount skooner-sa
# Give that service account root on the cluster
kubectl create clusterrolebinding skooner-sa --clusterrole=cluster-admin --serviceaccount=default:skooner-sa
# Find the secret that was created to hold the token for the SA
kubectl get secrets
# Show the contents of the secret to extract the token
kubectl describe secret skooner-sa-token-xxxxx
Copy the OIDCSkooner makes using OpenId Connect for authentication easy. Assuming your cluster is configured to use OIDC, all you need to do is create a secret containing your credentials and apply kubernetes-skooner-oidc.yaml. To learn more about configuring a cluster for OIDC, check out these great links
You can deploy Skooner with OIDC support using something like the following script... NOTE: never trust a file downloaded from the internet. Make sure to review the contents of kubernetes-skooner-oidc.yaml before running the script below. OIDC_URL=<put your endpoint url here... something like https://accounts.google.com>
OIDC_ID=<put your id here... something like blah-blah-blah.apps.googleusercontent.com>
OIDC_SECRET=<put your oidc secret here>
kubectl create secret -n kube-system generic skooner \
--from-literal=url="$OIDC_URL" \
--from-literal=id="$OIDC_ID" \
--from-literal=secret="$OIDC_SECRET"
kubectl apply -f https://raw.githubusercontent.com/skooner-k8s/skooner/master/kubernetes-skooner-oidc.yaml
Additionally, you can provide other OIDC options via these environment variables:
NodePortIf you do not have an ingress server setup, you can utilize a NodePort service as configured in kubernetes-skooner-nodeport.yaml. This is ideal when creating a single node master, or if you want to get up and running as fast as possible. This will map Skooner port
MetricsSkooner relies heavily on metrics-server to display real time cluster metrics. It is strongly recommended to have (Back to Table of Contents) DevelopmentYou will need:
(Back to Table of Contents) Skooner ArchitectureServerTo run the server, run During development, the server will use whatever is configured in ClientThe client is a React application (using TypeScript) with minimal other dependencies. To run the client, open a new terminal tab and navigate to the (Back to Table of Contents) TroubleshootingRecommendation for keycloak configuration:
License(Back to Table of Contents) |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论