feat(manifests): Add base configuration

This commit is contained in:
Tanguy Herbron 2023-05-07 13:57:58 +02:00
parent e95b8c372b
commit 9892d4bc2e
4 changed files with 60 additions and 0 deletions

29
manifests/database.yaml Normal file
View File

@ -0,0 +1,29 @@
kind: "postgresql"
apiVersion: "acid.zalan.do/v1"
metadata:
name: "homeassistant"
nameapce: "home-automation"
labels:
teams: acid
spec:
teamId: "acid"
postgresql:
version: "15"
numberOfInstances: 1
volume:
size: "1Gi"
storageClass: "flat-storage-class"
users:
hassio: []
databases:
hassio: hassio
allowedSourceRanges:
resources:
requests:
cpu: 100m
memory: 100mi
limits:
cpu: 500m
memory: 500mi

22
manifests/deployment.yaml Normal file
View File

@ -0,0 +1,22 @@
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: homeassistant
name: homeassistant
namespace: home-automation
spec:
selector:
matchLabels:
app: homeassistant
template:
metadata:
labels:
app: homeassistant
spec:
containers:
- name: homeassistant
image: ghcr.io/home-assistant/home-assistant:stable
volumeMounts:
- mountPath: "/config"
name: hassio-storage

View File

@ -0,0 +1,5 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- deployment.yaml

4
manifests/namespace.yaml Normal file
View File

@ -0,0 +1,4 @@
apiVersion: v1
kind: Namespace
metadata:
name: home-automation