homeassistant.yaml 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. ---
  2. apiVersion: apps/v1
  3. kind: Deployment
  4. metadata:
  5. name: homeassistant
  6. namespace: homeassistant
  7. spec:
  8. selector:
  9. matchLabels:
  10. app: homeassistant
  11. replicas: 1
  12. template:
  13. metadata:
  14. labels:
  15. app: homeassistant
  16. spec:
  17. hostNetwork: true
  18. containers:
  19. - name: homeassistant
  20. image: homeassistant/home-assistant:2023.10.1
  21. ports:
  22. - containerPort: 8123
  23. name: http-web-svc
  24. volumeMounts:
  25. - mountPath: "/config"
  26. name: data
  27. volumes:
  28. - name: data
  29. persistentVolumeClaim:
  30. claimName: homeassistant-pvc
  31. ---
  32. apiVersion: v1
  33. kind: Service
  34. metadata:
  35. name: homeassistant-service
  36. namespace: homeassistant
  37. spec:
  38. selector:
  39. app: homeassistant
  40. type: ClusterIP
  41. ports:
  42. - name: homeassistant-web-port
  43. protocol: TCP
  44. port: 8123
  45. targetPort: http-web-svc
  46. ---
  47. apiVersion: traefik.containo.us/v1alpha1
  48. kind: IngressRoute
  49. metadata:
  50. name: homeassistant
  51. namespace: homeassistant
  52. spec:
  53. entryPoints:
  54. - websecure
  55. routes:
  56. - kind: Rule
  57. match: Host(`homeassistant.jibby.org`)
  58. services:
  59. - kind: Service
  60. name: homeassistant-service
  61. port: 8123