-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add an addon for automatically setting up [YAKD (Yet Another Kubernetes Dashboard)](https://github.com/manusa/yakd) This is an alternative Kubernetes Dashboard with special support for Minikube, OpenShift, and other flavors of Kubernetes. It was originally started as an example project for [YAKC (Yet Another Kubernetes Client)](https://github.com/manusa/yakc) but it was recently spun off as a separate project. Regarding Minikube, it offers specific functionality such as cluster detection, support for opening NodePort services from the interface, and more.
- Loading branch information
Showing
11 changed files
with
202 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: ClusterRoleBinding | ||
metadata: | ||
name: yakd-dashboard | ||
labels: | ||
app.kubernetes.io/name: yakd-dashboard | ||
kubernetes.io/minikube-addons: yakd-dashboard | ||
addonmanager.kubernetes.io/mode: Reconcile | ||
roleRef: | ||
apiGroup: rbac.authorization.k8s.io | ||
kind: ClusterRole | ||
name: cluster-admin | ||
subjects: | ||
- kind: ServiceAccount | ||
name: yakd-dashboard | ||
namespace: yakd-dashboard |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
kind: Deployment | ||
apiVersion: apps/v1 | ||
metadata: | ||
labels: | ||
app.kubernetes.io/name: yakd-dashboard | ||
app.kubernetes.io/instance: yakd-dashboard | ||
kubernetes.io/minikube-addons: yakd-dashboard | ||
addonmanager.kubernetes.io/mode: Reconcile | ||
name: yakd-dashboard | ||
namespace: yakd-dashboard | ||
spec: | ||
replicas: 1 | ||
revisionHistoryLimit: 10 | ||
selector: | ||
matchLabels: | ||
app.kubernetes.io/name: yakd-dashboard | ||
app.kubernetes.io/instance: yakd-dashboard | ||
template: | ||
metadata: | ||
labels: | ||
app.kubernetes.io/name: yakd-dashboard | ||
app.kubernetes.io/instance: yakd-dashboard | ||
gcp-auth-skip-secret: "true" | ||
spec: | ||
containers: | ||
- name: yakd | ||
image: {{.CustomRegistries.Yakd | default .ImageRepository | default .Registries.Yakd }}{{.Images.Yakd}} | ||
imagePullPolicy: IfNotPresent | ||
ports: | ||
- name: http | ||
containerPort: 8080 | ||
protocol: TCP | ||
env: | ||
- name: KUBERNETES_NAMESPACE | ||
valueFrom: | ||
fieldRef: | ||
apiVersion: v1 | ||
fieldPath: metadata.namespace | ||
- name: HOSTNAME | ||
valueFrom: | ||
fieldRef: | ||
apiVersion: v1 | ||
fieldPath: metadata.name | ||
resources: | ||
limits: | ||
memory: 256Mi | ||
requests: | ||
memory: 128Mi | ||
securityContext: | ||
allowPrivilegeEscalation: false | ||
privileged: false | ||
runAsUser: 1001 | ||
runAsGroup: 2001 | ||
livenessProbe: | ||
httpGet: | ||
path: / | ||
port: 8080 | ||
initialDelaySeconds: 10 | ||
timeoutSeconds: 10 | ||
readinessProbe: | ||
httpGet: | ||
path: / | ||
port: 8080 | ||
initialDelaySeconds: 10 | ||
timeoutSeconds: 10 | ||
restartPolicy: Always | ||
serviceAccountName: yakd-dashboard | ||
nodeSelector: | ||
"kubernetes.io/os": linux |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
apiVersion: v1 | ||
kind: Namespace | ||
metadata: | ||
name: yakd-dashboard | ||
labels: | ||
kubernetes.io/minikube-addons: yakd-dashboard | ||
addonmanager.kubernetes.io/mode: Reconcile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
apiVersion: v1 | ||
kind: ServiceAccount | ||
metadata: | ||
labels: | ||
app.kubernetes.io/name: yakd-dashboard | ||
kubernetes.io/minikube-addons: yakd-dashboard | ||
addonmanager.kubernetes.io/mode: Reconcile | ||
name: yakd-dashboard | ||
namespace: yakd-dashboard |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
kind: Service | ||
apiVersion: v1 | ||
metadata: | ||
labels: | ||
app.kubernetes.io/name: yakd-dashboard | ||
kubernetes.io/minikube-addons: yakd-dashboard | ||
addonmanager.kubernetes.io/mode: Reconcile | ||
name: yakd-dashboard | ||
namespace: yakd-dashboard | ||
spec: | ||
type: NodePort | ||
ports: | ||
- port: 80 | ||
targetPort: 8080 | ||
selector: | ||
app.kubernetes.io/name: yakd-dashboard | ||
app.kubernetes.io/instance: yakd-dashboard |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
42 changes: 42 additions & 0 deletions
42
site/content/en/docs/handbook/addons/yakd-kubernetes-dashboard.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
--- | ||
title: "Using the YAKD - Kubernetes Dashboard Addon" | ||
linkTitle: "YAKD - Kubernetes Dashboard" | ||
weight: 1 | ||
date: 2023-12-12 | ||
--- | ||
|
||
## YAKD - Kubernetes Dashboard Addon | ||
|
||
[YAKD - Kubernetes Dashboard](https://github.com/manusa/yakd) is a full-featured web-based Kubernetes Dashboard with special functionality for Minikube. | ||
|
||
The dashboard features a real-time Search pane that allows you to search for Kubernetes resources and see them update in real-time as you type. | ||
|
||
### Enable YAKD - Kubernetes Dashboard on minikube | ||
|
||
To enable this addon, simply run: | ||
|
||
```shell script | ||
minikube addons enable yakd | ||
``` | ||
|
||
Once the addon is enabled, you can access the YAKD - Kubernetes Dashboard's web UI using the following command. | ||
|
||
```shell script | ||
minikube service yakd-dashboard -n yakd-dashboard | ||
``` | ||
|
||
There dashboard will open in a new browser window and you should be able to start using it with no further hassle. | ||
|
||
YAKD - Kubernetes Dashboard is also compatible with metrics-server. To install it, run: | ||
|
||
```shell script | ||
minikube addons enable metrics-server | ||
``` | ||
|
||
### Disable YAKD - Kubernetes Dashboard | ||
|
||
To disable this addon, simply run: | ||
|
||
```shell script | ||
minikube addons disable yakd | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters