From a3ac7d6c76fcd06a32693a7f4d69746308c96b35 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E1=97=AA=D1=94=CE=BD=CE=B9=CE=B7=20=E1=97=B7=CF=85=D0=BD?= =?UTF-8?q?=CA=9F?= Date: Thu, 8 Apr 2021 07:26:36 -0400 Subject: [PATCH] [librespeed] migrate to common library (#772) * fix: use common library * fix: use common library --- charts/stable/librespeed/.helmignore | 3 + charts/stable/librespeed/Chart.yaml | 22 ++- charts/stable/librespeed/README.md | 73 +++------ .../librespeed/README_CHANGELOG.md.gotmpl | 13 +- charts/stable/librespeed/ci/ct-values.yaml | 2 + charts/stable/librespeed/templates/NOTES.txt | 20 +-- .../stable/librespeed/templates/_helpers.tpl | 32 ---- .../stable/librespeed/templates/common.yaml | 1 + .../librespeed/templates/deployment.yaml | 102 ------------- .../stable/librespeed/templates/ingress.yaml | 38 ----- charts/stable/librespeed/templates/pvc.yaml | 24 --- .../stable/librespeed/templates/service.yaml | 42 ------ charts/stable/librespeed/values.yaml | 141 ++++-------------- 13 files changed, 85 insertions(+), 428 deletions(-) create mode 100644 charts/stable/librespeed/ci/ct-values.yaml delete mode 100644 charts/stable/librespeed/templates/_helpers.tpl create mode 100644 charts/stable/librespeed/templates/common.yaml delete mode 100644 charts/stable/librespeed/templates/deployment.yaml delete mode 100644 charts/stable/librespeed/templates/ingress.yaml delete mode 100644 charts/stable/librespeed/templates/pvc.yaml delete mode 100644 charts/stable/librespeed/templates/service.yaml diff --git a/charts/stable/librespeed/.helmignore b/charts/stable/librespeed/.helmignore index 46fd8996..4379e2b3 100644 --- a/charts/stable/librespeed/.helmignore +++ b/charts/stable/librespeed/.helmignore @@ -19,5 +19,8 @@ .project .idea/ *.tmproj +.vscode/ # OWNERS file for Kubernetes OWNERS +# helm-docs templates +*.gotmpl diff --git a/charts/stable/librespeed/Chart.yaml b/charts/stable/librespeed/Chart.yaml index c17590b7..a41f181f 100644 --- a/charts/stable/librespeed/Chart.yaml +++ b/charts/stable/librespeed/Chart.yaml @@ -1,16 +1,22 @@ apiVersion: v2 -appVersion: 1.0.6-12 +appVersion: 5.2.4 description: Librespeed is a HTML5 webpage to test upload and download speeds name: librespeed -version: 2.0.3 +version: 3.0.0 +kubeVersion: ">=1.16.0-0" keywords: - - librespeed +- librespeed +- speedtest home: https://github.com/k8s-at-home/charts/tree/master/charts/stable/librespeed icon: https://github.com/librespeed/speedtest/blob/master/.logo/logo3.png?raw=true sources: - - https://github.com/librespeed/speedtest - - https://hub.docker.com/r/linuxserver/librespeed - - https://github.com/k8s-at-home/charts/tree/master/charts/librespeed +- https://github.com/librespeed/speedtest +- https://hub.docker.com/r/linuxserver/librespeed +- https://github.com/k8s-at-home/charts/tree/master/charts/librespeed maintainers: - - name: billimek - email: jeff@billimek.com +- name: mcmarkj + email: mark@markmcw.uk +dependencies: +- name: common + repository: https://library-charts.k8s-at-home.com + version: 2.2.0 diff --git a/charts/stable/librespeed/README.md b/charts/stable/librespeed/README.md index d61dd278..653a820a 100644 --- a/charts/stable/librespeed/README.md +++ b/charts/stable/librespeed/README.md @@ -1,6 +1,6 @@ # librespeed -![Version: 2.0.3](https://img.shields.io/badge/Version-2.0.3-informational?style=flat-square) ![AppVersion: 1.0.6-12](https://img.shields.io/badge/AppVersion-1.0.6--12-informational?style=flat-square) +![Version: 3.0.0](https://img.shields.io/badge/Version-3.0.0-informational?style=flat-square) ![AppVersion: 5.2.4](https://img.shields.io/badge/AppVersion-5.2.4-informational?style=flat-square) Librespeed is a HTML5 webpage to test upload and download speeds @@ -14,10 +14,13 @@ Librespeed is a HTML5 webpage to test upload and download speeds ## Requirements +Kubernetes: `>=1.16.0-0` + ## Dependencies | Repository | Name | Version | |------------|------|---------| +| https://library-charts.k8s-at-home.com | common | 2.2.0 | ## TL;DR @@ -74,50 +77,15 @@ N/A | Key | Type | Default | Description | |-----|------|---------|-------------| -| affinity | object | `{}` | Affinity settings for pod assignment or the homebridge GUI | -| deploymentAnnotations | object | `{}` | Key-value pairs to add as deployment annotations | -| distance | string | `"km"` | how the distance from the server is measured. Options `km`, `mi`, or `` | -| email | string | `nil` | Email address for GDPR requests. Must be specified when telemetry=true | -| fullnameOverride | string | `""` | | -| idObfuscation | bool | `false` | Test IDs are obfuscated, avoids exposing database internal sequential IDs | -| image.pullPolicy | string | `"IfNotPresent"` | Librespeed image pull policy | -| image.repository | string | `"adolfintel/speedtest"` | Librespeed image | -| image.tag | string | `"latest"` | Librespeed image tag | -| ingress.annotations | object | `{}` | Ingress annotations | -| ingress.enabled | bool | `false` | Enables Ingress | -| ingress.hosts | list | `["chart-example.local"]` | Ingress accepted hostnames | -| ingress.path | string | `"/"` | Ingress path | -| ingress.tls | list | `[]` | Ingress TLS configuration | -| livenessProbePath | string | `"/"` | Default livenessProbe path | -| nameOverride | string | `""` | | -| nodeSelector | object | `{}` | Node labels for pod assignment or the homebridge GUI | -| password | string | `"ChangeMe"` | password for stats page | -| persistence.accessMode | string | `"ReadWriteOnce"` | Persistence access modes | -| persistence.enabled | bool | `false` | Use persistent volume to store data | -| persistence.existingClaim | string | `nil` | Use an existing PVC to persist data | -| persistence.size | string | `"1Gi"` | Size of persistent volume claim | -| persistence.skipuninstall | bool | `false` | Do not delete the pvc upon helm uninstall | -| persistence.storageClass | string | `nil` | Type of persistent volume claim | -| persistence.subPath | string | `nil` | When mounting the data volume you may specify a subPath | -| pgid | string | `"1000"` | Default GID | -| podAnnotations | object | `{}` | Key-value pairs to add as pod annotations | -| puid | string | `"1000"` | Default UID | -| readinessProbePath | string | `"/"` | Default readinessProbe path | -| redactIPAddresses | bool | `false` | IP addresses/hostnames are redacted from the collected telemetry | -| resources | object | `{}` | CPU/Memory resource requests/limits or the homebridge GUI | -| service.annotations | object | `{}` | Service annotations for the GUI | -| service.externalTrafficPolicy | string | `nil` | Set the externalTrafficPolicy in the Service to either Cluster or Local | -| service.labels | object | `{}` | Custom labels | -| service.loadBalancerIP | string | `nil` | Loadbalance IP for the GUI | -| service.loadBalancerSourceRanges | list | `nil` | List of IP CIDRs allowed access to load balancer (if supported) | -| service.nodePort | int | `nil` | Kubernetes nodePort where the GUI is exposed | -| service.port | int | `80` | Kubernetes port where the GUI is exposed | -| service.type | string | `"ClusterIP"` | Kubernetes service type for the GUI | -| strategyType | string | `"Recreate"` | Specifies the strategy used to replace old Pods by new ones | -| telemetry | bool | `false` | Enable/Disable history | -| timezone | string | `"UTC"` | Default timezone | -| title | string | `"LibreSpeed"` | Title of your speedtest | -| tolerations | list | `[]` | Toleration labels for pod assignment or the homebridge GUI | +| env | object | `{}` | | +| image.pullPolicy | string | `"IfNotPresent"` | | +| image.repository | string | `"linuxserver/librespeed"` | | +| image.tag | string | `"version-5.2.4"` | | +| ingress.enabled | bool | `false` | | +| persistence.config.emptyDir.enabled | bool | `false` | | +| persistence.config.enabled | bool | `false` | | +| service.port.port | int | `80` | | +| strategy.type | string | `"Recreate"` | | ## Changelog @@ -125,7 +93,13 @@ All notable changes to this application Helm chart will be documented in this fi The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). -### [2.0.1] +### [3.0.0] + +#### Changed + +- Migrated chart to use our common library + +### [1.0.0] #### Added @@ -133,13 +107,14 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), #### Changed -- Use helm-docs +- N/A #### Removed - N/A -[2.0.1]: #2.0.1 +[3.0.0]: #3.0.0 +[1.0.0]: #1.0.0 ## Support @@ -149,4 +124,4 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), - Join our [Discord](https://discord.gg/sTMX7Vh) community ---------------------------------------------- -Autogenerated from chart metadata using [helm-docs v1.5.0](https://github.com/norwoodj/helm-docs/releases/v1.5.0) +Autogenerated from chart metadata using [helm-docs v1.5.0](https://github.com/norwoodj/helm-docs/releases/v1.5.0) \ No newline at end of file diff --git a/charts/stable/librespeed/README_CHANGELOG.md.gotmpl b/charts/stable/librespeed/README_CHANGELOG.md.gotmpl index a0926cf3..14d7aa10 100644 --- a/charts/stable/librespeed/README_CHANGELOG.md.gotmpl +++ b/charts/stable/librespeed/README_CHANGELOG.md.gotmpl @@ -9,7 +9,13 @@ All notable changes to this application Helm chart will be documented in this fi The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). -### [2.0.1] +### [3.0.0] + +#### Changed + +- Migrated chart to use our common library + +### [1.0.0] #### Added @@ -17,11 +23,12 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), #### Changed -- Use helm-docs +- N/A #### Removed - N/A -[2.0.1]: #2.0.1 +[3.0.0]: #3.0.0 +[1.0.0]: #1.0.0 {{- end -}} diff --git a/charts/stable/librespeed/ci/ct-values.yaml b/charts/stable/librespeed/ci/ct-values.yaml new file mode 100644 index 00000000..a4c24908 --- /dev/null +++ b/charts/stable/librespeed/ci/ct-values.yaml @@ -0,0 +1,2 @@ +env: + PASSWORD: "ChangeMe" diff --git a/charts/stable/librespeed/templates/NOTES.txt b/charts/stable/librespeed/templates/NOTES.txt index 25f281f9..90f7b653 100644 --- a/charts/stable/librespeed/templates/NOTES.txt +++ b/charts/stable/librespeed/templates/NOTES.txt @@ -1,19 +1 @@ -1. Get the application URL by running these commands: -{{- if .Values.ingress.enabled }} -{{- range .Values.ingress.hosts }} - http{{ if $.Values.ingress.tls }}s{{ end }}://{{ . }}{{ $.Values.ingress.path }} -{{- end }} -{{- else if contains "NodePort" .Values.service.type }} - export NODE_PORT=$(kubectl get --namespace {{ .Release.Namespace }} -o jsonpath="{.spec.ports[0].nodePort}" services {{ include "librespeed.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 svc -w {{ include "librespeed.fullname" . }}' - export SERVICE_IP=$(kubectl get svc --namespace {{ .Release.Namespace }} {{ include "librespeed.fullname" . }} -o jsonpath='{.status.loadBalancer.ingress[0].ip}') - 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 "librespeed.name" . }},app.kubernetes.io/instance={{ .Release.Name }}" -o jsonpath="{.items[0].metadata.name}") - echo "Visit http://127.0.0.1:8080 to use your application" - kubectl port-forward $POD_NAME 8080:80 -{{- end }} +{{- include "common.notes.defaultNotes" . -}} diff --git a/charts/stable/librespeed/templates/_helpers.tpl b/charts/stable/librespeed/templates/_helpers.tpl deleted file mode 100644 index 121857a5..00000000 --- a/charts/stable/librespeed/templates/_helpers.tpl +++ /dev/null @@ -1,32 +0,0 @@ -{{/* vim: set filetype=mustache: */}} -{{/* -Expand the name of the chart. -*/}} -{{- define "librespeed.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 "librespeed.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 "librespeed.chart" -}} -{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" -}} -{{- end -}} diff --git a/charts/stable/librespeed/templates/common.yaml b/charts/stable/librespeed/templates/common.yaml new file mode 100644 index 00000000..a6613c2c --- /dev/null +++ b/charts/stable/librespeed/templates/common.yaml @@ -0,0 +1 @@ +{{ include "common.all" . }} diff --git a/charts/stable/librespeed/templates/deployment.yaml b/charts/stable/librespeed/templates/deployment.yaml deleted file mode 100644 index a1e0294d..00000000 --- a/charts/stable/librespeed/templates/deployment.yaml +++ /dev/null @@ -1,102 +0,0 @@ -apiVersion: apps/v1 -kind: Deployment -metadata: - name: {{ include "librespeed.fullname" . }} - {{- if .Values.deploymentAnnotations }} - annotations: - {{- range $key, $value := .Values.deploymentAnnotations }} - {{ $key }}: {{ $value | quote }} - {{- end }} - {{- end }} - labels: - app.kubernetes.io/name: {{ include "librespeed.name" . }} - helm.sh/chart: {{ include "librespeed.chart" . }} - app.kubernetes.io/instance: {{ .Release.Name }} - app.kubernetes.io/managed-by: {{ .Release.Service }} -spec: - replicas: 1 - strategy: - type: {{ .Values.strategyType }} - selector: - matchLabels: - app.kubernetes.io/name: {{ include "librespeed.name" . }} - app.kubernetes.io/instance: {{ .Release.Name }} - template: - metadata: - labels: - app.kubernetes.io/name: {{ include "librespeed.name" . }} - app.kubernetes.io/instance: {{ .Release.Name }} - {{- if .Values.podAnnotations }} - annotations: - {{- range $key, $value := .Values.podAnnotations }} - {{ $key }}: {{ $value | quote }} - {{- end }} - {{- end }} - spec: - containers: - - name: {{ .Chart.Name }} - image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}" - imagePullPolicy: {{ .Values.image.pullPolicy }} - ports: - - name: http - containerPort: 80 - protocol: TCP - livenessProbe: - httpGet: - path: {{ .Values.livenessProbePath }} - port: http - readinessProbe: - httpGet: - path: {{ .Values.readinessProbePath }} - port: http - env: - - name: TZ - value: "{{ .Values.timezone }}" - - name: PUID - value: "{{ .Values.puid }}" - - name: GUID - value: "{{ .Values.pgid }}" - {{ if .Values.telemetry }} - - name: TELEMETRY - value: "{{ .Values.telemetry }}" - - name: PASSWORD - value: "{{ .Values.password }}" - - name: ENABLE_ID_OBFUSCATION - value: "{{ .Values.idObfuscation }}" - - name: REDACT_IP_ADDRESSES - value: "{{ .Values.redactIPAddresses }}" - - name: EMAIL - value: "{{ .Values.email }}" - {{ end }} - - name: TITLE - value: "{{ .Values.title }}" - - name: DISTANCE - value: "{{ .Values.distance }}" - volumeMounts: - - name: config - mountPath: /config -{{- if .Values.persistence.subPath }} - subPath: {{ .Values.persistence.subPath }} -{{- end }} - resources: -{{ toYaml .Values.resources | indent 12 }} - volumes: - - name: config - {{- if .Values.persistence.enabled }} - persistentVolumeClaim: - claimName: {{ if .Values.persistence.existingClaim }}{{ .Values.persistence.existingClaim }}{{- else }}{{ template "librespeed.fullname" . }}{{- end }} - {{- else }} - emptyDir: {} - {{ end }} - {{- with .Values.nodeSelector }} - nodeSelector: -{{ toYaml . | indent 8 }} - {{- end }} - {{- with .Values.affinity }} - affinity: -{{ toYaml . | indent 8 }} - {{- end }} - {{- with .Values.tolerations }} - tolerations: -{{ toYaml . | indent 8 }} - {{- end }} diff --git a/charts/stable/librespeed/templates/ingress.yaml b/charts/stable/librespeed/templates/ingress.yaml deleted file mode 100644 index 229985b3..00000000 --- a/charts/stable/librespeed/templates/ingress.yaml +++ /dev/null @@ -1,38 +0,0 @@ -{{- if .Values.ingress.enabled -}} -{{- $fullName := include "librespeed.fullname" . -}} -{{- $ingressPath := .Values.ingress.path -}} -apiVersion: extensions/v1beta1 -kind: Ingress -metadata: - name: {{ $fullName }} - labels: - app.kubernetes.io/name: {{ include "librespeed.name" . }} - helm.sh/chart: {{ include "librespeed.chart" . }} - app.kubernetes.io/instance: {{ .Release.Name }} - app.kubernetes.io/managed-by: {{ .Release.Service }} -{{- with .Values.ingress.annotations }} - annotations: -{{ toYaml . | indent 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: {{ . | quote }} - http: - paths: - - path: {{ $ingressPath }} - backend: - serviceName: {{ $fullName }} - servicePort: http - {{- end }} -{{- end }} diff --git a/charts/stable/librespeed/templates/pvc.yaml b/charts/stable/librespeed/templates/pvc.yaml deleted file mode 100644 index d17918d7..00000000 --- a/charts/stable/librespeed/templates/pvc.yaml +++ /dev/null @@ -1,24 +0,0 @@ -{{- if and .Values.persistence.enabled (not .Values.persistence.existingClaim) }} -kind: PersistentVolumeClaim -apiVersion: v1 -metadata: - name: {{ template "librespeed.fullname" . }} - labels: - app.kubernetes.io/name: {{ include "librespeed.name" . }} - helm.sh/chart: {{ include "librespeed.chart" . }} - app.kubernetes.io/instance: {{ .Release.Name }} - app.kubernetes.io/managed-by: {{ .Release.Service }} -spec: - accessModes: - - {{ .Values.persistence.accessMode | quote }} - resources: - requests: - storage: {{ .Values.persistence.size | quote }} -{{- if .Values.persistence.storageClass }} -{{- if (eq "-" .Values.persistence.storageClass) }} - storageClassName: "" -{{- else }} - storageClassName: "{{ .Values.persistence.storageClass }}" -{{- end }} -{{- end }} -{{- end -}} diff --git a/charts/stable/librespeed/templates/service.yaml b/charts/stable/librespeed/templates/service.yaml deleted file mode 100644 index 740ec36f..00000000 --- a/charts/stable/librespeed/templates/service.yaml +++ /dev/null @@ -1,42 +0,0 @@ -apiVersion: v1 -kind: Service -metadata: - name: {{ include "librespeed.fullname" . }} - {{- if .Values.service.annotations }} - annotations: - {{- toYaml .Values.service.annotations | nindent 4 }} - {{- end }} - labels: - app.kubernetes.io/name: {{ include "librespeed.name" . }} - helm.sh/chart: {{ include "librespeed.chart" . }} - app.kubernetes.io/instance: {{ .Release.Name }} - app.kubernetes.io/managed-by: {{ .Release.Service }} -spec: -{{- if (or (eq .Values.service.type "ClusterIP") (empty .Values.service.type)) }} - type: ClusterIP -{{- else if eq .Values.service.type "LoadBalancer" }} - type: {{ .Values.service.type }} - {{- if .Values.service.loadBalancerIP }} - loadBalancerIP: {{ .Values.service.loadBalancerIP }} - {{- end }} - {{- if .Values.service.loadBalancerSourceRanges }} - loadBalancerSourceRanges: -{{ toYaml .Values.service.loadBalancerSourceRanges | indent 4 }} - {{- end -}} -{{- else }} - type: {{ .Values.service.type }} -{{- end }} - {{- if .Values.service.externalTrafficPolicy }} - externalTrafficPolicy: {{ .Values.service.externalTrafficPolicy }} - {{- end }} - ports: - - port: {{ .Values.service.port }} - targetPort: http - protocol: TCP - name: http -{{ if (and (eq .Values.service.type "NodePort") (not (empty .Values.service.nodePort))) }} - nodePort: {{.Values.service.nodePort}} -{{ end }} - selector: - app.kubernetes.io/name: {{ include "librespeed.name" . }} - app.kubernetes.io/instance: {{ .Release.Name }} diff --git a/charts/stable/librespeed/values.yaml b/charts/stable/librespeed/values.yaml index ae476a02..0679a888 100644 --- a/charts/stable/librespeed/values.yaml +++ b/charts/stable/librespeed/values.yaml @@ -1,123 +1,42 @@ -# Default values for librespeed -# This is a YAML-formatted file. -# Declare variables to be passed into your templates. - -# -- Specifies the strategy used to replace old Pods by new ones -strategyType: Recreate +# +# IMPORTANT NOTE +# +# This chart inherits from our common library chart. You can check the default values/options here: +# https://github.com/k8s-at-home/library-charts/tree/main/charts/stable/common/values.yaml +# image: - # -- Librespeed image - repository: adolfintel/speedtest - # -- Librespeed image tag - tag: latest - # -- Librespeed image pull policy + repository: linuxserver/librespeed pullPolicy: IfNotPresent + tag: version-5.2.4 -nameOverride: "" -fullnameOverride: "" - -# -- Default livenessProbe path -livenessProbePath: / -# -- Default readinessProbe path -readinessProbePath: / - -# -- Default timezone -timezone: "UTC" -# -- Default UID -puid: "1000" -# -- Default GID -pgid: "1000" - -# -- Enable/Disable history -telemetry: false -# -- password for stats page -password: "ChangeMe" -# -- (string) Email address for GDPR requests. Must be specified when telemetry=true -email: - -# -- Title of your speedtest -title: LibreSpeed -# -- Test IDs are obfuscated, avoids exposing database internal sequential IDs -idObfuscation: false -# -- IP addresses/hostnames are redacted from the collected telemetry -redactIPAddresses: false -# -- how the distance from the server is measured. Options `km`, `mi`, or `` -distance: "km" +strategy: + type: Recreate +# See more environment variables in the librespeed documentation +# https://hub.docker.com/r/linuxserver/librespeed +env: {} + # TZ: + # PUID: + # PGID: + # PASSWORD: + # CUSTOM_RESULTS: + # DB_TYPE: + # DB_NAME: + # DB_HOSTNAME: + # DB_USERNAME: + # DB_PASSWORD: + # DB_PORT: service: - # -- Kubernetes service type for the GUI - type: ClusterIP - # -- Kubernetes port where the GUI is exposed - port: 80 - # -- (int) Kubernetes nodePort where the GUI is exposed - nodePort: - # -- Service annotations for the GUI - annotations: {} - # -- Custom labels - labels: {} - # -- (string) Loadbalance IP for the GUI - loadBalancerIP: - # -- (list) List of IP CIDRs allowed access to load balancer (if supported) - loadBalancerSourceRanges: - # -- Set the externalTrafficPolicy in the Service to either Cluster or Local - externalTrafficPolicy: + port: + port: 80 ingress: - # -- Enables Ingress enabled: false - # -- Ingress annotations - annotations: {} - # -- Ingress path - path: / - # -- Ingress accepted hostnames - hosts: - - chart-example.local - # -- Ingress TLS configuration - tls: [] - # - secretName: chart-example-tls - # hosts: - # - chart-example.local persistence: - # -- Use persistent volume to store data - enabled: false - # -- (string) Type of persistent volume claim - storageClass: - # -- (string) Use an existing PVC to persist data - existingClaim: - # -- Persistence access modes - accessMode: ReadWriteOnce - # -- Size of persistent volume claim - size: 1Gi - # -- Do not delete the pvc upon helm uninstall - skipuninstall: false - # -- (string) When mounting the data volume you may specify a subPath - subPath: -# -- CPU/Memory resource requests/limits or the homebridge GUI -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 - -# -- Node labels for pod assignment or the homebridge GUI -nodeSelector: {} - -# -- Toleration labels for pod assignment or the homebridge GUI -tolerations: [] - -# -- Affinity settings for pod assignment or the homebridge GUI -affinity: {} - -# -- Key-value pairs to add as pod annotations -podAnnotations: {} - -# -- Key-value pairs to add as deployment annotations -deploymentAnnotations: {} + config: + enabled: false + emptyDir: + enabled: false