Skip to content

Commit

Permalink
add: kubedash-3.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
devopstales committed Mar 5, 2024
1 parent e26995c commit f73424b
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 17 deletions.
6 changes: 3 additions & 3 deletions charts/kubedash/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ apiVersion: v2
name: kubedash
description: "KubeDash is a general purpose, web-based UI for Kubernetes clusters."
type: application
version: 3.0.0
version: 3.0.1
appVersion: "2.0.0"
kubeVersion: ">=1.19.x-0"
keywords:
Expand All @@ -21,8 +21,8 @@ dependencies:
- name: postgresql-ha
version: ">=11.9.4"
repository: "https://charts.bitnami.com/bitnami"
condition: postgresql-ha.enabled
condition: postgresqlHa.enabled
- name: metrics-server
version: 3.8.4
repository: https://kubernetes-sigs.github.io/metrics-server/
condition: metrics-server.enabled
condition: metricsServer.enabled
10 changes: 5 additions & 5 deletions charts/kubedash/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

![Version: 3.0.0](https://img.shields.io/badge/Version-3.0.0-informational?style=for-the-badge)
![Type: application](https://img.shields.io/badge/Type-application-informational?style=for-the-badge)
![AppVersion: 3.0.0](https://img.shields.io/badge/AppVersion-3.0.0-informational?style=for-the-badge)
![AppVersion: 2.0.0](https://img.shields.io/badge/AppVersion-2.0.0-informational?style=for-the-badge)

![Alpine Linux 3.15.0](https://img.shields.io/badge/alpine_linux_3.15.0-0D597F?style=for-the-badge&logo=alpine-linux&logoColor=white)
![Helm](https://img.shields.io/badge/helm-0F1689?style=for-the-badge&logo=helm&logoColor=white)
Expand Down Expand Up @@ -30,13 +30,13 @@ The following tables lists configurable parameters of the KubeDash chart and the
| cluster.caCert | string | `"-----BEGIN CERTIFICATE-----\ncert data here\n-----END CERTIFICATE-----"` | k8s ca cert |
| cluster.name | string | `"k8s-cluster"` | k8s api url |
| containerSecurityContext | object | `{"allowPrivilegeEscalation":false,"capabilities":{"drop":["all"]}}` | list of the container's SecurityContexts |
| externalDatabase | object | `{"database":"kubedash","enabled":false,"host":"","password":"kubedash-pass","port":5432,"secret":{"name":"kubedash-postgresql","useExistingSecret":false},"user":"kubedash-user"}` | enable external postgresql support |
| externalDatabase | object | `{"database":"kubedash","enabled":false,"host":"","password":"kubedash-pass","port":5432,"secret":{"name":"kubedash-postgresql","useExistingSecret":false},"username":"kubedash-user"}` | enable external postgresql support |
| externalDatabase.secret.name | string | `"kubedash-postgresql"` | Name of the secret storing EXTERNAL_DATABASE_PASSWORD. |
| externalDatabase.secret.useExistingSecret | bool | `false` | Secret must provide the following variables: EXTERNAL_DATABASE_PASSWORD. |
| flaskConfig | string | `"production"` | flask environment: production or development |
| image.pullPolicy | string | `"Always"` | The docker image pull policy |
| image.repository | string | `"devopstales/kubedash"` | The docker image repository to use |
| image.tag | string | `"3.0.0"` | The docker image tag to use |
| image.tag | string | `"2.0.0"` | The docker image tag to use |
| imagePullSecrets | list | `[]` | pullsecrets |
| ingress.annotations | object | `{"nginx.ingress.kubernetes.io/proxy-body-size":"10m"}` | Extra annotation to the Ingress object |
| ingress.className | string | `"nginx"` | Ingress class name |
Expand All @@ -49,7 +49,7 @@ The following tables lists configurable parameters of the KubeDash chart and the
| ingress.whitelist.enabled | bool | `false` | Enable ip blocking on ingress |
| ingress.whitelist.ips | list | `[]` | List of ips to allow communication |
| logLevel | string | `"INFO"` | Log level |
| metrics-server | object | `{"args":["--kubelet-preferred-address-types=InternalIP","--kubelet-insecure-tls"],"enabled":true}` | enable metrics-server |
| metricsServer | object | `{"args":["--kubelet-preferred-address-types=InternalIP","--kubelet-insecure-tls"],"enabled":false}` | enable metrics-server |
| nodeSelector | object | `{}` | Set nodeSelector for the pod |
| oidc | object | `{"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.enabled | bool | `false` | Enable oidc authentication |
Expand All @@ -67,7 +67,7 @@ The following tables lists configurable parameters of the KubeDash chart and the
| plugins.helmDashboard.enabled | bool | `true` | Enable helm dashboard plugin with set PLUGIN_HELM_ENABLED |
| plugins.registryUi.enabled | bool | `false` | Enable registry UI plugin with set PLUGIN_REGISTRY_ENABLED |
| podSecurityContext | object | `{"fsGroup":10001,"fsGroupChangePolicy":"OnRootMismatch","runAsNonRoot":true,"runAsUser":10001}` | list of the pos's SecurityContexts |
| postgresql-ha | object | `{"enabled":false,"metrics":{"enabled":true,"serviceMonitor":{"enabled":false}},"persistence":{"enabled":true},"pgpool":{"adminPassword":"change-me","replicaCount":2},"postgresql":{"database":"kubedash","password":"kubedash-pass","postgresPassword":"change-me","repmgrPassword":"change-me","username":"kubedash-user"},"rbac":{"create":true}}` | deploy HA postgresql |
| postgresqlHa | object | `{"enabled":false,"metrics":{"enabled":true,"serviceMonitor":{"enabled":false}},"persistence":{"enabled":true},"pgpool":{"adminPassword":"change-me","replicaCount":2},"postgresql":{"database":"kubedash","password":"kubedash-pass","postgresPassword":"change-me","repmgrPassword":"change-me","username":"kubedash-user"},"rbac":{"create":true}}` | deploy HA postgresql |
| replicas | int | `1` | replica number - for multiple replicas you need to enable externalDatabase support |
| route.annotations | object | `{}` | Extra annotation to the OpenShift Route object |
| route.enabled | bool | `false` | Enable OpenShift Route object creation |
Expand Down
29 changes: 24 additions & 5 deletions charts/kubedash/templates/07_configmap.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

apiVersion: v1
kind: ConfigMap
metadata:
Expand All @@ -15,10 +14,17 @@ data:
EXTERNAL_DATABASE_HOST: {{ .Values.externalDatabase.host | quote }}
EXTERNAL_DATABASE_DB: {{ .Values.externalDatabase.database | quote }}
{{ end }}
{{ if .Values.postgresqlHa.enabled }}
EXTERNAL_DATABASE_ENABLED: {{ .Values.postgresqlHa.enabled | quote }}
EXTERNAL_DATABASE_HOST: "{{ .Release.Name }}-pgpool"
EXTERNAL_DATABASE_DB: {{ .Values.postgresqlHa.database | quote }}
{{ end }}
{{ if .Values.oidc.enabled }}
OIDC_ISSUER_URL: {{ .Values.oidc.provider.oidcUrl | quote}}
OIDC_SCOPE: {{ .Values.oidc.provider.oidcScopes | quote}}
OIDC_CALLBACK_URL: {{ .Values.oidc.provider.oidcSecret | quote}}
{{ if .Values.ingress.tls.enabled }}
OIDC_CALLBACK_URL: {{ .Values.ingress.url | quote}}
{{ end }}
{{ if not .Values.oidc.secret.useExistingSecret }}
---
apiVersion: v1
Expand All @@ -32,9 +38,8 @@ data:
OIDC_CLIENT_ID: {{ .Values.oidc.provider.oidcClientId | b64enc | quote }}
OIDC_SECRET: {{ .Values.oidc.provider.oidcSecret | b64enc | quote }}
{{ end }}
{{ if .Values.externalDatabase.enabled }}
{{ end }}
{{ end }}
{{ if .Values.externalDatabase.enabled }}
{{ if not .Values.externalDatabase.secret.useExistingSecret }}
---
apiVersion: v1
Expand All @@ -45,6 +50,20 @@ metadata:
app: kubedash
{{- include "kubedash.labels" . | nindent 4 }}
data:
EXTERNAL_DATABASE_USER: {{ .Values.externalDatabase.user | b64enc | quote }}
EXTERNAL_DATABASE_USER: {{ .Values.externalDatabase.username | b64enc | quote }}
EXTERNAL_DATABASE_PASSWORD: {{ .Values.externalDatabase.password | b64enc | quote }}
{{ end }}
{{ end }}
{{ if .Values.postgresqlHa.enabled }}
---
apiVersion: v1
kind: Secret
metadata:
name: {{ .Values.externalDatabase.secret.name }}
labels:
app: kubedash
{{- include "kubedash.labels" . | nindent 4 }}
data:
EXTERNAL_DATABASE_USER: {{ .Values.postgresqlHa.postgresql.username | b64enc | quote }}
EXTERNAL_DATABASE_PASSWORD: {{ .Values.postgresqlHa.postgresql.password | b64enc | quote }}
{{ end }}
8 changes: 4 additions & 4 deletions charts/kubedash/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ externalDatabase:
host: ""
port: 5432
database: "kubedash"
user: "kubedash-user"
username: "kubedash-user"
password: "kubedash-pass"
secret:
# -- Name of the secret storing EXTERNAL_DATABASE_PASSWORD.
Expand All @@ -40,7 +40,7 @@ externalDatabase:
useExistingSecret: false

# -- deploy HA postgresql
postgresql-ha:
postgresqlHa:
enabled: false
rbac:
create: true
Expand All @@ -63,8 +63,8 @@ postgresql-ha:
# https://artifacthub.io/packages/helm/bitnami/postgresql-ha

# -- enable metrics-server
metrics-server:
enabled: true
metricsServer:
enabled: false
args:
- --kubelet-preferred-address-types=InternalIP
- --kubelet-insecure-tls
Expand Down

0 comments on commit f73424b

Please sign in to comment.