diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 4a8f4691d91d..c47119021b30 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -28,4 +28,5 @@ /charts/prometheus-redis-exporter/ @acondrat @zanhsieh /charts/prometheus-snmp-exporter/ @miouge1 /charts/prometheus-stackdriver-exporter/ @apenney @rpahli +/charts/prometheus-statsd-exporter/ @scDisorder /charts/prometheus-to-sd/ @acondrat diff --git a/charts/prometheus-statsd-exporter/.helmignore b/charts/prometheus-statsd-exporter/.helmignore new file mode 100644 index 000000000000..0e8a0eb36f4c --- /dev/null +++ b/charts/prometheus-statsd-exporter/.helmignore @@ -0,0 +1,23 @@ +# Patterns to ignore when building packages. +# This supports shell glob matching, relative path matching, and +# negation (prefixed with !). Only one pattern per line. +.DS_Store +# Common VCS dirs +.git/ +.gitignore +.bzr/ +.bzrignore +.hg/ +.hgignore +.svn/ +# Common backup files +*.swp +*.bak +*.tmp +*.orig +*~ +# Various IDEs +.project +.idea/ +*.tmproj +.vscode/ diff --git a/charts/prometheus-statsd-exporter/Chart.yaml b/charts/prometheus-statsd-exporter/Chart.yaml new file mode 100644 index 000000000000..19e1013abf9b --- /dev/null +++ b/charts/prometheus-statsd-exporter/Chart.yaml @@ -0,0 +1,19 @@ +apiVersion: v2 +name: prometheus-statsd-exporter +description: A Helm chart for prometheus stats-exporter +version: 0.1.0 +appVersion: 0.18.0 +home: https://github.com/prometheus/statsd_exporter +sources: + - https://github.com/prometheus-community/helm-charts/blob/main/charts/prometheus-statsd-exporter +annotations: + "artifacthub.io/links": | + - name: Chart Source + url: https://github.com/prometheus-community/helm-charts/blob/main/charts/prometheus-statsd-exporter +keywords: + - statsd + - prometheus + - exporter +maintainers: + - email: d@rovergulf.net + name: scDisorder diff --git a/charts/prometheus-statsd-exporter/README.md b/charts/prometheus-statsd-exporter/README.md new file mode 100644 index 000000000000..b70455efaaa1 --- /dev/null +++ b/charts/prometheus-statsd-exporter/README.md @@ -0,0 +1,59 @@ +# prometheus-statsd-exporter + +Prometheus Exporter for [Statsd](https://github.com/statsd/statsd) metrics. + +This chart bootstraps a [Statsd Exporter](https://github.com/prometheus/statsd_exporter) deployment on a [Kubernetes](http://kubernetes.io) cluster using the [Helm](https://helm.sh) package manager. + +## Prerequisites + +- Kubernetes 1.16+ with Beta APIs enabled +- Helm 3+ + +## Get Repo Info + +```console +helm repo add prometheus-community https://prometheus-community.github.io/helm-charts +helm repo update +``` + +_See [helm repo](https://helm.sh/docs/helm/helm_repo/) for command documentation._ + +## Install Chart + +```console +helm install [RELEASE_NAME] prometheus-community/prometheus-statsd-exporter +``` + +_See [configuration](#configuration) below._ + +_See [helm install](https://helm.sh/docs/helm/helm_install/) for command documentation._ + +## Uninstall Chart + +```console +helm uninstall [RELEASE_NAME] +``` + +This removes all the Kubernetes components associated with the chart and deletes the release. + +_See [helm uninstall](https://helm.sh/docs/helm/helm_uninstall/) for command documentation._ + +## Upgrading Chart + +```console +helm upgrade [RELEASE_NAME] [CHART] --install +``` + +_See [helm upgrade](https://helm.sh/docs/helm/helm_upgrade/) for command documentation._ + +## Configuring + +See [Customizing the Chart Before Installing](https://helm.sh/docs/intro/using_helm/#customizing-the-chart-before-installing). To see all configurable options with detailed comments, visit the chart's [values.yaml](./values.yaml), or run these configuration commands: + +```console +helm show values prometheus-community/prometheus-statsd-exporter +``` + +### Statsd Exporter Server + +- Use early created ConfigMap with file `statsd.mappingConf` contained in data or specify mapping values in `statsd.mappingConfig` diff --git a/charts/prometheus-statsd-exporter/templates/NOTES.txt b/charts/prometheus-statsd-exporter/templates/NOTES.txt new file mode 100644 index 000000000000..5b388a7c3886 --- /dev/null +++ b/charts/prometheus-statsd-exporter/templates/NOTES.txt @@ -0,0 +1,22 @@ +1. Get the application URL by running these commands: +{{- if .Values.ingress.enabled }} +{{- range $host := .Values.ingress.hosts }} + {{- range .paths }} + http{{ if $.Values.ingress.tls }}s{{ end }}://{{ $host.host }}{{ . }} + {{- end }} +{{- end }} +{{- else if contains "NodePort" .Values.service.type }} + export NODE_PORT=$(kubectl get --namespace {{ .Release.Namespace }} -o jsonpath="{.spec.ports[0].nodePort}" services {{ include "prometheus-statsd-exporter.fullname" . }}) + export NODE_IP=$(kubectl get nodes --namespace {{ .Release.Namespace }} -o jsonpath="{.items[0].status.addresses[0].address}") + echo http://$NODE_IP:$NODE_PORT +{{- else if contains "LoadBalancer" .Values.service.type }} + NOTE: It may take a few minutes for the LoadBalancer IP to be available. + You can watch the status of by running 'kubectl get --namespace {{ .Release.Namespace }} svc -w {{ include "prometheus-statsd-exporter.fullname" . }}' + export SERVICE_IP=$(kubectl get svc --namespace {{ .Release.Namespace }} {{ include "prometheus-statsd-exporter.fullname" . }} --template "{{"{{ range (index .status.loadBalancer.ingress 0) }}{{.}}{{ end }}"}}") + echo http://$SERVICE_IP:{{ .Values.service.port }} +{{- else if contains "ClusterIP" .Values.service.type }} + export POD_NAME=$(kubectl get pods --namespace {{ .Release.Namespace }} -l "app.kubernetes.io/name={{ include "prometheus-statsd-exporter.name" . }},app.kubernetes.io/instance={{ .Release.Name }}" -o jsonpath="{.items[0].metadata.name}") + export CONTAINER_PORT=$(kubectl get pod --namespace {{ .Release.Namespace }} $POD_NAME -o jsonpath="{.spec.containers[0].ports[0].containerPort}") + echo "Visit http://127.0.0.1:8080 to use your application" + kubectl --namespace {{ .Release.Namespace }} port-forward $POD_NAME 8080:$CONTAINER_PORT +{{- end }} diff --git a/charts/prometheus-statsd-exporter/templates/_helpers.tpl b/charts/prometheus-statsd-exporter/templates/_helpers.tpl new file mode 100644 index 000000000000..1346969f2156 --- /dev/null +++ b/charts/prometheus-statsd-exporter/templates/_helpers.tpl @@ -0,0 +1,73 @@ +{{/* +Expand the name of the chart. +*/}} +{{- define "prometheus-statsd-exporter.name" -}} +{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" }} +{{- end }} + +{{/* +Create a default fully qualified app name. +We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec). +If release name contains chart name it will be used as a full name. +*/}} +{{- define "prometheus-statsd-exporter.fullname" -}} +{{- if .Values.fullnameOverride }} +{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" }} +{{- else }} +{{- $name := default .Chart.Name .Values.nameOverride }} +{{- if contains $name .Release.Name }} +{{- .Release.Name | trunc 63 | trimSuffix "-" }} +{{- else }} +{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" }} +{{- end }} +{{- end }} +{{- end }} + +{{/* +Create chart name and version as used by the chart label. +*/}} +{{- define "prometheus-statsd-exporter.chart" -}} +{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }} +{{- end }} + +{{/* +Common labels +*/}} +{{- define "prometheus-statsd-exporter.labels" -}} +helm.sh/chart: {{ include "prometheus-statsd-exporter.chart" . }} +{{ include "prometheus-statsd-exporter.selectorLabels" . }} +{{- if .Chart.AppVersion }} +app.kubernetes.io/version: {{ .Chart.AppVersion | quote }} +{{- end }} +app.kubernetes.io/managed-by: {{ .Release.Service }} +{{- end }} + +{{/* +Selector labels +*/}} +{{- define "prometheus-statsd-exporter.selectorLabels" -}} +app.kubernetes.io/name: {{ include "prometheus-statsd-exporter.name" . }} +app.kubernetes.io/instance: {{ .Release.Name }} +{{- end }} + +{{/* +Create the name of the service account to use +*/}} +{{- define "prometheus-statsd-exporter.serviceAccountName" -}} +{{- if .Values.serviceAccount.create }} +{{- default (include "prometheus-statsd-exporter.fullname" .) .Values.serviceAccount.name }} +{{- else }} +{{- default "default" .Values.serviceAccount.name }} +{{- end }} +{{- end }} + +{{/* +Check if there is any mappings available +*/}} +{{- define "prometheus-statsd-exporter.configMapName"}} +{{- if .Values.statsd.mappingConfigMapName }} +{{ default .Values.statsd.mappingConfigMapName }} +{{- else }} +{{ template "prometheus-statsd-exporter.fullname" . }} +{{- end }} +{{- end }} diff --git a/charts/prometheus-statsd-exporter/templates/configmap.yaml b/charts/prometheus-statsd-exporter/templates/configmap.yaml new file mode 100644 index 000000000000..c5109fb9ecc4 --- /dev/null +++ b/charts/prometheus-statsd-exporter/templates/configmap.yaml @@ -0,0 +1,13 @@ +{{- if or .Values.statsd.mappingConfig }} +apiVersion: v1 +kind: ConfigMap +metadata: + name: {{ include "prometheus-statsd-exporter.fullname" . }} + labels: + {{- include "prometheus-statsd-exporter.labels" . | nindent 4 }} +data: + {{- with .Values.statsd.mappingConfig }} + statsd.mappingConf: |- + {{ . | nindent 4 }} + {{- end }} +{{- end }} diff --git a/charts/prometheus-statsd-exporter/templates/deployment.yaml b/charts/prometheus-statsd-exporter/templates/deployment.yaml new file mode 100644 index 000000000000..07b30647a55b --- /dev/null +++ b/charts/prometheus-statsd-exporter/templates/deployment.yaml @@ -0,0 +1,106 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: {{ include "prometheus-statsd-exporter.fullname" . }} + labels: + {{- include "prometheus-statsd-exporter.labels" . | nindent 4 }} +spec: + {{- if not .Values.autoscaling.enabled }} + replicas: {{ .Values.replicaCount }} + revisionHistoryLimit: {{ .Values.deploymentRevisionHistoryLimit | default 10 }} + {{- end }} + selector: + matchLabels: + {{- include "prometheus-statsd-exporter.selectorLabels" . | nindent 6 }} + template: + metadata: + {{- with .Values.podAnnotations }} + annotations: + {{- toYaml . | nindent 8 }} + {{- end }} + labels: + {{- include "prometheus-statsd-exporter.selectorLabels" . | nindent 8 }} + spec: + {{- with .Values.imagePullSecrets }} + imagePullSecrets: + {{- toYaml . | nindent 8 }} + {{- end }} + serviceAccountName: {{ include "prometheus-statsd-exporter.serviceAccountName" . }} + securityContext: + {{- toYaml .Values.podSecurityContext | nindent 8 }} + containers: + - name: {{ .Chart.Name }} + securityContext: + {{- toYaml .Values.securityContext | nindent 12 }} + image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}" + imagePullPolicy: {{ .Values.image.pullPolicy }} + args: + - --web.listen-address=:{{ .Values.service.port }} + - --web.telemetry-path={{ .Values.service.path }} + {{- if .Values.statsd.udpPort }} + - --statsd.listen-udp=:{{ .Values.statsd.udpPort }} + {{- else }} + - --statsd.listen-udp= + {{- end }} + {{- if .Values.statsd.tcpPort }} + - --statsd.listen-tcp=:{{ .Values.statsd.tcpPort }} + {{- else }} + - --statsd.listen-tcp= + {{- end }} + - --statsd.cache-size={{ .Values.statsd.cacheSize }} + - --statsd.event-queue-size={{ .Values.statsd.eventQueueSize }} + - --statsd.event-flush-threshold={{ .Values.statsd.eventFlushThreshold }} + - --statsd.event-flush-interval={{ .Values.statsd.eventFlushInterval }} + {{- if .Values.statsd.mappingConfig }} + - --statsd.mapping-config=/etc/prometheus-statsd-exporter/statsd-mapping.conf + {{- end }} + ports: + - name: http + containerPort: {{ .Values.service.port }} + protocol: TCP + {{- if .Values.statsd.tcpPort }} + - name: statsd-tcp + containerPort: {{ .Values.statsd.tcpPort }} + protocol: TCP + {{- end }} + {{- if .Values.statsd.udpPort }} + - name: statsd-udp + containerPort: {{ .Values.statsd.udpPort }} + protocol: UDP + {{- end }} + livenessProbe: + httpGet: + path: /metrics + port: http + readinessProbe: + httpGet: + path: /metrics + port: http + resources: + {{- toYaml .Values.resources | nindent 12 }} + {{- if or .Values.statsd.mappingConfigMapName .Values.statsd.mappingConfig }} + volumeMounts: + - name: statsd-mapping-config + mountPath: /etc/prometheus-statsd-exporter + {{- end }} + {{- if or .Values.statsd.mappingConfigMapName .Values.statsd.mappingConfig }} + volumes: + - name: statsd-mapping-config + configMap: + name: {{ template "prometheus-statsd-exporter.configMapName" . }} + items: + - key: statsd.mappingConf + path: statsd-mapping.conf + {{- end }} + {{- with .Values.nodeSelector }} + nodeSelector: + {{- toYaml . | nindent 8 }} + {{- end }} + {{- with .Values.affinity }} + affinity: + {{- toYaml . | nindent 8 }} + {{- end }} + {{- with .Values.tolerations }} + tolerations: + {{- toYaml . | nindent 8 }} + {{- end }} diff --git a/charts/prometheus-statsd-exporter/templates/hpa.yaml b/charts/prometheus-statsd-exporter/templates/hpa.yaml new file mode 100644 index 000000000000..ae5d0f1d7516 --- /dev/null +++ b/charts/prometheus-statsd-exporter/templates/hpa.yaml @@ -0,0 +1,28 @@ +{{- if .Values.autoscaling.enabled }} +apiVersion: autoscaling/v2beta1 +kind: HorizontalPodAutoscaler +metadata: + name: {{ include "prometheus-statsd-exporter.fullname" . }} + labels: + {{- include "prometheus-statsd-exporter.labels" . | nindent 4 }} +spec: + scaleTargetRef: + apiVersion: apps/v1 + kind: Deployment + name: {{ include "prometheus-statsd-exporter.fullname" . }} + minReplicas: {{ .Values.autoscaling.minReplicas }} + maxReplicas: {{ .Values.autoscaling.maxReplicas }} + metrics: + {{- if .Values.autoscaling.targetCPUUtilizationPercentage }} + - type: Resource + resource: + name: cpu + targetAverageUtilization: {{ .Values.autoscaling.targetCPUUtilizationPercentage }} + {{- end }} + {{- if .Values.autoscaling.targetMemoryUtilizationPercentage }} + - type: Resource + resource: + name: memory + targetAverageUtilization: {{ .Values.autoscaling.targetMemoryUtilizationPercentage }} + {{- end }} +{{- end }} diff --git a/charts/prometheus-statsd-exporter/templates/ingress.yaml b/charts/prometheus-statsd-exporter/templates/ingress.yaml new file mode 100644 index 000000000000..120f5c9dc979 --- /dev/null +++ b/charts/prometheus-statsd-exporter/templates/ingress.yaml @@ -0,0 +1,52 @@ +{{- if .Values.ingress.enabled -}} +{{- $fullName := include "prometheus-statsd-exporter.fullname" . -}} +{{- $svcPort := .Values.service.port -}} +{{- $kubeTargetVersion := default .Capabilities.KubeVersion.GitVersion .Values.kubeTargetVersionOverride }} +{{- if semverCompare ">=1.19.0-0" $kubeTargetVersion }} +apiVersion: networking.k8s.io/v1 +{{- else }} +apiVersion: networking.k8s.io/v1beta1 +{{- end }} +kind: Ingress +metadata: + name: {{ $fullName }} + labels: + {{- include "prometheus-statsd-exporter.labels" . | nindent 4 }} + {{- with .Values.ingress.annotations }} + annotations: + {{- toYaml . | nindent 4 }} + {{- end }} +spec: + {{- if .Values.ingress.tls }} + tls: + {{- range .Values.ingress.tls }} + - hosts: + {{- range .hosts }} + - {{ . | quote }} + {{- end }} + secretName: {{ .secretName }} + {{- end }} + {{- end }} + rules: + {{- range .Values.ingress.hosts }} + - host: {{ .host | quote }} + http: + paths: + {{- range .paths }} + - path: {{ . }} + {{- if semverCompare ">=1.19.0-0" $kubeTargetVersion }} + pathType: {{ .Values.ingress.pathType | default "ImplementationSpecific" }} + {{- end }} + backend: + {{- if semverCompare ">=1.19.0-0" $kubeTargetVersion }} + service: + name: {{ $fullName }} + port: + number: {{ $svcPort }} + {{- else }} + serviceName: {{ $fullName }} + servicePort: {{ $svcPort }} + {{- end }} + {{- end }} + {{- end }} +{{- end }} diff --git a/charts/prometheus-statsd-exporter/templates/service.yaml b/charts/prometheus-statsd-exporter/templates/service.yaml new file mode 100644 index 000000000000..b5a65d07764d --- /dev/null +++ b/charts/prometheus-statsd-exporter/templates/service.yaml @@ -0,0 +1,31 @@ +apiVersion: v1 +kind: Service +metadata: + name: {{ include "prometheus-statsd-exporter.fullname" . }} + labels: + {{- include "prometheus-statsd-exporter.labels" . | nindent 4 }} + {{- with .Values.service.annotations }} + annotations: + {{- toYaml . | nindent 4 }} + {{- end }} +spec: + type: {{ .Values.service.type }} + ports: + - port: {{ .Values.service.port }} + targetPort: http + protocol: TCP + name: http + {{- if .Values.statsd.tcpPort }} + - port: {{ .Values.statsd.tcpPort }} + targetPort: statsd-tcp + protocol: TCP + name: statsd-tcp + {{- end }} + {{- if .Values.statsd.udpPort }} + - port: {{ .Values.statsd.udpPort }} + targetPort: statsd-udp + protocol: UDP + name: statsd-udp + {{- end }} + selector: + {{- include "prometheus-statsd-exporter.selectorLabels" . | nindent 4 }} diff --git a/charts/prometheus-statsd-exporter/templates/serviceaccount.yaml b/charts/prometheus-statsd-exporter/templates/serviceaccount.yaml new file mode 100644 index 000000000000..312850315040 --- /dev/null +++ b/charts/prometheus-statsd-exporter/templates/serviceaccount.yaml @@ -0,0 +1,12 @@ +{{- if .Values.serviceAccount.create -}} +apiVersion: v1 +kind: ServiceAccount +metadata: + name: {{ include "prometheus-statsd-exporter.serviceAccountName" . }} + labels: + {{- include "prometheus-statsd-exporter.labels" . | nindent 4 }} + {{- with .Values.serviceAccount.annotations }} + annotations: + {{- toYaml . | nindent 4 }} + {{- end }} +{{- end }} diff --git a/charts/prometheus-statsd-exporter/templates/servicemonitor.yaml b/charts/prometheus-statsd-exporter/templates/servicemonitor.yaml new file mode 100644 index 000000000000..e95cc3470c12 --- /dev/null +++ b/charts/prometheus-statsd-exporter/templates/servicemonitor.yaml @@ -0,0 +1,30 @@ +{{- if .Values.serviceMonitor.enabled }} +apiVersion: monitoring.coreos.com/v1 +kind: ServiceMonitor +metadata: + name: {{ template "prometheus-statsd-exporter.fullname" . }}-metrics + {{- if .Values.serviceMonitor.namespace }} + namespace: {{ .Values.serviceMonitor.namespace }} + {{- end }} + labels: {{- include "prometheus-statsd-exporter.labels" . | nindent 4 }} + app.kubernetes.io/component: metrics + {{- range $key, $value := .Values.serviceMonitor.additionalLabels }} + {{ $key }}: {{ $value | quote }} + {{- end }} +spec: + selector: + matchLabels: + app.kubernetes.io/component: metrics + endpoints: + - port: metrics + path: "/metrics" + {{- if .Values.serviceMonitor.interval }} + interval: {{ .Values.serviceMonitor.interval }} + {{- end }} + {{- if .Values.serviceMonitor.scrapeTimeout }} + scrapeTimeout: {{ .Values.serviceMonitor.scrapeTimeout }} + {{- end }} + namespaceSelector: + matchNames: + - {{ .Release.Namespace }} +{{- end }} diff --git a/charts/prometheus-statsd-exporter/templates/tests/test-connection.yaml b/charts/prometheus-statsd-exporter/templates/tests/test-connection.yaml new file mode 100644 index 000000000000..0c1efb8a37ec --- /dev/null +++ b/charts/prometheus-statsd-exporter/templates/tests/test-connection.yaml @@ -0,0 +1,15 @@ +apiVersion: v1 +kind: Pod +metadata: + name: "{{ include "prometheus-statsd-exporter.fullname" . }}-test-connection" + labels: + {{- include "prometheus-statsd-exporter.labels" . | nindent 4 }} + annotations: + "helm.sh/hook": test +spec: + containers: + - name: wget + image: busybox + command: ['wget'] + args: ['{{ include "prometheus-statsd-exporter.fullname" . }}:{{ .Values.service.port }}'] + restartPolicy: Never diff --git a/charts/prometheus-statsd-exporter/values.yaml b/charts/prometheus-statsd-exporter/values.yaml new file mode 100644 index 000000000000..d10d3d109c18 --- /dev/null +++ b/charts/prometheus-statsd-exporter/values.yaml @@ -0,0 +1,119 @@ +# Default values for prometheus-statsd-exporter. +# This is a YAML-formatted file. +# Declare variables to be passed into your templates. + +replicaCount: 1 +# deploymentRevisionHistoryLimit: 10 + +image: + repository: prom/statsd-exporter + pullPolicy: IfNotPresent + # Overrides the image tag whose default is the chart appVersion. + tag: v0.18.0 + +imagePullSecrets: [] +nameOverride: "" +fullnameOverride: "" + + +statsd: + # The UDP port on which to receive statsd metric lines. + udpPort: 9125 + + # The TCP port on which to receive statsd metric lines. + tcpPort: 9125 + + # Maximum size of your metric mapping cache. + # Relies on least recently used replacement policy if max size is reached. + cacheSize: 1000 + + # Size of internal queue for processing events. + eventQueueSize: 10000 + + # Number of events to hold in queue before flushing. + eventFlushThreshold: 1000 + + # Time interval before flushing events in queue. + eventFlushInterval: 200ms + + # Metric mapping ConfigMap +# mappingConfigMapName: "" + + # Metric mapping configuration +# mappingConfig: |- + +serviceMonitor: + enabled: false + interval: 30s + scrapeTimeout: 10s + namespace: monitoring + additionalLabels: {} + +serviceAccount: + # Specifies whether a service account should be created + create: true + # Annotations to add to the service account + annotations: {} + # The name of the service account to use. + # If not set and create is true, a name is generated using the fullname template + name: "" + +podAnnotations: {} + +podSecurityContext: {} + # fsGroup: 2000 + +securityContext: {} + # capabilities: + # drop: + # - ALL + # readOnlyRootFilesystem: true + # runAsNonRoot: true + # runAsUser: 1000 + +service: + type: ClusterIP + # The address on which to expose the web interface and generated Prometheus metrics. + port: 9102 + # Path under which to expose metrics. + path: /metrics + annotations: {} + +ingress: + enabled: false + annotations: {} + # kubernetes.io/ingress.class: nginx + # kubernetes.io/tls-acme: "true" + hosts: + - host: chart-example.local + # pathType: ImplementationSpecific # only Kubernetes v1.19+ + paths: [] + tls: [] + # - secretName: chart-example-tls + # hosts: + # - chart-example.local + +resources: {} + # We usually recommend not to specify default resources and to leave this as a conscious + # choice for the user. This also increases chances charts run on environments with little + # resources, such as Minikube. If you do want to specify resources, uncomment the following + # lines, adjust them as necessary, and remove the curly braces after 'resources:'. + # limits: + # cpu: 100m + # memory: 128Mi + # requests: + # cpu: 100m + # memory: 128Mi + +autoscaling: + enabled: false + minReplicas: 1 + maxReplicas: 100 + targetCPUUtilizationPercentage: 80 + # targetMemoryUtilizationPercentage: 80 + +nodeSelector: {} + +tolerations: [] + +affinity: {}