12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- 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:
- 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
|