Compare commits

...

2 Commits

Author SHA1 Message Date
438ceef98b enable switch code server in deployment 2024-02-13 06:57:51 -07:00
0be01806dd fix middleware 2024-02-13 06:41:13 -07:00
4 changed files with 9 additions and 7 deletions

View File

@@ -1,6 +1,6 @@
apiVersion: v2 apiVersion: v2
name: home-assistant name: home-assistant
version: 0.0.4 version: 0.0.6
description: Chart for Home Assistant description: Chart for Home Assistant
keywords: keywords:
- home-automation - home-automation

View File

@@ -4,7 +4,7 @@
Open source home automation that puts local control and privacy first. Powered by a worldwide community of tinkerers and DIY enthusiasts. Perfect to run on a Raspberry Pi or a local server. Open source home automation that puts local control and privacy first. Powered by a worldwide community of tinkerers and DIY enthusiasts. Perfect to run on a Raspberry Pi or a local server.
This chart bootstraps a [Home-Assistant](https://github.com/benphelps/homepage) deployment on a [Kubernetes](https://kubernetes.io) cluster using the [Helm](https://helm.sh) package manager. This chart bootstraps a [Home-Assistant](https://github.com/home-assistant) deployment on a [Kubernetes](https://kubernetes.io) cluster using the [Helm](https://helm.sh) package manager.
## Prerequisites ## Prerequisites

View File

@@ -43,12 +43,12 @@ spec:
{{- with .Values.deployment.envFrom }} {{- with .Values.deployment.envFrom }}
envFrom: envFrom:
{{- toYaml . | nindent 12 }} {{- toYaml . | nindent 12 }}
{{- end }} {{- end }}
volumeMounts: volumeMounts:
- mountPath: /config - mountPath: /config
name: home-assistant-config name: home-assistant-config
resources: resources:
{{- toYaml .Values.deployment.resources | nindent 12 }} {{- toYaml .Values.deployment.resources | nindent 12 }}
livenessProbe: livenessProbe:
tcpSocket: tcpSocket:
port: {{ .Values.service.http.port }} port: {{ .Values.service.http.port }}
@@ -70,6 +70,7 @@ spec:
failureThreshold: 30 failureThreshold: 30
timeoutSeconds: 1 timeoutSeconds: 1
periodSeconds: 5 periodSeconds: 5
{{- if .Values.codeserver.enabled }}
- name: codeserver - name: codeserver
image: "{{ .Values.codeserver.image.repository }}:{{ .Values.codeserver.image.tag }}" image: "{{ .Values.codeserver.image.repository }}:{{ .Values.codeserver.image.tag }}"
imagePullPolicy: {{ .Values.codeserver.image.imagePullPolicy }} imagePullPolicy: {{ .Values.codeserver.image.imagePullPolicy }}
@@ -85,12 +86,13 @@ spec:
{{- with .Values.codeserver.envFrom }} {{- with .Values.codeserver.envFrom }}
envFrom: envFrom:
{{- toYaml . | nindent 12 }} {{- toYaml . | nindent 12 }}
{{- end }} {{- end }}
securityContext: securityContext:
{{- toYaml .Values.codeserver.securityContext | nindent 12 }} {{- toYaml .Values.codeserver.securityContext | nindent 12 }}
volumeMounts: volumeMounts:
- mountPath: /config/home-assistant - mountPath: /config/home-assistant
name: home-assistant-config name: home-assistant-config
{{- end }}
volumes: volumes:
- name: home-assistant-config - name: home-assistant-config
persistentVolumeClaim: persistentVolumeClaim:

View File

@@ -1,4 +1,4 @@
{{- if .Values.ingress.enabled }} {{- if .Values.ingressRoute.enabled }}
apiVersion: traefik.containo.us/v1alpha1 apiVersion: traefik.containo.us/v1alpha1
kind: Middleware kind: Middleware
metadata: metadata:
@@ -13,7 +13,7 @@ metadata:
app.kubernetes.io/managed-by: helm app.kubernetes.io/managed-by: helm
spec: spec:
forwardAuth: forwardAuth:
address: "http://{{ .Values.ingress.authentik.outpost }}.authentik:{{ .Values.ingress.authentik.port }}/outpost.goauthentik.io/auth/traefik" address: "http://{{ .Values.ingressRoute.authentik.outpost }}.authentik:{{ .Values.ingressRoute.authentik.port }}/outpost.goauthentik.io/auth/traefik"
trustForwardHeader: true trustForwardHeader: true
authResponseHeaders: authResponseHeaders:
- X-authentik-username - X-authentik-username