mirror of
https://gitlab.com/shouptech/flux.git
synced 2026-02-03 14:49:44 +00:00
Install hass
This commit is contained in:
parent
6319bd9e7d
commit
5d9092e683
1 changed files with 79 additions and 0 deletions
79
workloads/hass.yml
Normal file
79
workloads/hass.yml
Normal file
|
|
@ -0,0 +1,79 @@
|
|||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: hass
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: hass
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: hass
|
||||
spec:
|
||||
containers:
|
||||
- image: registry.gitlab.com/shouptech/home-assistant:0.104.3
|
||||
imagePullPolicy: IfNotPresent
|
||||
name: hass
|
||||
ports:
|
||||
- containerPort: 8123
|
||||
name: hass-http
|
||||
volumeMounts:
|
||||
- mountPath: /config
|
||||
name: hass-config
|
||||
- mountPath: /etc/localtime
|
||||
name: localtime
|
||||
readOnly: true
|
||||
- mountPath: /snaps
|
||||
name: hass-snaps
|
||||
livenessProbe:
|
||||
httpGet:
|
||||
path: /
|
||||
port: hass-http
|
||||
initialDelaySeconds: 60
|
||||
periodSeconds: 30
|
||||
timeoutSeconds: 15
|
||||
successThreshold: 1
|
||||
failureThreshold: 6
|
||||
volumes:
|
||||
- name: hass-config
|
||||
hostPath:
|
||||
path: /opt/hass/config
|
||||
type: Directory
|
||||
- name: hass-snaps
|
||||
hostPath:
|
||||
path: /opt/hass/snaps
|
||||
type: Directory
|
||||
- name: localtime
|
||||
hostPath:
|
||||
path: /etc/localtime
|
||||
type: File
|
||||
|
||||
---
|
||||
kind: Service
|
||||
apiVersion: v1
|
||||
metadata:
|
||||
name: hass
|
||||
spec:
|
||||
selector:
|
||||
app: hass
|
||||
ports:
|
||||
- protocol: TCP
|
||||
port: 80
|
||||
targetPort: hass-http
|
||||
name: http
|
||||
---
|
||||
apiVersion: networking.k8s.io/v1beta1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
name: hass
|
||||
spec:
|
||||
rules:
|
||||
- host: hass.shoup.io
|
||||
http:
|
||||
paths:
|
||||
- backend:
|
||||
serviceName: hass
|
||||
servicePort: http
|
||||
path: /
|
||||
Loading…
Add table
Reference in a new issue