diff --git a/charts/.gitignore b/charts/.gitignore new file mode 100644 index 0000000..6d5ab15 --- /dev/null +++ b/charts/.gitignore @@ -0,0 +1,3 @@ +Chart.lock +charts/ +*.tgz diff --git a/charts/.pre-commit-config.yaml b/charts/.pre-commit-config.yaml new file mode 100644 index 0000000..430b37d --- /dev/null +++ b/charts/.pre-commit-config.yaml @@ -0,0 +1,12 @@ +# See https://pre-commit.com for more information +# See https://pre-commit.com/hooks.html for more hooks +repos: +- repo: https://github.com/pre-commit/pre-commit-hooks + rev: v3.2.0 + hooks: + - id: trailing-whitespace + - id: end-of-file-fixer + exclude: README.md$ + - id: check-yaml + exclude: all.yaml + - id: check-added-large-files diff --git a/charts/home-assistant/Chart.yaml b/charts/home-assistant/Chart.yaml new file mode 100644 index 0000000..c565a17 --- /dev/null +++ b/charts/home-assistant/Chart.yaml @@ -0,0 +1,19 @@ +--- +apiVersion: v2 +name: home-assistant +description: Open source home automation that puts local control and privacy first. Powered by a worldwide community of tinkerers and DIY enthusiasts. +type: application +version: 1.0.0 +appVersion: v2024.11.1 +kubeVersion: ">=1.27.0" +home: https://www.home-assistant.io/ +sources: + - https://git.rre.nu/jonas/helm-charts + - https://github.com/home-assistant/core +maintainers: + - name: Jonas Forsberg + email: barregargamel@gmail.com +dependencies: + - name: lib + repository: https://git.rre.nu/api/packages/jonas/helm + version: 1.0.3 diff --git a/charts/home-assistant/Makefile b/charts/home-assistant/Makefile new file mode 100644 index 0000000..6cd25d8 --- /dev/null +++ b/charts/home-assistant/Makefile @@ -0,0 +1,2 @@ +doc: + frigate gen --output-format markdown --no-deps --no-credits ./ > README.md diff --git a/charts/home-assistant/README.md b/charts/home-assistant/README.md new file mode 100644 index 0000000..19015f3 --- /dev/null +++ b/charts/home-assistant/README.md @@ -0,0 +1,24 @@ + +Home-assistant +=========== + +Open source home automation that puts local control and privacy first. Powered by a worldwide community of tinkerers and DIY enthusiasts. + + +## Configuration + +The following table lists the configurable parameters of the Home-assistant chart and their default values. + +| Parameter | Description | Default | +| ------------------------ | ----------------------- | -------------- | +| `image.repository` | | `"ghcr.io/home-assistant/home-assistant"` | +| `image.tag` | | `null` | +| `livenessProbe.httpGet.path` | | `"/"` | +| `livenessProbe.httpGet.port` | | `8123` | +| `livenessProbe.initialDelaySeconds` | | `5` | +| `livenessProbe.periodSeconds` | | `3` | + + + + + diff --git a/charts/home-assistant/templates/base.tpl b/charts/home-assistant/templates/base.tpl new file mode 100644 index 0000000..30c9b59 --- /dev/null +++ b/charts/home-assistant/templates/base.tpl @@ -0,0 +1 @@ +{{ include "lib.all" . }} diff --git a/charts/home-assistant/values.yaml b/charts/home-assistant/values.yaml new file mode 100644 index 0000000..fe8b92d --- /dev/null +++ b/charts/home-assistant/values.yaml @@ -0,0 +1,48 @@ +image: + repository: ghcr.io/home-assistant/home-assistant + tag: + +controller: # main workload + enabled: true # should the main workload be included or not + type: statefulset # valid options are deployment, statefulset, job + +service: + http: + enabled: true + ports: + http: + port: 80 + targetPort: 8123 + +ingress: + enabled: false + service: http # what service should the ingress target + servicePort: 80 + className: "nginx" + hosts: + - host: example.local + paths: + - path: / + pathType: Prefix + annotations: + {} + tls: [] + # - secretName: chart-example-tls + # hosts: + # - chart-example.local + + +volumeClaimTemplates: + - name: config + mountPath: /config + accessMode: "ReadWriteOnce" + storageClassName: "default" + size: 1Gi + + +livenessProbe: + httpGet: + path: / + port: 8123 + initialDelaySeconds: 5 + periodSeconds: 3