add next round

This commit is contained in:
Chris Richardson
2025-01-24 10:29:28 -05:00
parent 19f889a82a
commit 745ed8cfa9
22 changed files with 671 additions and 0 deletions

View 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

View 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

View 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

View 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