feat(manifests): Add base configuration
This commit is contained in:
parent
e95b8c372b
commit
9892d4bc2e
29
manifests/database.yaml
Normal file
29
manifests/database.yaml
Normal 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
22
manifests/deployment.yaml
Normal 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
|
5
manifests/kustomization.yaml
Normal file
5
manifests/kustomization.yaml
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
|
kind: Kustomization
|
||||||
|
|
||||||
|
resources:
|
||||||
|
- deployment.yaml
|
4
manifests/namespace.yaml
Normal file
4
manifests/namespace.yaml
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: Namespace
|
||||||
|
metadata:
|
||||||
|
name: home-automation
|
Loading…
Reference in New Issue
Block a user