Skip to content

Commit

Permalink
Released version 0.2.55 of the helm chart
Browse files Browse the repository at this point in the history
  • Loading branch information
pajikos committed May 7, 2024
1 parent fa54591 commit c15cc78
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 51 deletions.
2 changes: 1 addition & 1 deletion charts/home-assistant/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ sources:
- https://github.com/cdr/code-server
- https://github.com/pajikos/home-assistant-helm-chart/tree/main/charts/home-assistant
type: application
version: 0.2.54
version: 0.2.55
56 changes: 6 additions & 50 deletions charts/home-assistant/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,13 +71,10 @@ This document provides detailed configuration options for the Home Assistant Hel
| `nodeSelector` | Node selector settings for scheduling the pod on specific nodes | `{}` |
| `tolerations` | Tolerations settings for scheduling the pod based on node taints | `[]` |
| `affinity` | Affinity settings for controlling pod scheduling | `{}` |
| `persistence.enabled` | Enables the creation of a Persistent Volume Claim (PVC) for Home Assistant. | `false` |
| `persistence.accessMode` | The access mode of the PVC. | `ReadWriteOnce` |
| `persistence.size` | The size of the PVC to create. | `5Gi` |
| `persistence.storageClass` | The storage class to use for the PVC. If empty, the default storage class is used. | `""` |
| `persistence.existingVolume` | The name of an existing Persistent Volume to bind to. This bypasses dynamic provisioning. | `""` |
| `persistence.matchLabels` | Label selectors to apply when binding to an existing Persistent Volume. | `{}` |
| `persistence.matchExpressions` | Expression selectors to apply when binding to an existing Persistent Volume. | `{}` |
| `persistence.enabled` | Enable or disable persistence | `true` |
| `persistence.accessMode` | Access mode for the persistent volume claim | `ReadWriteOnce` |
| `persistence.size` | Size of the persistent volume claim | `5Gi` |
| `persistence.storageClass` | Storage class for the persistent volume claim | `""` |
| `additionalVolumes` | Additional volumes to be mounted in the home assistant container | `[]` |
| `additionalVolumeMounts` | Additional volume mounts to be mounted in the home assistant container | `[]` |
| `addons.codeserver.enabled` | Enable or disable the code-server addon | `false` |
Expand All @@ -94,49 +91,8 @@ This document provides detailed configuration options for the Home Assistant Hel

## Persistence

The default configuration of this chart uses an `emptyDir` volume for persistence, which means that data is lost when the pod is removed. To enable persistent storage that survives pod restarts and redeployments, you can configure the chart to use a Persistent Volume Claim (PVC).

### Enabling Persistence

To enable persistence, set `persistence.enabled` to `true`. You can also specify the desired `accessMode` and `size` for the PVC. By default, the `accessMode` is set to `ReadWriteOnce`, and there is no default storage class (`storageClass: ""`), meaning the cluster's default storage class will be used.

```yaml
persistence:
enabled: true
accessMode: ReadWriteOnce
size: 5Gi
storageClass: ""
```
### Using an Existing Volume
If you already have a Persistent Volume (PV) that you wish to use, you can specify the name of this existing volume in the `persistence.existingVolume` field. This will direct the chart to use the specified PV, bypassing dynamic volume provisioning.

```yaml
persistence:
enabled: true
existingVolume: "my-existing-volume"
```

When using an existing volume, ensure that the `accessMode` and `size` specified in the chart values match the capabilities and capacity of the existing PV.

### Selectors

You can further refine the selection of an existing PV using `matchLabels` or `matchExpressions` under the `persistence` section. These selectors will be used to match the existing PVs based on their labels.

```yaml
persistence:
enabled: true
matchLabels:
type: fast-ssd
matchExpressions:
- key: "failure-domain.beta.kubernetes.io/zone"
operator: "In"
values: ["us-west-1a"]
```

> **Note**: When specifying an `existingVolume`, ensure that the PV is not already bound to another PVC, as a PV can only be bound to a single PVC at a time.

The default configuration of this chart uses an emptyDir volume for persistence, which is lost when the pod is removed.
To enable persistence, set `persistence.enabled` to `true`. In addition, you can specify the `persistence.storageClass` or `persistence.accessMode` values. The default values are `ReadWriteOnce` and `""` respectively.

## Ingress

Expand Down

0 comments on commit c15cc78

Please sign in to comment.