73 lines
2.2 KiB
YAML
73 lines
2.2 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: home-assistant
|
|
labels:
|
|
app.kubernetes.io/controller: main
|
|
app.kubernetes.io/instance: home-assistant
|
|
app.kubernetes.io/managed-by: Helm
|
|
app.kubernetes.io/name: home-assistant
|
|
helm.sh/chart: home-assistant-4.6.2
|
|
namespace: home-assistant
|
|
spec:
|
|
revisionHistoryLimit: 3
|
|
replicas: 1
|
|
strategy:
|
|
type: Recreate
|
|
selector:
|
|
matchLabels:
|
|
app.kubernetes.io/controller: main
|
|
app.kubernetes.io/name: home-assistant
|
|
app.kubernetes.io/instance: home-assistant
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app.kubernetes.io/controller: main
|
|
app.kubernetes.io/instance: home-assistant
|
|
app.kubernetes.io/name: home-assistant
|
|
spec:
|
|
enableServiceLinks: false
|
|
serviceAccountName: default
|
|
automountServiceAccountToken: true
|
|
securityContext:
|
|
fsGroup: 1000
|
|
fsGroupChangePolicy: OnRootMismatch
|
|
hostIPC: false
|
|
hostNetwork: false
|
|
hostPID: false
|
|
dnsPolicy: ClusterFirst
|
|
containers:
|
|
- env:
|
|
- name: TZ
|
|
value: America/Chicago
|
|
- name: PUID
|
|
value: "1000"
|
|
- name: PGID
|
|
value: "1000"
|
|
- name: DEFAULT_WORKSPACE
|
|
value: /config
|
|
envFrom:
|
|
- secretRef:
|
|
name: home-assistant-code-server-password-secret
|
|
image: ghcr.io/linuxserver/code-server:4.113.1-ls327@sha256:d8c435da5f062deffc0478de5983b1bb6ffb88fe56ed901bd9f0f8f21d1db837
|
|
name: code-server
|
|
volumeMounts:
|
|
- mountPath: /config/home-assistant
|
|
name: config
|
|
- env:
|
|
- name: TZ
|
|
value: America/Chicago
|
|
image: ghcr.io/home-assistant/home-assistant:2026.4.1@sha256:8848691147f01a6eee7753de2ade21b04d6168fcd2e2a7089f6f84e3b7b86960
|
|
name: main
|
|
resources:
|
|
requests:
|
|
cpu: 1m
|
|
memory: 400Mi
|
|
volumeMounts:
|
|
- mountPath: /config
|
|
name: config
|
|
volumes:
|
|
- name: config
|
|
persistentVolumeClaim:
|
|
claimName: home-assistant-config
|