Skip to content

Commit

Permalink
Add home-assistant with basic configuration (#162)
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Fornaro <[email protected]>
  • Loading branch information
xunholy authored Nov 14, 2020
1 parent 30f083b commit 59ba4f3
Show file tree
Hide file tree
Showing 10 changed files with 128 additions and 50 deletions.
36 changes: 36 additions & 0 deletions cluster/home-system/home-assistant/home-assistant.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
---
apiVersion: helm.toolkit.fluxcd.io/v2beta1
kind: HelmRelease
metadata:
name: home-assistant
namespace: home-system
spec:
interval: 5m
chart:
spec:
chart: home-assistant
version: '>=2.6.0 <3.0.0'
sourceRef:
kind: HelmRepository
name: k8s-at-home-charts
namespace: flux-system
interval: 10m
test:
enable: false # Enable helm test
install:
remediation: # perform remediation when helm install fails
retries: 3
upgrade:
remediation: # perform remediation when helm upgrade fails
retries: 3
remediateLastFailure: true # remediate the last failure, when no retries remain
cleanupOnFail: true
rollback:
timeout: 10m
recreate: true
cleanupOnFail: true
values:
persistence:
enabled: true
size: 5Gi
storageClass: openebs-cstor-sparse
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,19 @@
apiVersion: networking.istio.io/v1alpha3
kind: VirtualService
metadata:
name: grafana
namespace: observability
name: home-assistant
namespace: home-system
annotations:
external-dns.alpha.kubernetes.io/target: raspbernetes.com
spec:
hosts:
- 'grafana.raspbernetes.com'
- 'home-assistant.raspbernetes.com'
gateways:
- istio-system/istio-system-ingress-gateway
http:
- match:
- port: 443
route:
- route:
- destination:
port:
number: 80
host: grafana.observability.svc.cluster.local
number: 8123
host: home-assistant.home-system.svc.cluster.local
weight: 100
7 changes: 7 additions & 0 deletions cluster/home-system/namespace.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
apiVersion: v1
kind: Namespace
metadata:
name: home-system
labels:
namespace: home-system
15 changes: 15 additions & 0 deletions cluster/home-system/networkpolicy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
name: default-allow-all
namespace: home-system
spec:
podSelector: {}
ingress:
- {}
egress:
- {}
policyTypes:
- Ingress
- Egress
File renamed without changes.
File renamed without changes.
63 changes: 63 additions & 0 deletions cluster/observability/kube-prometheus-stack/virtualservice.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
---
apiVersion: networking.istio.io/v1alpha3
kind: VirtualService
metadata:
name: alert-manager
namespace: observability
annotations:
external-dns.alpha.kubernetes.io/target: raspbernetes.com
spec:
hosts:
- 'alert-manager.raspbernetes.com'
gateways:
- istio-system/istio-system-ingress-gateway
http:
- match:
- port: 443
route:
- destination:
port:
number: 9093
host: x-alertmanager.observability.svc.cluster.local
---
apiVersion: networking.istio.io/v1alpha3
kind: VirtualService
metadata:
name: grafana
namespace: observability
annotations:
external-dns.alpha.kubernetes.io/target: raspbernetes.com
spec:
hosts:
- 'grafana.raspbernetes.com'
gateways:
- istio-system/istio-system-ingress-gateway
http:
- match:
- port: 443
route:
- destination:
port:
number: 80
host: grafana.observability.svc.cluster.local
---
apiVersion: networking.istio.io/v1alpha3
kind: VirtualService
metadata:
name: prometheus
namespace: observability
annotations:
external-dns.alpha.kubernetes.io/target: raspbernetes.com
spec:
hosts:
- 'prometheus.raspbernetes.com'
gateways:
- istio-system/istio-system-ingress-gateway
http:
- match:
- port: 443
route:
- destination:
port:
number: 9090
host: x-prometheus.observability.svc.cluster.local
21 changes: 0 additions & 21 deletions cluster/observability/kube-prometheus-stack/vs-alert-manager.yaml

This file was deleted.

21 changes: 0 additions & 21 deletions cluster/observability/kube-prometheus-stack/vs-prometheus.yaml

This file was deleted.

0 comments on commit 59ba4f3

Please sign in to comment.