Skip to content

Commit

Permalink
feat: add kubernetes dashboard
Browse files Browse the repository at this point in the history
Signed-off-by: Gabor Boros <[email protected]>
  • Loading branch information
gabor-boros committed Feb 23, 2024
1 parent 2a0f6b2 commit e670de8
Show file tree
Hide file tree
Showing 7 changed files with 57 additions and 4 deletions.
9 changes: 9 additions & 0 deletions charts/harmony-chart/Chart.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ dependencies:
- name: cert-manager
repository: https://charts.jetstack.io
version: v1.11.0
version: v1.13.3
- name: elasticsearch
repository: https://helm.elastic.co
version: 7.17.3
- name: metrics-server
repository: https://kubernetes-sigs.github.io/metrics-server/
version: 3.8.4
Expand All @@ -25,3 +29,8 @@ dependencies:
version: 56.6.2
digest: sha256:8d3ab6c27a75b2ab6106164e38ecfaeaecfb329abc3526c25565f4d6fa6d4ed5
generated: "2024-02-05T14:59:50.438116+04:00"
- name: kubernetes-dashboard
repository: https://kubernetes.github.io/dashboard
version: 7.0.0-alpha1
digest: sha256:bedac332402276e1f3bea3df41874f0b666e8e577e60dc5af9eac9feae3e2314
generated: "2023-12-26T13:58:52.595736+04:00"
8 changes: 7 additions & 1 deletion charts/harmony-chart/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ dependencies:
condition: ingress-nginx.enabled

- name: cert-manager
version: "1.11.0"
version: "1.13.3"
repository: https://charts.jetstack.io
condition: cert-manager.enabled

Expand Down Expand Up @@ -58,3 +58,9 @@ dependencies:
version: "56.6.2"
condition: prometheusstack.enabled
repository: https://prometheus-community.github.io/helm-charts

- name: kubernetes-dashboard
version: "7.0.0-alpha1"
repository: https://kubernetes.github.io/dashboard
alias: k8sdashboard
condition: k8sdashboard.enabled
11 changes: 11 additions & 0 deletions charts/harmony-chart/templates/NOTES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,17 @@ a JSON response.
Grafana shipped with the default admin user password as a bug prevents
changing it. Since is enabled on the cluster and exposed to the internet.
Please make sure you update the default admin user password!
{{- if .Values.k8sdashboard.enabled }}
You have enabled the Kubernetes dashboard. For security purposes, it is not
exposed to the internet as is, however, by adjusting the settings, you could
expose it.

To connect to the dashboard, start port-forwarding with the following command:

kubectl -n harmony port-forward svc/harmony-nginx-controller 8443:443

Now you can connect to https://localhost:8443. The certificate is self-signed by
the cluster.
{{- end }}


Expand Down
4 changes: 2 additions & 2 deletions charts/harmony-chart/templates/issuer.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@
apiVersion: cert-manager.io/v1
kind: ClusterIssuer
metadata:
name: {{ .Release.Name }}-letsencrypt-global
name: harmony-letsencrypt-global
spec:
acme:
{{- if index .Values "cert-manager" "email" }}
email: {{ index .Values "cert-manager" "email" }}
{{- end }}
preferredChain: ""
privateKeySecretRef:
name: {{ .Release.Name }}-letsencrypt-global
name: harmony-letsencrypt-global
server: https://acme-v02.api.letsencrypt.org/directory
solvers:
- http01:
Expand Down
22 changes: 22 additions & 0 deletions charts/harmony-chart/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,23 @@ elasticsearch:
xpack.security.transport.ssl.certificate_authorities: /usr/share/elasticsearch/config/certs/ca.crt
xpack.security.transport.ssl.verification_mode: certificate
# Configuration for the metrics server chart
metricsserver:
# Control the chart inclusion
enabled: false
# See https://github.com/kubernetes-sigs/metrics-server/blob/master/charts/metrics-server/values.yaml
# for all available options
replicas: 1

# Configuration for the Vertical Pod Autoscaler chart
vpa:
# Control the chart inclusion
enabled: false
# See https://github.com/cowboysysop/charts/blob/master/charts/vertical-pod-autoscaler/values.yaml
# for all available options
admissionController:
replicaCount: 1

# Multi-tenant OpenSearch
opensearch:
enabled: false
Expand Down Expand Up @@ -185,6 +202,7 @@ opensearch:
".opendistro-asynchronous-search-response*",
]
# Configuration for the Karpenter chart
karpenter:
# add Karpenter node management for AWS EKS clusters. See: https://karpenter.sh/
enabled: false
Expand Down Expand Up @@ -311,3 +329,7 @@ prometheusstack:
requests:
cpu: 200m
memory: 256Mi

# Configuration for the K8s Dashboard chart
k8sdashboard:
enabled: false
3 changes: 3 additions & 0 deletions values-example.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,6 @@ prometheusstack:

# alertmanager:
# config: {} # Set it using `--set-file prometheusstack.alertmanager.config=<path-to-file>`

k8sdashboard:
enabled: false
4 changes: 3 additions & 1 deletion values-minikube.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,7 @@ opensearch:
persistence:
size: 8Gi

prometheusstack:
prometheusstack: {}

k8sdashboard:
enabled: false

0 comments on commit e670de8

Please sign in to comment.