kubedash

by devopstales

Helm chartv4.0.0App 4.0.0Verified publisher

KubeDash is a general purpose, web-based UI for Kubernetes clusters.

About this chart

KubeDash

Description

KubeDash is a general purpose, web-based UI for Kubernetes clusters.

Configuration

The following tables lists configurable parameters of the KubeDash chart and their default values.

Values

KeyTypeDefaultDescription
TimeZonestring"CET"Time Zone in container
affinityobject{}Set the affinity for the pod.
clusterobject{"apiUrl":"https://kubernetes.mydomain.intra:6443","name":"k8s-cluster"}k8s connection information.
cluster.apiUrlstring"https://kubernetes.mydomain.intra:6443"k8s api url
cluster.namestring"k8s-cluster"k8s api url
containerSecurityContextobject{"allowPrivilegeEscalation":false,"capabilities":{"drop":["all"]}}list of the container's SecurityContexts
createClusterRolebooltrueEnable ClusterRole creation. Disable if the role already exists.
dbuiobject{"image":{"plugins":"tables-filter,adminer-auto-login","pullPolicy":"IfNotPresent","repository":"sosedoff/pgweb","tag":"latest"}}deploy ui for db
dbui.image.pluginsstring"tables-filter,adminer-auto-login"adminer plugins
dbui.image.pullPolicystring"IfNotPresent"adminer image pull policy
dbui.image.repositorystring"sosedoff/pgweb"adminer image
dbui.image.tagstring"latest"adminer image tag
externalDatabaseobject{"database":"kubedash","enabled":false,"host":"","password":"kubedash","port":5432,"secret":{"name":"kubedash-postgresql","useExistingSecret":false},"username":"kubedash"}enable external postgresql support
externalDatabase.databasestring"kubedash"External postgresql database
externalDatabase.enabledboolfalseEnable external postgresql
externalDatabase.hoststring""External postgresql host
externalDatabase.passwordstring"kubedash"External postgresql password
externalDatabase.portint5432External postgresql port
externalDatabase.secret.namestring"kubedash-postgresql"Name of the secret storing EXTERNAL_DATABASE_PASSWORD.
externalDatabase.secret.useExistingSecretboolfalseSecret must provide the following variables: EXTERNAL_DATABASE_PASSWORD.
externalDatabase.usernamestring"kubedash"External postgresql username
flaskConfigstring"production"flask environment: production or development
image.pullPolicystring"Always"The docker image pull policy
image.repositorystring"devopstales/kubedash"The docker image repository to use
image.statsdExporter.repositorystring"prom/statsd-exporter"The docker image repository to use
image.statsdExporter.tagstring"v0.22.4"The docker image tag to use
image.tagstring"3.1.0"The docker image tag to use
imagePullSecretslist[]pullsecrets
ingress.annotationsobject{"nginx.ingress.kubernetes.io/proxy-body-size":"10m","nginx.ingress.kubernetes.io/proxy-read-timeout":"3600","nginx.ingress.kubernetes.io/proxy-send-timeout":"3600","nginx.ingress.kubernetes.io/server-snippets":"location / {\n proxy_set_header Upgrade $http_upgrade;\n proxy_http_version 1.1;\n proxy_set_header X-Forwarded-Host $http_host;\n proxy_set_header X-Forwarded-Proto $scheme;\n proxy_set_header X-Forwarded-For $remote_addr;\n proxy_set_header Host $host;\n proxy_set_header Connection \"upgrade\";\n proxy_cache_bypass $http_upgrade;\n}\n"}Extra annotation to the Ingress object
ingress.classNamestring"nginx"Ingress class name
ingress.enabledbooltrueEnable Ingress object creation
ingress.tls.certManager.clusterIssuerstring"letsencrypt"Name of the certManager cluster issuer to use
ingress.tls.certManager.enabledboolfalseEnable certManager
ingress.tls.enabledbooltrueEnable tls on Ingress object
ingress.tls.tlsSecretstring""Name of the secret storing tls cert
ingress.urlstring"kubedash.mydomain.intra"URL of the Ingress object
ingress.whitelist.enabledboolfalseEnable ip blocking on ingress
ingress.whitelist.ipslist[]List of ips to allow communication
logLevelstring"INFO"Log level
metrics.enabledbooltrueEnable metrics
metrics.grafana.annotations.grafana_folderstring"KubeDash"
metrics.grafana.enabledbooltrueEnable grafana dashboard deploy
metrics.grafana.labels.grafana_dashboardstring"1"
metrics.grafana.namespacestring"monitoring-system"Grafana dashboard namespace
metrics.serviceMonitor.annotationsobject{}Prometheus service monitor annotations
metrics.serviceMonitor.enabledboolfalseEnable prometheus service monitor
metrics.serviceMonitor.honorLabelsobject{}
metrics.serviceMonitor.intervalstring"30s"Prometheus service monitor interval
metrics.serviceMonitor.jobLabelobject{}Prometheus service monitor job labels
metrics.serviceMonitor.labelsobject{"release":"kube-prometheus-stack"}Prometheus service monitor labels
metrics.serviceMonitor.metricRelabelingslist[]
metrics.serviceMonitor.relabelingslist[]
metrics.serviceMonitor.scrapeTimeoutstring"10s"Prometheus service monitor scrape timeout
metricsServerobject{"args":["--kubelet-preferred-address-types=InternalIP","--kubelet-insecure-tls"],"enabled":false}enable metrics-server
nodeSelectorobject{}Set nodeSelector for the pod
oidcobject{"enabled":false,"provider":{"oidcClientId":"","oidcScopes":"openid email","oidcSecret":"","oidcUrl":"https://sso.mydomain.intra/auth/realms/k8s"},"secret":{"name":"kubedash-oidc","useExistingSecret":false}}oidc connection information
oidc.enabledboolfalseEnable oidc authentication
oidc.provider.oidcClientIdstring""oidc client id
oidc.provider.oidcScopesstring"openid email"oidc scope
oidc.provider.oidcSecretstring""oidc client secret
oidc.provider.oidcUrlstring"https://sso.mydomain.intra/auth/realms/k8s"oidc issuer url
oidc.secret.namestring"kubedash-oidc"Name of the secret storing OIDC_CLIENT_ID and OIDC_SECRET.
oidc.secret.useExistingSecretboolfalseSecret must provide the following variables: OIDC_CLIENT_ID and OIDC_SECRET.
persistenceobject{"accessMode":"ReadWriteOnce","annotations":{},"enabled":true,"size":"1Gi","storageClass":"-"}enable persistence
persistence.accessModestring"ReadWriteOnce"Volumes mode
persistence.annotationsobject{}Volumes annotations
persistence.enabledbooltrueVolumes for the pod
persistence.sizestring"1Gi"Volumes size
pluginsobject{"certManager":{"enabled":true},"externalLoadbalancer":{"enabled":true},"flux":{"enabled":true},"helmDashboard":{"enabled":true},"registryUi":{"enabled":true}}enable plugins
plugins.certManager.enabledbooltrueEnable helm dashboard plugin
plugins.externalLoadbalancer.enabledbooltrueEnable external loadbalancer plugin
plugins.flux.enabledbooltrueEnable flux plugin
plugins.helmDashboard.enabledbooltrueEnable helm dashboard plugin
plugins.registryUi.enabledbooltrueEnable registry UI plugin
podSecurityContextobject{"fsGroup":10001,"fsGroupChangePolicy":"OnRootMismatch","runAsNonRoot":true,"runAsUser":10001}list of the pos's SecurityContexts
postgresqlobject{"auth":{"database":"kubedash","password":"kubedash","postgresPassword":"change-me","replicationPassword":"change-me","username":"kubedash"},"enabled":true,"metrics":{"enabled":true,"serviceMonitor":{"enabled":false,"honorLabels":{},"jobLabel":{},"labels":{"release":"kube-prometheus-stack"}}},"primary":{"persistence":{"size":"10Gi"}},"rbac":{"create":true},"readReplicas":{"replicaCount":0},"securityContext":{"enabled":false},"shmVolume":{"chmod":{"enabled":false}},"volumePermissions":{"enabled":false,"securityContext":{"runAsUser":"auto"}}}deploy postgresql
postgresql.auth.databasestring"kubedash"Postgresql database
postgresql.auth.passwordstring"kubedash"Postgresql password
postgresql.auth.postgresPasswordstring"change-me"Postgresql postgres user password
postgresql.auth.replicationPasswordstring"change-me"Postgresql replication password
postgresql.auth.usernamestring"kubedash"Postgresql username
postgresql.enabledbooltrueEnable postgresql
postgresql.metrics.enabledbooltrueEnable postgresql metrics
postgresql.metrics.serviceMonitor.enabledboolfalseEnable prometheus service monitor
postgresql.metrics.serviceMonitor.jobLabelobject{}Set serviceMonitor labels
postgresql.metrics.serviceMonitor.labelsobject{"release":"kube-prometheus-stack"}Prometheus service monitor labels
postgresql.readReplicas.replicaCountint0Number of read replicas to create
postgresql.securityContext.enabledboolfalseEnable postgresql security context
postgresql.shmVolume.chmodobject{"enabled":false}Enable postgresql shared memory volume
postgresql.volumePermissions.enabledboolfalseEnable init container to set permissions on data volume
redisobject{"architecture":"standalone","enabled":true,"metrics":{"enabled":true,"serviceMonitor":{"additionalLabels":{"release":"kube-prometheus-stack"},"enabled":false}}}enable redis for caching
redis.architecturestring"standalone"Redis cluster architecture
redis.enabledbooltrueEnable redis
redis.metrics.enabledbooltrueEnable redis metrics
redis.metrics.serviceMonitor.additionalLabelsobject{"release":"kube-prometheus-stack"}Prometheus service monitor namespace namespace: "monitoring"
redis.metrics.serviceMonitor.enabledboolfalseEnable prometheus service monitor
redisuiobject{"image":{"pullPolicy":"Always","repository":"patrikx3/p3x-redis-ui","tag":"latest"},"resources":{}}redis ui
replicasint1replica number - for multiple replicas you need to enable externalDatabase support
route.annotationsobject{}Extra annotation to the OpenShift Route object
route.enabledboolfalseEnable OpenShift Route object creation
route.urlstring"kubedash.mydomain.intra"URL of the OpenShift Route object
serviceAccount.createbooltrueEnable automatic serviceAccount creation
serviceAccount.namestring"kubedash-admin"Configure the name of the serviceAccount
tolerationslist[]Set tolerations for the pod

Homepage: https://github.com/devopstales/kubedash

Source Code

Documentation of Helm Chart

Generate docs with helm-docs command.

cd deploy/helm
helm-docs

The markdown generation is entirely go template driven. The tool parses metadata from charts and generates a number of sub-templates that can be referenced in a template file (by default README.md.gotmpl). If no template file is provided, the tool has a default internal template that will generate a reasonably formatted README.

Deploy kubedash with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has kubedash on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartkubedash is pinned at v4.0.0 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below
opentenant validate opentenant.yaml
terraform init && terraform apply