Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions charts/homarr/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: homarr
description: A Helm chart to deploy homarr for Kubernetes
home: https://homarr-labs.github.io/charts/charts/homarr/
type: application
version: 4.1.0
version: 5.0.0
# renovate datasource=docker depName=ghcr.io/homarr-labs/homarr
appVersion: "v1.26.0"
icon: https://raw.githubusercontent.com/homarr-labs/charts/refs/heads/main/charts/homarr/icon.svg
Expand All @@ -27,7 +27,9 @@ annotations:
url: https://homarr-labs.github.io/charts/pgp_keys.asc
artifacthub.io/changes: |-
- kind: changed
description: Update ghcr.io/homarr-labs/homarr docker tag to v1.26.0
description: Removed persistence for image storage
- kind: fixed
description: Corrected the database path for Homarr
artifacthub.io/links: |-
- name: App Source
url: https://github.com/homarr-labs/homarr
Expand Down
31 changes: 2 additions & 29 deletions charts/homarr/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<img src="https://raw.githubusercontent.com/homarr-labs/charts/refs/heads/main/charts/homarr/icon.svg" align="right" width="92" alt="homarr logo">

![Version: 4.1.0](https://img.shields.io/badge/Version-4.1.0-informational?style=flat)
![Version: 5.0.0](https://img.shields.io/badge/Version-5.0.0-informational?style=flat)
![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat)
![AppVersion: v1.26.0](https://img.shields.io/badge/AppVersion-v1.26.0-informational?style=flat)

Expand Down Expand Up @@ -212,24 +212,6 @@ database:
````
</details>

### Images

You can import your local images into `homarr-images` PVC

<details>
<summary>values.yaml</summary>

````yaml
persistence:
homarrImages:
enabled: true

imagesCopy:
enabled: true
pathToLocalImages: "/path-to-local-images"
````
</details>

### Ingress

The ingress section in the values.yaml file allows you to configure how external traffic accesses your application through an Ingress resource. This section defines whether Ingress is enabled, the class to use, and how to set up hosts, paths, and TLS for secure connections.
Expand Down Expand Up @@ -408,8 +390,6 @@ All available values are listed on the [artifacthub](https://artifacthub.io/pack
| image.repository | string | `"ghcr.io/homarr-labs/homarr"` | Image repository |
| image.tag | string | `"v1.26.0"` | Overrides the image tag whose default is the chart appVersion |
| imagePullSecrets | list | `[]` | Secrets for Docker registry |
| imagesCopy.enabled | bool | `false` | Set to true to enable the init container for copying local images to the PVC. Requires homarr-images PVC to be enabled. |
| imagesCopy.pathToLocalImages | string | `"/path-to-local-images"` | The path where local images are stored for copying to the PVC |
| ingress.annotations | object | `{}` | Ingress annotations |
| ingress.enabled | bool | `false` | Enable ingress |
| ingress.hosts | list | `[{"host":"chart-example.local","paths":[{"path":"/"}]}]` | Ingress hosts configuration |
Expand All @@ -422,18 +402,11 @@ All available values are listed on the [artifacthub](https://artifacthub.io/pack
| nodeSelector | object | `{}` | Node selectors for pod scheduling |
| persistence.homarrDatabase.accessMode | string | `"ReadWriteOnce"` | homarr-database access mode |
| persistence.homarrDatabase.enabled | bool | `false` | Enable homarr-database persistent storage |
| persistence.homarrDatabase.mountPath | string | `"/appdata/db"` | homarr-database mount path inside the pod |
| persistence.homarrDatabase.mountPath | string | `"/appdata"` | homarr-database mount path inside the pod |
| persistence.homarrDatabase.name | string | `"homarr-database"` | homarr-database persistent storage name |
| persistence.homarrDatabase.size | string | `"50Mi"` | homarr-database storage size |
| persistence.homarrDatabase.storageClassName | string | `"local-path"` | homarr-database storage class name |
| persistence.homarrDatabase.volumeClaimName | string | `""` | homarr-database optional volumeClaimName to target specific PV |
| persistence.homarrImages.accessMode | string | `"ReadWriteOnce"` | homarr-images access mode |
| persistence.homarrImages.enabled | bool | `false` | Enable homarr-images persistent storage |
| persistence.homarrImages.mountPath | string | `"/images"` | homarr-images mount path inside the pod |
| persistence.homarrImages.name | string | `"homarr-images"` | homarr-images persistent storage name |
| persistence.homarrImages.size | string | `"50Mi"` | homarr-images storage size |
| persistence.homarrImages.storageClassName | string | `"local-path"` | homarr-images storage class name |
| persistence.homarrImages.volumeClaimName | string | `""` | homarr-images optional volumeClaimName to target specific PV |
| persistence.homarrTrustedCerts.certificates | string | `nil` | homarr-trusted-certificates certificates, each entry will become a new trusted certificate as a dedicated file (works only for "configmap" and "secret" mode) |
| persistence.homarrTrustedCerts.enabled | bool | `false` | Enable trusted certificates persistence |
| persistence.homarrTrustedCerts.existingSecretKeys | string | `nil` | List of keys (filenames) to mount from the existing secret (used only when type is "existingSecret") |
Expand Down
19 changes: 0 additions & 19 deletions charts/homarr/README_CONFIG.md.gotmpl
Original file line number Diff line number Diff line change
Expand Up @@ -151,25 +151,6 @@ database:
````
</details>

### Images

You can import your local images into `homarr-images` PVC

<details>
<summary>values.yaml</summary>

````yaml
persistence:
homarrImages:
enabled: true

imagesCopy:
enabled: true
pathToLocalImages: "/path-to-local-images"
````
</details>


### Ingress

The ingress section in the values.yaml file allows you to configure how external traffic accesses your application through an Ingress resource. This section defines whether Ingress is enabled, the class to use, and how to set up hosts, paths, and TLS for secure connections.
Expand Down
39 changes: 13 additions & 26 deletions charts/homarr/templates/homarr-dc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ spec:
{{- end }}
labels:
{{- include "homarr.labels" . | nindent 8 }}
{{- with .Values.podLabels }}
{{- with .Values.podLabels }}
{{- toYaml . | nindent 8 }}
{{- end }}
spec:
Expand All @@ -44,16 +44,6 @@ spec:
- name: DB_HOST
value: homarr-mysql
{{- end }}
{{- if and (.Values.persistence.homarrImages.enabled) (.Values.imagesCopy.enabled) }}
- name: image-copy-init
image: busybox
command: [ "/bin/sh", "-c" ]
args:
- "cp -r {{ .Values.imagesCopy.pathToLocalImages }}/* /images/"
volumeMounts:
- name: homarr-images
mountPath: /images
{{- end }}
containers:
- name: {{ .Chart.Name }}
securityContext:
Expand Down Expand Up @@ -150,43 +140,36 @@ spec:
resources:
{{- toYaml .Values.resources | nindent 12 }}
volumeMounts:
{{- range .Values.persistence }}
{{- if and .enabled (or (not (hasKey . "type")) (eq .type "pvc")) }}
- name: {{ .name }}
mountPath: {{ .mountPath }}
{{- end }}
{{- end }}
{{- if .Values.persistence.homarrTrustedCerts.enabled }}
{{- if eq .Values.persistence.homarrTrustedCerts.type "configmap" }}
{{- range $key, $_ := .Values.persistence.homarrTrustedCerts.certificates }}
- name: {{ include "homarr.fullname" $ }}-trusted-certificates
mountPath: {{ $.Values.persistence.homarrTrustedCerts.mountPath }}/{{ $key }}
subPath: {{ $key }}
readOnly: true
{{- end }}
{{- end }}
{{- else if eq .Values.persistence.homarrTrustedCerts.type "secret" }}
{{- range $key, $_ := .Values.persistence.homarrTrustedCerts.certificates }}
- name: {{ include "homarr.fullname" $ }}-trusted-certificates
mountPath: {{ $.Values.persistence.homarrTrustedCerts.mountPath }}/{{ $key }}
subPath: {{ $key }}
readOnly: true
{{- end }}
{{- end }}
{{- else if eq .Values.persistence.homarrTrustedCerts.type "existingSecret" }}
{{- range $key := .Values.persistence.homarrTrustedCerts.existingSecretKeys }}
- name: {{ include "homarr.fullname" $ }}-trusted-certificates
mountPath: {{ $.Values.persistence.homarrTrustedCerts.mountPath }}/{{ $key }}
subPath: {{ $key }}
readOnly: true
{{- end }}
{{- end }}
{{- end }}
{{- if .Values.persistence.homarrDatabase.enabled }}
- name: {{ .Values.persistence.homarrDatabase.name }}
mountPath: {{ .Values.persistence.homarrDatabase.mountPath }}
{{- end }}

volumes:
{{- range .Values.persistence }}
{{- if and .enabled (or (not (hasKey . "type")) (eq .type "pvc")) }}
- name: {{ .name }}
persistentVolumeClaim:
claimName: {{ .name }}
{{- end }}
{{- end }}
{{- if .Values.persistence.homarrTrustedCerts.enabled }}
- name: {{ include "homarr.fullname" . }}-trusted-certificates
{{- if eq .Values.persistence.homarrTrustedCerts.type "configmap" }}
Expand All @@ -200,6 +183,10 @@ spec:
secretName: {{ .Values.persistence.homarrTrustedCerts.existingSecretName }}
{{- end }}
{{- end }}
{{- if .Values.persistence.homarrDatabase.enabled }}
- name: {{ .Values.persistence.homarrDatabase.name }}
persistentVolumeClaim:
claimName: {{ .Values.persistence.homarrDatabase.name }}
{{- end }}
{{- with .Values.nodeSelector }}
nodeSelector:
Expand Down
18 changes: 0 additions & 18 deletions charts/homarr/templates/homarr-pvc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,22 +21,4 @@ spec:

---
{{- end }}

{{- if and (eq $key "homarrImages") $persistence.enabled }}
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: {{ $persistence.name }}
spec:
accessModes:
- {{ $persistence.accessMode }}
storageClassName: "{{ $persistence.storageClassName }}"
resources:
requests:
storage: {{ $persistence.size }}
{{- if $persistence.volumeClaimName }}
volumeName: "{{ $persistence.volumeClaimName }}"
{{- end }}
---
{{- end }}
{{- end }}
24 changes: 1 addition & 23 deletions charts/homarr/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -240,24 +240,9 @@ persistence:
# -- homarr-database storage size
size: "50Mi"
# -- homarr-database mount path inside the pod
mountPath: "/appdata/db"
mountPath: "/appdata"
# -- homarr-database optional volumeClaimName to target specific PV
volumeClaimName: ""
homarrImages:
# -- Enable homarr-images persistent storage
enabled: false
# -- homarr-images persistent storage name
name: "homarr-images"
# -- homarr-images storage class name
storageClassName: "local-path"
# -- homarr-images access mode
accessMode: "ReadWriteOnce"
# -- homarr-images storage size
size: "50Mi"
# -- homarr-images mount path inside the pod
mountPath: "/images"
# -- homarr-images optional volumeClaimName to target specific PV
volumeClaimName: ""
homarrTrustedCerts:
# -- Enable trusted certificates persistence
enabled: false
Expand Down Expand Up @@ -302,13 +287,6 @@ persistence:
# UeP5DExC1ADCMawZNf4o2cKPwdsVdx5x0mieB3qCshdviYBSTq8=
# -----END CERTIFICATE-----

# When the homarr-images PVC is enabled, you can export your local images to it.
imagesCopy:
# -- Set to true to enable the init container for copying local images to the PVC. Requires homarr-images PVC to be enabled.
enabled: false
# -- The path where local images are stored for copying to the PVC
pathToLocalImages: "/path-to-local-images"

# -- Node selectors for pod scheduling
nodeSelector: {}
# -- Node tolerations for pod scheduling
Expand Down