Files
charts/bitnami/metrics-server
Jim Conner 3f368f5054 [bitnami/metrics-server] Implement dnsPolicy (#7936)
* implement dnsPolicy for metrics-server chart

Signed-off-by: Jim Conner <snafu.x@gmail.com>

* changes as requeted from PR. Fixed chart erroneous chart bump; fixed the correct property this time. Set default property for dnsPolicy in valyes.yaml and deployment

Signed-off-by: Jim Conner <snafu.x@gmail.com>

* Update bitnami/metrics-server/values.yaml

Co-authored-by: Pablo Galego <pablogalegocarro@gmail.com>

* [bitnami/aspnet-core] Release 1.3.21 updating components versions

Signed-off-by: Bitnami Containers <containers@bitnami.com>

* [bitnami/nats] Release 6.5.2 updating components versions

Signed-off-by: Bitnami Containers <containers@bitnami.com>

* [bitnami/wavefront-prometheus-storage-adapter] Release 1.0.11 updating components versions

Signed-off-by: Bitnami Containers <containers@bitnami.com>

* [bitnami/metrics-server] Release 5.10.7 updating components versions

Signed-off-by: Bitnami Containers <containers@bitnami.com>

* [bitnami/kiam] Release 0.3.18 updating components versions

Signed-off-by: Bitnami Containers <containers@bitnami.com>

* [bitnami/external-dns] Release 5.4.14 updating components versions

Signed-off-by: Bitnami Containers <containers@bitnami.com>

* [bitnami/mongodb-sharded] Release 3.9.13 updating components versions

Signed-off-by: Bitnami Containers <containers@bitnami.com>

* [bitnami/jenkins] Release 8.0.17 updating components versions

Signed-off-by: Bitnami Containers <containers@bitnami.com>

* [bitnami/mxnet] Release 2.3.20 updating components versions

Signed-off-by: Bitnami Containers <containers@bitnami.com>

* [bitnami/grafana-operator] Release 1.3.5 updating components versions

Signed-off-by: Bitnami Containers <containers@bitnami.com>

* [bitnami/wavefront-adapter-for-istio] Release 1.0.11 updating components versions

Signed-off-by: Bitnami Containers <containers@bitnami.com>

* [bitnami/haproxy] Release 0.2.15 updating components versions

Signed-off-by: Bitnami Containers <containers@bitnami.com>

* [bitnami/rabbitmq] Release 8.24.2 updating components versions

Signed-off-by: Bitnami Containers <containers@bitnami.com>

* [bitnami/geode] Release 0.3.3 updating components versions

Signed-off-by: Bitnami Containers <containers@bitnami.com>

* [bitnami/etcd] Release 6.9.4 updating components versions

Signed-off-by: Bitnami Containers <containers@bitnami.com>

* [bitnami/kube-state-metrics] Release 2.1.14 updating components versions

Signed-off-by: Bitnami Containers <containers@bitnami.com>

* [bitnami/spring-cloud-dataflow] Release 4.1.4 updating components versions

Signed-off-by: Bitnami Containers <containers@bitnami.com>

* [bitnami/mongodb] Release 10.28.5 updating components versions

Signed-off-by: Bitnami Containers <containers@bitnami.com>

* [bitnami/mysql] Release 8.8.12 updating components versions

Signed-off-by: Bitnami Containers <containers@bitnami.com>

* [bitnami/spark] Release 5.7.8 updating components versions

Signed-off-by: Bitnami Containers <containers@bitnami.com>

* [bitnami/zookeeper] Release 7.4.10 updating components versions

Signed-off-by: Bitnami Containers <containers@bitnami.com>

* [bitnami/mariadb-galera] Release 6.0.3 updating components versions

Signed-off-by: Bitnami Containers <containers@bitnami.com>

* [bitnami/odoo] Release 19.0.13 updating components versions

Signed-off-by: Bitnami Containers <containers@bitnami.com>

* [bitnami/fluentd] Release 4.3.2 updating components versions

Signed-off-by: Bitnami Containers <containers@bitnami.com>

* [bitnami/influxdb] Release 2.3.18 updating components versions

Signed-off-by: Bitnami Containers <containers@bitnami.com>

* [bitnami/kube-prometheus] Release 6.2.1 updating components versions

Signed-off-by: Bitnami Containers <containers@bitnami.com>

* [bitnami/minio] Release 9.0.5 updating components versions

Signed-off-by: Bitnami Containers <containers@bitnami.com>

* [bitnami/several] Regenerate README tables

Signed-off-by: Carlos Rodriguez Hernandez <carlosrh@vmware.com>

* [bitnami/keycloak] Release 5.1.4 updating components versions

Signed-off-by: Bitnami Containers <containers@bitnami.com>

* [bitnami/nginx-ingress-controller] Release 9.0.1 updating components versions

Signed-off-by: Bitnami Containers <containers@bitnami.com>

* [bitnami/grafana-tempo] Release 0.2.11 updating components versions

Signed-off-by: Bitnami Containers <containers@bitnami.com>

* [bitnami/metallb] Release 2.5.8 updating components versions

Signed-off-by: Bitnami Containers <containers@bitnami.com>

* feat: add optional startup probe to mariadb (#7938)

* [kubernetes-event-exporter] Support multiple replicas (#7917)

* [bitnami/postgresql] Add template render for labels on primary and readreplicas (#7908)

* [bitnami/postgresql] Add template render for labels on primary and readreplicas

* [bitnami/postgresql] Add template render for labels on primary and readreplicas

* [bitnami/postgresql] bump chart versiopn

* [bitnami/keycloack] Fix externalDatabase password (#7863)

* [bitnami/keycloack] Fix externalDatabase password

* Follow the standar approach

* Compactor servicemonitor template fix (#7943)

* [bitnami/argo-workflows] Release 0.1.7 updating components versions

Signed-off-by: Bitnami Containers <containers@bitnami.com>

* Fix issue #7931 when using serviceMonitor (#7942)

* [bitnami/kubernetes-event-exporter] Release 1.2.1 updating components versions

Signed-off-by: Bitnami Containers <containers@bitnami.com>

* [bitnami/*] Fix backticks in values.yaml that affects READMEs (#7946)

* [bitnami/*] Fix backticks in values.yaml that affects READMEs

Signed-off-by: Miguel A. Cabrera Minagorri <mcabrera@vmware.com>

* Re-generate readmes

Signed-off-by: Miguel A. Cabrera Minagorri <mcabrera@vmware.com>

* Update values.yaml

* [bitnami/*] Mark PodSecurityPolicy resources as deprecated (#7948)

* [bitnami/concourse] Deprecate PSP

* [bitnami/elasticsearch] Deprecate PSP

* [bitnami/external-dns] Deprecate PSP

* [bitnami/fluentd] Deprecate PSP

* [bitnami/kiam] Deprecate PSP

* [bitnami/common] Change common.capabilities.policy.apiVersion description

* Version bumps and minor fixes after sync with master

* [bitnami/fluentd] Drop PSP checksum annotation from DaemonSet

* [bitnami/common] Correct common.capabilities.policy.apiVersion description

* [bitnami/suitecrm] Release 9.3.28 updating components versions

Signed-off-by: Bitnami Containers <containers@bitnami.com>

* [bitnami/several] Regenerate README tables

Signed-off-by: Carlos Rodriguez Hernandez <carlosrh@vmware.com>

* [bitnami/cert-manager] Release 0.1.23 updating components versions

Signed-off-by: Bitnami Containers <containers@bitnami.com>

* [bitnami/redmine] Release 17.0.12 updating components versions

Signed-off-by: Bitnami Containers <containers@bitnami.com>

* [bitnami/owncloud] Release 10.2.30 updating components versions

Signed-off-by: Bitnami Containers <containers@bitnami.com>

* [bitnami/ghost] Release 15.0.8 updating components versions

Signed-off-by: Bitnami Containers <containers@bitnami.com>

* [bitnami/testlink] Release 9.2.27 updating components versions

Signed-off-by: Bitnami Containers <containers@bitnami.com>

* [bitnami/prestashop] Release 13.2.6 updating components versions

Signed-off-by: Bitnami Containers <containers@bitnami.com>

* [bitnami/magento] Release 19.0.9 updating components versions

Signed-off-by: Bitnami Containers <containers@bitnami.com>

* [bitnami/moodle] Release 11.1.5 updating components versions

Signed-off-by: Bitnami Containers <containers@bitnami.com>

* [bitnami/phpmyadmin] Release 8.2.18 updating components versions

Signed-off-by: Bitnami Containers <containers@bitnami.com>

* [bitnami/jasperreports] Release 11.0.9 updating components versions

Signed-off-by: Bitnami Containers <containers@bitnami.com>

* [bitnami/wordpress] Release 12.1.25 updating components versions

Signed-off-by: Bitnami Containers <containers@bitnami.com>

* [bitnami/osclass] Release 11.0.19 updating components versions

Signed-off-by: Bitnami Containers <containers@bitnami.com>

* [bitnami/phpbb] Release 10.1.27 updating components versions

Signed-off-by: Bitnami Containers <containers@bitnami.com>

* [bitnami/orangehrm] Release 10.1.26 updating components versions

Signed-off-by: Bitnami Containers <containers@bitnami.com>

* [bitnami/joomla] Release 10.1.27 updating components versions

Signed-off-by: Bitnami Containers <containers@bitnami.com>

* [bitnami/pytorch] Release 2.3.18 updating components versions

Signed-off-by: Bitnami Containers <containers@bitnami.com>

* [bitnami/opencart] Release 10.0.29 updating components versions

Signed-off-by: Bitnami Containers <containers@bitnami.com>

* [bitnami/drupal] Release 10.4.1 updating components versions

Signed-off-by: Bitnami Containers <containers@bitnami.com>

* [bitnami/kafka] Release 14.2.5 updating components versions

Signed-off-by: Bitnami Containers <containers@bitnami.com>

* [bitnami/mediawiki] Release 12.3.17 updating components versions

Signed-off-by: Bitnami Containers <containers@bitnami.com>

* [bitnami/several] Regenerate README tables

Signed-off-by: Carlos Rodriguez Hernandez <carlosrh@vmware.com>

* [bitnami/thanos] Replace nodePorts.grpc/http to http/grpc.nodePorts in the servce sharded (#7940)

* [bitnami/*] Mark PodSecurityPolicy resources as deprecated (#7951)

* [bitnami/postgresql-ha] Mark PSP as deprecated

* [bitnami/postgresql] Mark PSP as deprecated

* [bitnami/redis-cluster] Mark PSP as deprecated

* [bitnami/redis] Mark PSP as deprecated

* [bitnami/thanos] Mark PSP as deprecated

* [bitnami/wavefront] Mark PSP as deprecated

* [bitnami/thanos] Update README

* [bitnami/thanos] Fix linting issues

* [bitnami/*] Mark PodSecurityPolicy resources as deprecated (#7950)

* [bitnami/kube-prometheus] Mark PSP as deprecated

* [bitnami/kube-state-metrics] Mark PSP as deprecated

* [bitnami/metallb] Mark PSP as deprecated

* [bitnami/mongodb] Mark PSP as deprecated

* [bitnami/nginx-ingress-controller] Mark PSP as deprecated

* [bitnami/node-exporter] Mark PSP as deprecated

* [bitnami/metallb] Update README after sync with master

* [bitnami/minio] Release 9.0.6 updating components versions

Signed-off-by: Bitnami Containers <containers@bitnami.com>

* [bitnami/postgresql] add common labels (#7952)

* [bitnami/postgresql] add commonLabels

* [bitnami/postgresql] update chart minor version

* [bitnami/postgresql] bump version

Co-authored-by: Joseph Vano <jvano@ea.com>

* [bitnami/nginx] Release 9.5.12 updating components versions

Signed-off-by: Bitnami Containers <containers@bitnami.com>

* [bitnami/harbor] Release 11.0.8 updating components versions

Signed-off-by: Bitnami Containers <containers@bitnami.com>

* [bitnami/cert-manager] Release 0.1.24 updating components versions

Signed-off-by: Bitnami Containers <containers@bitnami.com>

* [bitnami/grafana-operator] Adds networking.k8s.io to Role binding (#7958)

* [bitnami/wavefront] Release 3.1.16 updating components versions

Signed-off-by: Bitnami Containers <containers@bitnami.com>

* [bitnami/mongodb] Release 10.28.7 updating components versions

Signed-off-by: Bitnami Containers <containers@bitnami.com>

* [bitnami/ejbca] Release 3.0.4 updating components versions

Signed-off-by: Bitnami Containers <containers@bitnami.com>

* [bitnami/parse] Release 15.0.13 updating components versions

Signed-off-by: Bitnami Containers <containers@bitnami.com>

* [bitnami/mongodb-sharded] Release 3.9.14 updating components versions

Signed-off-by: Bitnami Containers <containers@bitnami.com>

* [bitnami/jupyterhub] Release 0.2.5 updating components versions

Signed-off-by: Bitnami Containers <containers@bitnami.com>

* [bitnami/spring-cloud-dataflow] Release 4.1.5 updating components versions

Signed-off-by: Bitnami Containers <containers@bitnami.com>

* changes as requeted from PR. Fixed chart erroneous chart bump; fixed the correct property this time. Set default property for dnsPolicy in valyes.yaml and deployment

Signed-off-by: Jim Conner <snafu.x@gmail.com>

* bump chart version to 5.10.8

Signed-off-by: Jim Conner <snafu.x@gmail.com>

* edit to fix EOL issue during linting

Signed-off-by: Jim Conner <snafu.x@gmail.com>

* Fix remaining issues

Co-authored-by: Pablo Galego <pablogalegocarro@gmail.com>
Co-authored-by: Bitnami Containers <containers@bitnami.com>
Co-authored-by: Carlos Rodriguez Hernandez <carlosrh@vmware.com>
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
Co-authored-by: Marco Kilchhofer <mkilchhofer@users.noreply.github.com>
Co-authored-by: bbaudelet <43279826+bbaudelet@users.noreply.github.com>
Co-authored-by: Miguel Ángel Cabrera Miñagorri <mcabrera@vmware.com>
Co-authored-by: Vladimir Drozdetskiy <34331259+mrgreyves@users.noreply.github.com>
Co-authored-by: Rafael Ríos Saavedra <rafael.rios.saavedra@gmail.com>
Co-authored-by: Juan Ariza Toledano <juanariza@vmware.com>
Co-authored-by: Pablo Galego <pgalego@vmware.com>
Co-authored-by: alvneiayu <alvaron@vmware.com>
Co-authored-by: Joey Vano <joseph.vano@gmail.com>
Co-authored-by: Joseph Vano <jvano@ea.com>
Co-authored-by: Rubatharisan Thirumathyam <41048990+nc-ruth@users.noreply.github.com>
2021-11-08 14:09:52 +01:00
..

Metrics Server

Metrics Server is a cluster-wide aggregator of resource usage data. Metrics Server collects metrics from the Summary API, exposed by Kubelet on each node.

TL;DR

$ helm repo add bitnami https://charts.bitnami.com/bitnami
$ helm install my-release bitnami/metrics-server

Introduction

This chart bootstraps a Metrics Server deployment on a Kubernetes cluster using the Helm package manager.

Bitnami charts can be used with Kubeapps for deployment and management of Helm Charts in clusters. This Helm chart has been tested on top of Bitnami Kubernetes Production Runtime (BKPR). Deploy BKPR to get automated TLS certificates, logging and monitoring for your applications.

Prerequisites

  • Kubernetes 1.12+
  • Helm 3.1.0

Installing the Chart

To install the chart with the release name my-release:

$ helm repo add bitnami https://charts.bitnami.com/bitnami
$ helm install my-release bitnami/metrics-server

These commands deploy Metrics Server on the Kubernetes cluster in the default configuration. The Parameters section lists the parameters that can be configured during installation.

Tip

: List all releases using helm list

Uninstalling the Chart

To uninstall/delete the my-release deployment:

$ helm delete my-release

The command removes all the Kubernetes components associated with the chart and deletes the release.

Parameters

Global parameters

Name Description Value
global.imageRegistry Global Docker image registry ""
global.imagePullSecrets Global Docker registry secret names as an array []

Common parameters

Name Description Value
nameOverride String to partially override common.names.fullname template (will maintain the release name) ""
fullnameOverride String to fully override common.names.fullname template ""
commonLabels Add labels to all the deployed resources {}
commonAnnotations Add annotations to all the deployed resources {}

Metrics Server parameters

Name Description Value
image.registry Metrics Server image registry docker.io
image.repository Metrics Server image repository bitnami/metrics-server
image.tag Metrics Server image tag (immutable tags are recommended) 0.5.1-debian-10-r30
image.pullPolicy Metrics Server image pull policy IfNotPresent
image.pullSecrets Metrics Server image pull secrets []
hostAliases Add deployment host aliases []
replicas Number of metrics-server nodes to deploy 1
updateStrategy.type Set up update strategy for metrics-server installation. RollingUpdate
rbac.create Enable RBAC authentication true
serviceAccount.create Specifies whether a ServiceAccount should be created true
serviceAccount.name The name of the ServiceAccount to create ""
serviceAccount.automountServiceAccountToken Automount API credentials for a service account true
apiService.create Specifies whether the v1beta1.metrics.k8s.io API service should be created. You can check if it is needed with kubectl get --raw "/apis/metrics.k8s.io/v1beta1/nodes". false
apiService.insecureSkipTLSVerify Specifies whether to skip self-verifying self-signed TLS certificates. Set to "false" if you are providing your own certificates. true
apiService.caBundle A base64-encoded string of concatenated certificates for the CA chain for the APIService. ""
securePort Port where metrics-server will be running 8443
hostNetwork Enable hostNetwork mode false
dnsPolicy Default dnsPolicy setting ClusterFirst
command Override default container command (useful when using custom images) ["metrics-server"]
extraArgs Extra arguments to pass to metrics-server on start up {}
podLabels Pod labels {}
podAnnotations Pod annotations {}
priorityClassName Priority class for pod scheduling ""
podAffinityPreset Pod affinity preset. Ignored if affinity is set. Allowed values: soft or hard ""
podAntiAffinityPreset Pod anti-affinity preset. Ignored if affinity is set. Allowed values: soft or hard soft
podDisruptionBudget.enabled Create a PodDisruptionBudget false
podDisruptionBudget.minAvailable Minimum available instances ""
podDisruptionBudget.maxUnavailable Maximum unavailable instances ""
nodeAffinityPreset.type Node affinity preset type. Ignored if affinity is set. Allowed values: soft or hard ""
nodeAffinityPreset.key Node label key to match. Ignored if affinity is set. ""
nodeAffinityPreset.values Node label values to match. Ignored if affinity is set. []
affinity Affinity for pod assignment {}
topologySpreadConstraints Topology spread constraints for pod []
nodeSelector Node labels for pod assignment {}
tolerations Tolerations for pod assignment []
service.type Kubernetes Service type ClusterIP
service.port Kubernetes Service port 443
service.nodePort Kubernetes Service port ""
service.loadBalancerIP LoadBalancer IP if Service type is LoadBalancer ""
service.annotations Annotations for the Service {}
service.labels Labels for the Service {}
resources.limits The resources limits for the container {}
resources.requests The requested resources for the container {}
livenessProbe.enabled Enable livenessProbe true
livenessProbe.httpGet.path Request path for livenessProbe /livez
livenessProbe.httpGet.port Port for livenessProbe https
livenessProbe.httpGet.scheme Scheme for livenessProbe HTTPS
livenessProbe.periodSeconds Period seconds for livenessProbe 10
livenessProbe.failureThreshold Failure threshold for livenessProbe 3
readinessProbe.enabled Enable readinessProbe true
readinessProbe.httpGet.path Request path for readinessProbe /readyz
readinessProbe.httpGet.port Port for readinessProbe https
readinessProbe.httpGet.scheme Scheme for livenessProbe HTTPS
readinessProbe.periodSeconds Period seconds for readinessProbe 10
readinessProbe.failureThreshold Failure threshold for readinessProbe 3
customLivenessProbe Custom Liveness probes for metrics-server {}
customReadinessProbe Custom Readiness probes metrics-server {}
containerSecurityContext.enabled Enable Container security context true
containerSecurityContext.readOnlyRootFilesystem ReadOnlyRootFilesystem for the container false
containerSecurityContext.runAsNonRoot Run containers as non-root users true
podSecurityContext.enabled Pod security context false
extraVolumes Extra volumes []
extraVolumeMounts Mount extra volume(s) []
extraContainers Extra containers to run within the pod {}

Specify each parameter using the --set key=value[,key=value] argument to helm install. For example,

$ helm install my-release \
  --set rbac.create=true bitnami/metrics-server

The above command enables RBAC authentication.

Alternatively, a YAML file that specifies the values for the parameters can be provided while installing the chart. For example,

$ helm install my-release -f values.yaml bitnami/metrics-server

Tip

: You can use the default values.yaml

Configuration and installation details

Rolling vs Immutable tags

It is strongly recommended to use immutable tags in a production environment. This ensures your deployment does not change automatically if the same tag is updated with a different image.

Bitnami will release a new chart updating its containers if a new version of the main container, significant changes, or critical vulnerabilities exist.

Enable RBAC security

In order to enable Role-Based Access Control (RBAC) for Metrics Server, use the following parameter: rbac.create=true.

Configure certificates

If you are providing your own certificates for the API Service, set insecureSkipTLSVerify to "false", and provide a caBundle consisting of the base64-encoded certificate chain.

Set Pod affinity

This chart allows you to set custom Pod affinity using the affinity parameter. Find more information about Pod affinity in the Kubernetes documentation.

As an alternative, you can use one of the preset configurations for pod affinity, pod anti-affinity, and node affinity available at the bitnami/common chart. To do so, set the podAffinityPreset, podAntiAffinityPreset, or nodeAffinityPreset parameters.

Troubleshooting

Find more information about how to deal with common errors related to Bitnamis Helm charts in this troubleshooting guide.

Upgrading

To 5.2.0

This version introduces bitnami/common, a library chart as a dependency. More documentation about this new utility could be found here. Please, make sure that you have updated the chart dependencies before executing any upgrade.

To 5.0.0

On November 13, 2020, Helm v2 support formally ended. This major version is the result of the required changes applied to the Helm Chart to be able to incorporate the different features added in Helm v3 and to be consistent with the Helm project itself regarding the Helm v2 EOL.

Learn more about this change and related upgrade considerations.

To 4.0.0

Backwards compatibility is not guaranteed unless you modify the labels used on the chart's deployments. Use the workaround below to upgrade from versions previous to 4.0.0. The following example assumes that the release name is metrics-server:

$ kubectl delete deployment metrics-server --cascade=false
$ helm upgrade metrics-server bitnami/metrics-server

To 2.0.0

Backwards compatibility is not guaranteed unless you modify the labels used on the chart's deployments. Use the workaround below to upgrade from versions previous to 2.0.0. The following example assumes that the release name is metrics-server:

$ kubectl patch deployment metrics-server --type=json -p='[{"op": "remove", "path": "/spec/selector/matchLabels/chart"}]'