Last active
          September 6, 2022 08:59 
        
      - 
      
- 
        Save dalethestirling/4afce63eb152c8763bb7b40260bcac39 to your computer and use it in GitHub Desktop. 
    Kubernetes files for Home assistant on Kubernetes
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | apiVersion: apps/v1 | |
| kind: Deployment | |
| metadata: | |
| labels: | |
| app: homeassistant | |
| name: homeassistant | |
| namespace: homeassistant | |
| spec: | |
| selector: | |
| matchLabels: | |
| app: homeassistant | |
| template: | |
| metadata: | |
| labels: | |
| app: homeassistant | |
| spec: | |
| containers: | |
| - image: ghcr.io/home-assistant/home-assistant:stable | |
| imagePullPolicy: Always | |
| name: homeassistant | |
| env: | |
| - name: TZ | |
| value: "Australia/Brisbane" | |
| securityContext: | |
| privileged: true | |
| ports: | |
| - containerPort: 8123 | |
| protocol: TCP | |
| volumeMounts: | |
| - name: config | |
| mountPath: '/config' | |
| - name: localtime | |
| mountPath: '/etc/localtime' | |
| readOnly: true | |
| resources: | |
| requests: | |
| memory: 128Mi | |
| cpu: 100m | |
| limits: | |
| memory: 2Gi | |
| cpu: 1 | |
| restartPolicy: Always | |
| volumes: | |
| - name: config | |
| hostPath: | |
| path: /opt/volumes/homeassistant/config | |
| - name: localtime | |
| hostPath: | |
| path: /etc/localtime | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | kind: Namespace | |
| apiVersion: v1 | |
| metadata: | |
| name: homeassistant | |
| labels: | |
| name: homeassistant | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | apiVersion: v1 | |
| kind: Service | |
| metadata: | |
| labels: | |
| app: homeassistant | |
| name: homeassistant | |
| namespace: homeassistant | |
| spec: | |
| ports: | |
| - port: 8123 | |
| nodePort: 8123 | |
| name: port8123 | |
| protocol: TCP | |
| selector: | |
| app: homeassistant | |
| type: LoadBalancer | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment