mirror of
https://github.com/bitnami/charts.git
synced 2026-02-10 03:17:20 +08:00
63 lines
2.8 KiB
Plaintext
63 lines
2.8 KiB
Plaintext
CHART NAME: {{ .Chart.Name }}
|
|
CHART VERSION: {{ .Chart.Version }}
|
|
APP VERSION: {{ .Chart.AppVersion }}
|
|
|
|
⚠ WARNING: Since August 28th, 2025, only a limited subset of images/charts are available for free.
|
|
Subscribe to Bitnami Secure Images to receive continued support and security updates.
|
|
More info at https://bitnami.com and https://github.com/bitnami/containers/issues/83267
|
|
|
|
** Please be patient while the chart is being deployed **
|
|
|
|
The metric server has been deployed.
|
|
|
|
{{- if or .Values.apiService.create (include "common.capabilities.apiVersions.has" ( dict "version" "metrics.k8s.io/v1beta1" "context" . )) }}
|
|
{{- if .Values.diagnosticMode.enabled }}
|
|
The chart has been deployed in diagnostic mode. All probes have been disabled and the command has been overwritten with:
|
|
|
|
command: {{- include "common.tplvalues.render" (dict "value" .Values.diagnosticMode.command "context" $) | nindent 4 }}
|
|
args: {{- include "common.tplvalues.render" (dict "value" .Values.diagnosticMode.args "context" $) | nindent 4 }}
|
|
|
|
Get the list of pods by executing:
|
|
|
|
kubectl get pods --namespace {{ template "common.names.namespace" . }} -l app.kubernetes.io/instance={{ .Release.Name }}
|
|
|
|
Access the pod you want to debug by executing
|
|
|
|
kubectl exec --namespace {{ template "common.names.namespace" . }} -ti <NAME OF THE POD> -- bash
|
|
|
|
In order to replicate the container startup scripts execute this command:
|
|
|
|
metrics-server --secure-port={{ .Values.containerPorts.https }}
|
|
|
|
{{- else }}
|
|
In a few minutes you should be able to list metrics using the following
|
|
command:
|
|
|
|
kubectl get --raw "/apis/metrics.k8s.io/v1beta1/nodes"
|
|
{{- end -}}
|
|
{{- else }}
|
|
###################################################################################
|
|
### ERROR: The metrics.k8s.io/v1beta1 API service is not enabled in the cluster ###
|
|
###################################################################################
|
|
You have disabled the API service creation for this release. As the Kubernetes version in the cluster
|
|
does not have metrics.k8s.io/v1beta1, the metrics API will not work with this release unless:
|
|
|
|
Option A:
|
|
|
|
You complete your metrics-server release by running:
|
|
|
|
helm upgrade --namespace {{ include "common.names.namespace" . }} {{ .Release.Name }} oci://registry-1.docker.io/bitnamicharts/metrics-server \
|
|
--set apiService.create=true
|
|
|
|
Option B:
|
|
|
|
You configure the metrics API service outside of this Helm chart
|
|
{{- end -}}
|
|
|
|
{{- include "metrics-server.validateValues" . }}
|
|
{{- include "metrics-server.checkRollingTags" . }}
|
|
|
|
{{- include "common.warnings.resources" (dict "sections" (list "") "context" $) }}
|
|
{{- include "common.warnings.modifiedImages" (dict "images" (list .Values.image) "context" $) }}
|
|
{{- include "common.errors.insecureImages" (dict "images" (list .Values.image) "context" $) }}
|