💥 add all the files
This commit is contained in:
@@ -0,0 +1,63 @@
|
||||
apiVersion: v1
|
||||
kind: Namespace
|
||||
metadata:
|
||||
name: homeassistant
|
||||
---
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: homeassistant
|
||||
namespace: homeassistant
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: homeassistant
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: homeassistant
|
||||
spec:
|
||||
containers:
|
||||
- image: ghcr.io/home-assistant/home-assistant:stable
|
||||
imagePullPolicy: IfNotPresent
|
||||
name: homeassistant
|
||||
ports:
|
||||
- containerPort: 8123
|
||||
name: ha-port
|
||||
env:
|
||||
- name: PORT
|
||||
value: "80"
|
||||
volumeMounts:
|
||||
- name: homeassistant-config
|
||||
mountPath: /config
|
||||
- name: homeassistant-timezone
|
||||
mountPath: /etc/localtime
|
||||
resources:
|
||||
limits:
|
||||
memory: 2048Mi
|
||||
requests:
|
||||
cpu: 100m
|
||||
memory: 500Mi
|
||||
volumes:
|
||||
- name: homeassistant-config
|
||||
hostPath:
|
||||
path: /opt/kubernetes/homeassistant_kube/config/
|
||||
- name: homeassistant-timezone
|
||||
hostPath:
|
||||
path: /etc/localtime
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: homeassistant
|
||||
namespace: homeassistant
|
||||
spec:
|
||||
ports:
|
||||
- port: 8123
|
||||
targetPort: ha-port
|
||||
protocol: TCP
|
||||
# nodePort: 30009
|
||||
# type: NodePort
|
||||
selector:
|
||||
app: homeassistant
|
||||
Reference in New Issue
Block a user