feat: deploy start using kustomization
All checks were successful
Casa Home Assistant CI/CD Pipeline / deploy (push) Successful in 17s
All checks were successful
Casa Home Assistant CI/CD Pipeline / deploy (push) Successful in 17s
This commit is contained in:
46
deploy/app/statefulset.yaml
Normal file
46
deploy/app/statefulset.yaml
Normal file
@@ -0,0 +1,46 @@
|
||||
apiVersion: apps/v1
|
||||
kind: StatefulSet
|
||||
metadata:
|
||||
name: home-assistant
|
||||
namespace: home-assistant
|
||||
labels:
|
||||
app: home-assistant
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: home-assistant
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: home-assistant
|
||||
spec:
|
||||
dnsPolicy: ClusterFirstWithHostNet # ensures pod uses cluster DNS (CoreDNS) for service discovery even with host networking
|
||||
hostNetwork: true
|
||||
nodeName: casa # force deploy to master node cluster
|
||||
tolerations:
|
||||
- key: "node-role.kubernetes.io/control-plane" # allow installation on control-plane
|
||||
operator: "Exists"
|
||||
effect: "NoSchedule"
|
||||
containers:
|
||||
- name: home-assistant
|
||||
image: "homeassistant/home-assistant"
|
||||
imagePullPolicy: Always
|
||||
env:
|
||||
- name: TZ
|
||||
value: Europe/Lisbon
|
||||
volumeMounts:
|
||||
- name: home-assistant-config
|
||||
mountPath: /config
|
||||
resources:
|
||||
requests:
|
||||
memory: "256Mi"
|
||||
cpu: "400m"
|
||||
limits:
|
||||
memory: "724Mi"
|
||||
cpu: "1000m"
|
||||
|
||||
volumes:
|
||||
- name: home-assistant-config
|
||||
persistentVolumeClaim:
|
||||
claimName: home-assistant-config
|
||||
Reference in New Issue
Block a user