0.0.2-0.1.0 • Published 5 years ago

@helm-charts/banzaicloud-stable-kube-metrics-adapter v0.0.2-0.1.0

Weekly downloads
1
License
MIT
Repository
-
Last release
5 years ago

@helm-charts/banzaicloud-stable-kube-metrics-adapter

A Helm chart for kube-metrics-adapter

FieldValue
Repository Namebanzaicloud-stable
Chart Namekube-metrics-adapter
Chart Version0.0.2
NPM Package Version0.1.0
image:
  repository: banzaicloud/kube-metrics-adapter
  tag: 0.1.1
  pullPolicy: IfNotPresent

logLevel: 9

# Url to access prometheus
prometheus:
  url: http://prometheus.default.svc

replicas: 1

rbac:
  # Specifies whether RBAC resources should be created
  create: true

serviceAccount:
  # Specifies whether a service account should be created
  create: true
  # The name of the service account to use.
  # If not set and create is true, a name is generated using the fullname template
  name:

resources:
  limits:
    cpu: 100m
    memory: 100Mi
  requests:
    cpu: 100m
    memory: 100Mi

service:
  annotations: {}
  port: 443
  internalPort: 8443

affinity: {}
tolerations: []

tls:
  enable: false
  ca: |-
    # Public CA file that signed the APIService
  key: |-
    # Private key of the APIService
  certificate: |-
    # Public key of the APIService

Kube Metrics Adapter

Installs the # Kube Metrics Adapter for the Custom Metrics API. Custom metrics are used in Kubernetes by Horizontal Pod Autoscalers to scale workloads based upon your own metric pulled from an external metrics provider like Prometheus. This chart complements the metrics-server chart that provides resource only metrics.

Prerequisites

Kubernetes 1.9+

Installing the Chart

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

$ helm install --name my-release stable/kube-metrics-adapter

This command deploys the kube-metrics-adapter with the default configuration. The configuration section lists the parameters that can be configured during installation.

Using the Chart

kube-metrics-adapter can be configure to use several different collectors. Currently this chart supports only configuration of Prometheus collector. Ensure the prometheus.url and prometheus.port are configured with the correct Prometheus service endpoint. To configure your Horizontal Pod Autoscaler to use the custom metric, see the custom metrics section of the HPA walkthrough.

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.

Configuration

The following table lists the configurable parameters of the Prometheus Adapter chart and their default values.

ParameterDescriptionDefault
affinityNode affinity{}
image.repositoryImage repositorybanzaicloud/kube-metrics-adapter
image.tagImage tag0.1.1
image.pullPolicyImage pull policyIfNotPresent
image.pullSecretsImage pull secrets{}
logLevelLog level4
nodeSelectorNode labels for pod assignment{}
prometheus.urlUrl of where we can find the Prometheus servicehttp://prometheus.default.svc
rbac.createIf true, create & use RBAC resourcestrue
resourcesCPU/Memory resource requests/limits{}
service.annotationsAnnotations to add to the service{}
service.portService port to expose443
service.internalPortService internal port6443
service.typeType of service to createClusterIP
serviceAccount.createIf true, create & use Serviceaccounttrue
serviceAccount.nameIf not set and create is true, a name is generated using the fullname template
tls.enableIf true, use the provided certificates. If false, generate self-signed certsfalse
tls.caPublic CA file that signed the APIService (ignored if tls.enable=false)
tls.keyPrivate key of the APIService (ignored if tls.enable=false)
tls.certificatePublic key of the APIService (ignored if tls.enable=false)
tolerationsList of node taints to tolerate[]

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

$ helm install --name my-release \
  --set logLevel=1 \
 stable/kube-metrics-adapter

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

$ helm install --name my-release -f values.yaml stable/kube-metrics-adapter