-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Update helm deployment (#7969)
* Update helm ingress configuration * Use ingress class annotation instead of spec * Update docs and remove outdated files * Update helm NOTES.txt * Update metrics scraper svc name * Update helm notes * Use ingress-nginx helm dep from K8S org * Update helm notes * Fix ingress config and log viewer log line wrap * Update README * Fix lint * Update README
- Loading branch information
Showing
18 changed files
with
131 additions
and
183 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
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 |
---|---|---|
@@ -1,12 +1,12 @@ | ||
dependencies: | ||
- name: nginx-ingress | ||
repository: https://helm.nginx.com/stable | ||
version: 0.17.1 | ||
- name: ingress-nginx | ||
repository: https://kubernetes.github.io/ingress-nginx | ||
version: 4.7.1 | ||
- name: cert-manager | ||
repository: https://charts.jetstack.io | ||
version: v1.11.2 | ||
- name: metrics-server | ||
repository: https://kubernetes-sigs.github.io/metrics-server/ | ||
version: 3.8.4 | ||
digest: sha256:269ca8270ef146707ec7f04c7c76468484a3c31262737406f6965b2ca399b27a | ||
generated: "2023-05-19T16:43:45.5691521+02:00" | ||
digest: sha256:805f6405d0cb3ceb4c6068e5235c4c18845bc30bafa900b69bc4c66bfeefc4fd | ||
generated: "2023-07-07T11:44:54.033948186+02:00" |
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
92 changes: 43 additions & 49 deletions
92
charts/helm-chart/kubernetes-dashboard/templates/NOTES.txt
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 |
---|---|---|
@@ -1,49 +1,43 @@ | ||
********************************************************************************* | ||
*** PLEASE BE PATIENT: kubernetes-dashboard may take a few minutes to install *** | ||
********************************************************************************* | ||
|
||
{{/* Describe how to access depending on config */}} | ||
{{/* 1. Local K8S i.e. Docker (selfsigned + localhost domain) - direct access */}} | ||
{{/* 2. Local K8S other than Docker (selfsigned + localhost domain) - via kubectl port-forward */}} | ||
{{/* 2. External K8S (selfsigned/custom + custom domain) - access directly via domain */}} | ||
|
||
{{/*{{- if .Values.nginx.enabled }}*/}} | ||
{{/* From outside the cluster, the server URL(s) are:*/}} | ||
{{/* https://{{ .Values.app.ingress.host }}*/}} | ||
{{/*{{- end }}*/}} | ||
|
||
{{/*{{- else if contains "NodePort" .Values.service.type }}*/}} | ||
|
||
{{/*Get the Kubernetes Dashboard URL by running:*/}} | ||
{{/* export NODE_PORT=$(kubectl get -n {{ .Release.Namespace }} -o jsonpath="{.spec.ports[0].nodePort}" services {{ template "kubernetes-dashboard.fullname" . }})*/}} | ||
{{/* export NODE_IP=$(kubectl get nodes -o jsonpath="{.items[0].status.addresses[0].address}")*/}} | ||
{{/*{{- if .Values.protocolHttp }}*/}} | ||
{{/* echo http://$NODE_IP:$NODE_PORT/*/}} | ||
{{/*{{- else }}*/}} | ||
{{/* echo https://$NODE_IP:$NODE_PORT/*/}} | ||
{{/*{{- end }}*/}} | ||
|
||
{{/*{{- else if contains "LoadBalancer" .Values.service.type }}*/}} | ||
|
||
{{/* NOTE: It may take a few minutes for the LoadBalancer IP to be available.*/}} | ||
{{/* Watch the status with: 'kubectl get svc -n {{ .Release.Namespace }} -w {{ template "kubernetes-dashboard.fullname" . }}'*/}} | ||
|
||
{{/*Get the Kubernetes Dashboard URL by running:*/}} | ||
{{/* export SERVICE_IP=$(kubectl get svc -n {{ .Release.Namespace }} {{ template "kubernetes-dashboard.fullname" . }} -o jsonpath='{.status.loadBalancer.ingress[0].ip}')*/}} | ||
{{/*{{- if .Values.protocolHttp }}*/}} | ||
{{/* echo http://$SERVICE_IP/*/}} | ||
{{/*{{- else }}*/}} | ||
{{/* echo https://$SERVICE_IP/*/}} | ||
{{/*{{- end }}*/}} | ||
{{/*{{- else if contains "ClusterIP" .Values.service.type }}*/}} | ||
|
||
{{/*Get the Kubernetes Dashboard URL by running:*/}} | ||
{{/* export POD_NAME=$(kubectl get pods -n {{ .Release.Namespace }} -l "app.kubernetes.io/name={{ template "kubernetes-dashboard.name" . }},app.kubernetes.io/instance={{ .Release.Name }}" -o jsonpath="{.items[0].metadata.name}")*/}} | ||
{{/*{{- if .Values.protocolHttp }}*/}} | ||
{{/* echo http://127.0.0.1:9090/*/}} | ||
{{/* kubectl -n {{ .Release.Namespace }} port-forward $POD_NAME 9090:9090*/}} | ||
{{/*{{- else }}*/}} | ||
{{/* echo https://127.0.0.1:8443/*/}} | ||
{{/* kubectl -n {{ .Release.Namespace }} port-forward $POD_NAME 8443:8443*/}} | ||
{{/*{{- end }}*/}} | ||
{{/*{{- end }}*/}} | ||
************************************************************************************************* | ||
*** PLEASE BE PATIENT: Kubernetes Dashboard may need a few minutes to get up and become ready *** | ||
************************************************************************************************* | ||
|
||
Congratulations! You have just installed Kubernetes Dashboard in your cluster. | ||
{{ if and (has "localhost" .Values.app.ingress.hosts) (eq .Values.app.ingress.ingressClassName "nginx") (.Values.nginx.enabled) }} | ||
To access Dashboard run: | ||
kubectl -n kubernetes-dashboard port-forward svc/kubernetes-dashboard-nginx-controller 8443:443 | ||
|
||
NOTE: In case port-forward command does not work, make sure that nginx service name is correct. | ||
Check the services in Kubernetes Dashboard namespace using: | ||
kubectl -n {{ .Release.Namespace }} get svc | ||
|
||
Dashboard will be available at: | ||
https://localhost:8443 | ||
{{- end }} | ||
|
||
{{- if and (has "localhost" .Values.app.ingress.hosts) (eq .Values.app.ingress.ingressClassName "nginx") (not .Values.nginx.enabled) }} | ||
It looks like you already have nginx installed in your cluster. First find the namespace where it is installed and then find its main service name. By default, it should be located in namespace called nginx or nginx-ingress and service name should be nginx-controller. | ||
|
||
To access Dashboard run (replace placeholders with actual names): | ||
kubectl -n <nginx-namespace> port-forward svc/<nginx-service> 8443:443 | ||
|
||
Dashboard will be available at: | ||
https://localhost:8443 | ||
{{- end }} | ||
|
||
{{- if or (not (has "localhost" .Values.app.ingress.hosts)) (gt (len .Values.app.ingress.hosts) 1) }} | ||
|
||
Looks like you are deploying Kubernetes Dashboard on a custom domain(s). | ||
Please make sure that the ingress configuration is valid. | ||
Dashboard should be accessible on your configured domain(s) soon: | ||
{{- range .Values.app.ingress.hosts }} | ||
{{- if not (eq . "localhost") }} | ||
- https://{{ . }} | ||
{{- end }} | ||
{{- end }} | ||
{{- end }} | ||
|
||
NOTE: It may take a few minutes for the Ingress IP/Domain to be available. | ||
It does not apply to local dev Kubernetes installations such as kind, etc. | ||
You can watch the status using: | ||
kubectl -n {{ .Release.Namespace }} get ing {{ template "kubernetes-dashboard.fullname" . }} -w |
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
14 changes: 0 additions & 14 deletions
14
charts/helm-chart/kubernetes-dashboard/templates/networking/post-install-ingress-issuer.yaml
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
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
Oops, something went wrong.