home assistant manual deployment
This commit is contained in:
		
							
								
								
									
										37
									
								
								apps/homeassistant/deployment.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										37
									
								
								apps/homeassistant/deployment.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,37 @@ | |||||||
|  |  | ||||||
|  | apiVersion: apps/v1 | ||||||
|  | kind: Deployment | ||||||
|  | metadata: | ||||||
|  |   name: homeassistant | ||||||
|  | spec: | ||||||
|  |   replicas: 1 | ||||||
|  |   selector: | ||||||
|  |     matchLabels: | ||||||
|  |       app: homeassistant | ||||||
|  |   template: | ||||||
|  |     metadata: | ||||||
|  |       labels: | ||||||
|  |         app: homeassistant | ||||||
|  |     spec: | ||||||
|  |       containers: | ||||||
|  |         - name: homeassistant | ||||||
|  |           image: homeassistant/home-assistant:2023.11 | ||||||
|  |           ports: | ||||||
|  |             - containerPort: 8123 | ||||||
|  |           env: | ||||||
|  |           - name: TZ | ||||||
|  |             value: Europe/Berlin | ||||||
|  |           volumeMounts: | ||||||
|  |             - name: config | ||||||
|  |               mountPath: /config | ||||||
|  |           resources: | ||||||
|  |             requests: | ||||||
|  |               cpu: "100m" | ||||||
|  |               memory: "200Mi" | ||||||
|  |             limits: | ||||||
|  |               cpu: "2" | ||||||
|  |               memory: "1Gi" | ||||||
|  |       volumes: | ||||||
|  |         - name: config | ||||||
|  |           persistentVolumeClaim: | ||||||
|  |             claimName: homeassistant-nfs | ||||||
| @@ -11,7 +11,7 @@ spec: | |||||||
|         - name: homeassistant-websocket |         - name: homeassistant-websocket | ||||||
|       kind: Rule |       kind: Rule | ||||||
|       services: |       services: | ||||||
|         - name: homeassistant-home-assistant |         - name: homeassistant-web | ||||||
|           port: 8123 |           port: 8123 | ||||||
|   tls: |   tls: | ||||||
|     certResolver: default-tls |     certResolver: default-tls | ||||||
|   | |||||||
| @@ -4,13 +4,15 @@ resources: | |||||||
| - namespace.yaml | - namespace.yaml | ||||||
| - ingress.yaml | - ingress.yaml | ||||||
| - pvc.yaml | - pvc.yaml | ||||||
|  | - service.yaml | ||||||
|  | - deployment.yaml | ||||||
|  |  | ||||||
| namespace: homeassistant | namespace: homeassistant | ||||||
|  |  | ||||||
|  |  | ||||||
| helmCharts: | # helmCharts: | ||||||
|   - name: home-assistant | #   - name: home-assistant | ||||||
|     releaseName: homeassistant | #     releaseName: homeassistant | ||||||
|     version: 13.4.2 | #     version: 13.4.2 | ||||||
|     valuesFile: values.yaml | #     valuesFile: values.yaml | ||||||
|     repo: https://k8s-at-home.com/charts/ | #     repo: https://k8s-at-home.com/charts/ | ||||||
|   | |||||||
| @@ -11,7 +11,7 @@ spec: | |||||||
|   accessModes: |   accessModes: | ||||||
|     - ReadWriteOnce |     - ReadWriteOnce | ||||||
|   nfs: |   nfs: | ||||||
|     path: /export/kluster/homeassistant |     path: /kluster/homeassistant | ||||||
|     server: 192.168.1.157 |     server: 192.168.1.157 | ||||||
| --- | --- | ||||||
| apiVersion: v1 | apiVersion: v1 | ||||||
|   | |||||||
							
								
								
									
										10
									
								
								apps/homeassistant/service.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										10
									
								
								apps/homeassistant/service.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,10 @@ | |||||||
|  | apiVersion: v1 | ||||||
|  | kind: Service | ||||||
|  | metadata: | ||||||
|  |   name: homeassistant-web | ||||||
|  | spec: | ||||||
|  |   selector: | ||||||
|  |     app: homeassistant | ||||||
|  |   ports: | ||||||
|  |   - port: 8123 | ||||||
|  |     targetPort: 8123 | ||||||
| @@ -6,7 +6,7 @@ spec: | |||||||
|   capacity: |   capacity: | ||||||
|     storage: "1Mi" |     storage: "1Mi" | ||||||
|   accessModes: |   accessModes: | ||||||
|     - ReadOnlyOnce |     - ReadOnlyMany | ||||||
|   nfs: |   nfs: | ||||||
|     path: /kluster/ |     path: /kluster/ | ||||||
|     server: 192.168.1.157 |     server: 192.168.1.157 | ||||||
| @@ -18,7 +18,7 @@ metadata: | |||||||
| spec: | spec: | ||||||
|   storageClassName: "" |   storageClassName: "" | ||||||
|   accessModes: |   accessModes: | ||||||
|     - ReadOnlyOnce |     - ReadOnlyMany | ||||||
|   resources: |   resources: | ||||||
|     requests: |     requests: | ||||||
|       storage: "1Mi" |       storage: "1Mi" | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user