Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add home-assistant with basic configuration #162

Merged
merged 1 commit into from
Nov 14, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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

This file was deleted.

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

This file was deleted.