add next round
This commit is contained in:
55
apps/home-assistant/home-assistance-deploy.yaml
Normal file
55
apps/home-assistant/home-assistance-deploy.yaml
Normal file
@@ -0,0 +1,55 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
labels:
|
||||
app: home-assistants
|
||||
name: home-assistants-deployment
|
||||
namespace: default
|
||||
spec:
|
||||
progressDeadlineSeconds: 600
|
||||
replicas: 1
|
||||
revisionHistoryLimit: 10
|
||||
selector:
|
||||
matchLabels:
|
||||
app: home-assistants
|
||||
strategy:
|
||||
rollingUpdate:
|
||||
maxSurge: 25%
|
||||
maxUnavailable: 25%
|
||||
type: RollingUpdate
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: home-assistants
|
||||
spec:
|
||||
containers:
|
||||
- image: lscr.io/linuxserver/homeassistant:latest
|
||||
imagePullPolicy: Always
|
||||
name: home-assistants
|
||||
env:
|
||||
- name: TZ
|
||||
value: Etcd/New_York
|
||||
ports:
|
||||
- containerPort: 8123
|
||||
protocol: TCP
|
||||
resources:
|
||||
requests:
|
||||
akri.sh/akri-ha-insteon: "1"
|
||||
akri.sh/akri-ha-zigbee: "1"
|
||||
limits:
|
||||
akri.sh/akri-ha-insteon: "1"
|
||||
akri.sh/akri-ha-zigbee: "1"
|
||||
terminationMessagePath: /dev/termination-log
|
||||
terminationMessagePolicy: File
|
||||
volumeMounts:
|
||||
- mountPath: /config
|
||||
name: home-assistants-config
|
||||
dnsPolicy: ClusterFirst
|
||||
restartPolicy: Always
|
||||
schedulerName: default-scheduler
|
||||
securityContext: {}
|
||||
terminationGracePeriodSeconds: 30
|
||||
volumes:
|
||||
- name: home-assistants-config
|
||||
persistentVolumeClaim:
|
||||
claimName: home-assistants-config
|
||||
25
apps/home-assistant/home-assistance-ingress.yaml
Normal file
25
apps/home-assistant/home-assistance-ingress.yaml
Normal file
@@ -0,0 +1,25 @@
|
||||
apiVersion: networking.k8s.io/v1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
annotations:
|
||||
acme.cert-manager.io/http01-edit-in-place: "true"
|
||||
cert-manager.io/issuer: letsencrypt-prod
|
||||
kubernetes.io/ingress.class: nginx
|
||||
name: home-assistants-ingress
|
||||
namespace: default
|
||||
spec:
|
||||
rules:
|
||||
- host: ha.lilpenguins.com
|
||||
http:
|
||||
paths:
|
||||
- backend:
|
||||
service:
|
||||
name: home-assistants-service
|
||||
port:
|
||||
number: 7123
|
||||
path: /
|
||||
pathType: Prefix
|
||||
tls:
|
||||
- hosts:
|
||||
- ha.lilpenguins.com
|
||||
secretName: home-assistants-tls-prod
|
||||
12
apps/home-assistant/home-assistance-service.yaml
Normal file
12
apps/home-assistant/home-assistance-service.yaml
Normal file
@@ -0,0 +1,12 @@
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: home-assistants-service
|
||||
spec:
|
||||
ports:
|
||||
- port: 7123
|
||||
targetPort: 8123
|
||||
name: web
|
||||
selector:
|
||||
app: home-assistants
|
||||
12
apps/home-assistant/home-assistance-storage.yaml
Normal file
12
apps/home-assistant/home-assistance-storage.yaml
Normal file
@@ -0,0 +1,12 @@
|
||||
apiVersion: v1
|
||||
kind: PersistentVolumeClaim
|
||||
metadata:
|
||||
name: home-assistants-config
|
||||
namespace: default
|
||||
spec:
|
||||
storageClassName: synology-iscsi-storage-custom
|
||||
accessModes:
|
||||
- ReadWriteMany
|
||||
resources:
|
||||
requests:
|
||||
storage: 5Gi
|
||||
Reference in New Issue
Block a user