123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- apiVersion: apps/v1
- kind: Deployment
- metadata:
- name: homeassistant
- spec:
- replicas: 1
- selector:
- matchLabels:
- name: homeassistant
- template:
- metadata:
- labels:
- name: homeassistant
- spec:
- affinity:
- nodeAffinity:
- requiredDuringSchedulingIgnoredDuringExecution:
- nodeSelectorTerms:
- - matchExpressions:
- - key: net
- operator: In
- values:
- - local
- hostNetwork: true
- containers:
- - name: homeassistant
- image: ghcr.io/home-assistant/home-assistant:stable
- imagePullPolicy: "Always"
- env:
- - name: TZ
- value: "Europe/Zurich"
- volumeMounts:
- - name: homeassistant
- mountPath: /config
- ports:
- - containerPort: 8123
- name: http
- volumes:
- - name: homeassistant
- persistentVolumeClaim:
- claimName: homeassistant
- ---
- apiVersion: v1
- kind: Service
- metadata:
- name: homeassistant
- spec:
- ipFamilyPolicy: PreferDualStack
- type: NodePort
- selector:
- name: homeassistant
- ports:
- - protocol: TCP
- port: 8123
- targetPort: http
- nodePort: 31823
- name: http
|