mirror of
https://github.com/helm/charts.git
synced 2026-08-21 21:38:03 +00:00
add support for additionalPorts and vseditor (#21482)
- support additionalPorts - vseditor changed logic for no passwords - support to enable access to editor when home assistant does not start Signed-off-by: Vegetto <git@angelnu.com>
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
apiVersion: v1
|
||||
appVersion: 0.103.3
|
||||
appVersion: 0.106.6
|
||||
description: Home Assistant
|
||||
name: home-assistant
|
||||
version: 0.12.1
|
||||
version: 0.12.2
|
||||
keywords:
|
||||
- home-assistant
|
||||
- hass
|
||||
|
||||
@@ -57,11 +57,13 @@ The following tables lists the configurable parameters of the Home Assistant cha
|
||||
| `service.type` | Kubernetes service type for the home-assistant GUI | `ClusterIP` |
|
||||
| `service.port` | Kubernetes port where the home-assistant GUI is exposed| `8123` |
|
||||
| `service.portName` | Kubernetes port name where the home-assistant GUI is exposed | `api` |
|
||||
| `service.additionalPorts` | Add additional ports exposed by the home assistant container integrations. Example homematic needs to expose a proxy port | `{}` |
|
||||
| `service.annotations` | Service annotations for the home-assistant GUI | `{}` |
|
||||
| `service.clusterIP` | Cluster IP for the home-assistant GUI | `` |
|
||||
| `service.externalIPs` | External IPs for the home-assistant GUI | `[]` |
|
||||
| `service.loadBalancerIP` | Loadbalancer IP for the home-assistant GUI | `` |
|
||||
| `service.loadBalancerSourceRanges` | Loadbalancer client IP restriction range for the home-assistant GUI | `[]` |
|
||||
| `service.publishNotReadyAddresses` | Set to true if the editors (vscode or configurator) should be reachable when home assistant does not run | `false` |
|
||||
| `hostNetwork` | Enable hostNetwork - might be needed for discovery to work | `false` |
|
||||
| `service.nodePort` | nodePort to listen on for the home-assistant GUI | `` |
|
||||
| `ingress.enabled` | Enables Ingress | `false` |
|
||||
|
||||
@@ -74,6 +74,10 @@ spec:
|
||||
- name: api
|
||||
containerPort: {{ .Values.service.port }}
|
||||
protocol: TCP
|
||||
{{- range .Values.service.additionalPorts }}
|
||||
- name: {{ .name }}
|
||||
containerPort: {{ .targetPort }}
|
||||
{{- end }}
|
||||
{{- if .Values.probes.liveness.enabled }}
|
||||
livenessProbe:
|
||||
httpGet:
|
||||
@@ -223,10 +227,11 @@ spec:
|
||||
imagePullPolicy: {{ .Values.vscode.image.pullPolicy }}
|
||||
workingDir: {{ .Values.vscode.hassConfig }}
|
||||
args:
|
||||
- --allow-http
|
||||
- --port={{ .Values.vscode.service.port }}
|
||||
{{- if not (.Values.vscode.password) }}
|
||||
- --no-auth
|
||||
{{- if (.Values.vscode.password) }}
|
||||
- --allow-http #Not supported without password
|
||||
{{- else }}
|
||||
- --auth=none
|
||||
{{- end }}
|
||||
{{- if .Values.vscode.vscodePath }}
|
||||
- --extensions-dir={{ .Values.vscode.vscodePath }}
|
||||
|
||||
@@ -36,6 +36,7 @@ spec:
|
||||
externalIPs:
|
||||
{{ toYaml .Values.service.externalIPs | indent 4 }}
|
||||
{{- end }}
|
||||
publishNotReadyAddresses: {{ .Values.service.publishNotReadyAddresses }}
|
||||
ports:
|
||||
- name: {{ .Values.service.portName }}
|
||||
port: {{ .Values.service.port }}
|
||||
@@ -61,6 +62,9 @@ spec:
|
||||
{{ if (and (eq .Values.vscode.service.type "NodePort") (not (empty .Values.vscode.service.nodePort))) }}
|
||||
nodePort: {{.Values.vscode.service.nodePort}}
|
||||
{{ end }}
|
||||
{{- end }}
|
||||
{{- if .Values.service.additionalPorts }}
|
||||
{{- .Values.service.additionalPorts | toYaml | indent 4 }}
|
||||
{{- end }}
|
||||
selector:
|
||||
app.kubernetes.io/name: {{ include "home-assistant.name" . }}
|
||||
|
||||
@@ -34,6 +34,10 @@ service:
|
||||
type: ClusterIP
|
||||
port: 8123
|
||||
portName: api
|
||||
additionalPorts: {}
|
||||
# - name: homematicproxy
|
||||
# port: 2001
|
||||
# targetPort: 2001
|
||||
annotations: {}
|
||||
labels: {}
|
||||
clusterIP: ""
|
||||
@@ -44,6 +48,7 @@ service:
|
||||
loadBalancerIP: ""
|
||||
loadBalancerSourceRanges: []
|
||||
# nodePort: 30000
|
||||
publishNotReadyAddresses: false
|
||||
|
||||
ingress:
|
||||
enabled: false
|
||||
|
||||
Reference in New Issue
Block a user