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 | ||||
|       kind: Rule | ||||
|       services: | ||||
|         - name: homeassistant-home-assistant | ||||
|         - name: homeassistant-web | ||||
|           port: 8123 | ||||
|   tls: | ||||
|     certResolver: default-tls | ||||
|   | ||||
| @@ -4,13 +4,15 @@ resources: | ||||
| - namespace.yaml | ||||
| - ingress.yaml | ||||
| - pvc.yaml | ||||
| - service.yaml | ||||
| - deployment.yaml | ||||
|  | ||||
| namespace: homeassistant | ||||
|  | ||||
|  | ||||
| helmCharts: | ||||
|   - name: home-assistant | ||||
|     releaseName: homeassistant | ||||
|     version: 13.4.2 | ||||
|     valuesFile: values.yaml | ||||
|     repo: https://k8s-at-home.com/charts/ | ||||
| # helmCharts: | ||||
| #   - name: home-assistant | ||||
| #     releaseName: homeassistant | ||||
| #     version: 13.4.2 | ||||
| #     valuesFile: values.yaml | ||||
| #     repo: https://k8s-at-home.com/charts/ | ||||
|   | ||||
| @@ -11,7 +11,7 @@ spec: | ||||
|   accessModes: | ||||
|     - ReadWriteOnce | ||||
|   nfs: | ||||
|     path: /export/kluster/homeassistant | ||||
|     path: /kluster/homeassistant | ||||
|     server: 192.168.1.157 | ||||
| --- | ||||
| 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: | ||||
|     storage: "1Mi" | ||||
|   accessModes: | ||||
|     - ReadOnlyOnce | ||||
|     - ReadOnlyMany | ||||
|   nfs: | ||||
|     path: /kluster/ | ||||
|     server: 192.168.1.157 | ||||
| @@ -18,7 +18,7 @@ metadata: | ||||
| spec: | ||||
|   storageClassName: "" | ||||
|   accessModes: | ||||
|     - ReadOnlyOnce | ||||
|     - ReadOnlyMany | ||||
|   resources: | ||||
|     requests: | ||||
|       storage: "1Mi" | ||||
|   | ||||
		Reference in New Issue
	
	Block a user