feat: migrate to namespace home-automation

This commit is contained in:
auricom
2021-07-22 16:39:13 +02:00
parent eb8d2ccd4a
commit 477df28686
24 changed files with 12 additions and 193 deletions

View File

@@ -3,7 +3,7 @@ apiVersion: helm.toolkit.fluxcd.io/v2beta1
kind: HelmRelease kind: HelmRelease
metadata: metadata:
name: emqx name: emqx
namespace: home namespace: home-automation
spec: spec:
interval: 5m interval: 5m
chart: chart:

View File

@@ -3,7 +3,7 @@ apiVersion: helm.toolkit.fluxcd.io/v2beta1
kind: HelmRelease kind: HelmRelease
metadata: metadata:
name: frigate name: frigate
namespace: home namespace: home-automation
spec: spec:
interval: 5m interval: 5m
chart: chart:

View File

@@ -3,7 +3,7 @@ apiVersion: v1
kind: PersistentVolumeClaim kind: PersistentVolumeClaim
metadata: metadata:
name: frigate-config name: frigate-config
namespace: home namespace: home-automation
labels: labels:
kasten-io-snapshots: "enable" kasten-io-snapshots: "enable"
spec: spec:

View File

@@ -3,7 +3,7 @@ apiVersion: helm.toolkit.fluxcd.io/v2beta1
kind: HelmRelease kind: HelmRelease
metadata: metadata:
name: home-assistant name: home-assistant
namespace: home namespace: home-automation
spec: spec:
interval: 5m interval: 5m
chart: chart:

View File

@@ -3,7 +3,7 @@ apiVersion: v1
kind: PersistentVolumeClaim kind: PersistentVolumeClaim
metadata: metadata:
name: hass-config name: hass-config
namespace: home namespace: home-automation
labels: labels:
kasten-io-snapshots: "enable" kasten-io-snapshots: "enable"
spec: spec:

View File

@@ -2,9 +2,7 @@ apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization kind: Kustomization
resources: resources:
- emqx - emqx
- esphome
- frigate - frigate
- home-assistant - home-assistant
- node-red
- zigbee2mqtt - zigbee2mqtt
- zwavejs2mqtt - zwavejs2mqtt

View File

@@ -3,7 +3,7 @@ apiVersion: helm.toolkit.fluxcd.io/v2beta1
kind: HelmRelease kind: HelmRelease
metadata: metadata:
name: zigbee2mqtt name: zigbee2mqtt
namespace: home namespace: home-automation
spec: spec:
interval: 5m interval: 5m
chart: chart:

View File

@@ -3,7 +3,7 @@ apiVersion: v1
kind: PersistentVolumeClaim kind: PersistentVolumeClaim
metadata: metadata:
name: zigbee2mqtt-config name: zigbee2mqtt-config
namespace: home namespace: home-automation
labels: labels:
kasten-io-snapshots: "enable" kasten-io-snapshots: "enable"
spec: spec:

View File

@@ -3,7 +3,7 @@ apiVersion: helm.toolkit.fluxcd.io/v2beta1
kind: HelmRelease kind: HelmRelease
metadata: metadata:
name: zwavejs2mqtt name: zwavejs2mqtt
namespace: home namespace: home-automation
spec: spec:
releaseName: zwavejs2mqtt releaseName: zwavejs2mqtt
interval: 5m interval: 5m

View File

@@ -3,7 +3,7 @@ apiVersion: v1
kind: PersistentVolumeClaim kind: PersistentVolumeClaim
metadata: metadata:
name: zwavejs2mqtt-config name: zwavejs2mqtt-config
namespace: home namespace: home-automation
labels: labels:
kasten-io-snapshots: "enable" kasten-io-snapshots: "enable"
spec: spec:

View File

@@ -1,52 +0,0 @@
---
apiVersion: helm.toolkit.fluxcd.io/v2beta1
kind: HelmRelease
metadata:
name: esphome
namespace: home
spec:
releaseName: esphome
interval: 5m
chart:
spec:
# renovate: registryUrl=https://k8s-at-home.com/charts/
chart: esphome
version: 7.3.0
sourceRef:
kind: HelmRepository
name: k8s-at-home-charts
namespace: flux-system
interval: 5m
values:
image:
repository: esphome/esphome
tag: 1.20.0
env:
TZ: "Europe/Paris"
ESPHOME_DASHBOARD_USE_PING: true
hostNetwork: true
dnsPolicy: ClusterFirstWithHostNet
ingress:
main:
enabled: true
annotations:
kubernetes.io/ingress.class: "nginx"
nginx.ingress.kubernetes.io/auth-url: "http://authelia.networking.svc.cluster.local/api/verify"
nginx.ingress.kubernetes.io/auth-signin: "https://login.${SECRET_CLUSTER_DOMAIN}/"
hosts:
- host: esphome.${SECRET_CLUSTER_DOMAIN}
paths:
- path: /
pathType: Prefix
tls:
- hosts:
- "esphome.${SECRET_CLUSTER_DOMAIN}"
service:
main:
annotations:
prometheus.io/probe: "true"
prometheus.io/protocol: http
persistence:
config:
enabled: true
existingClaim: esphome-config

View File

@@ -1,15 +0,0 @@
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: esphome-config
namespace: home
labels:
kasten-io-snapshots: "enable"
spec:
accessModes:
- ReadWriteOnce
storageClassName: rook-ceph-block
resources:
requests:
storage: 10Gi

View File

@@ -1,87 +0,0 @@
---
apiVersion: helm.toolkit.fluxcd.io/v2beta1
kind: HelmRelease
metadata:
name: node-red
namespace: home
spec:
releaseName: node-red
interval: 5m
chart:
spec:
# renovate: registryUrl=https://k8s-at-home.com/charts/
chart: node-red
version: 8.1.0
sourceRef:
kind: HelmRepository
name: k8s-at-home-charts
namespace: flux-system
interval: 5m
values:
image:
repository: nodered/node-red
tag: 2.0.2-12-minimal
env:
TZ: "Europe/Paris"
NODE_RED_ENABLE_PROJECTS: "true"
NODE_RED_ENABLE_SAFE_MODE: "false"
podSecurityContext:
runAsUser: 1000
runAsGroup: 1000
fsGroup: 1000
persistence:
data:
enabled: true
mountPath: /data
existingClaim: node-red-config
service:
main:
annotations:
prometheus.io/probe: "true"
prometheus.io/protocol: "http"
ingress:
main:
enabled: true
annotations:
kubernetes.io/ingress.class: "nginx"
nginx.ingress.kubernetes.io/auth-url: "http://authelia.networking.svc.cluster.local/api/verify"
nginx.ingress.kubernetes.io/auth-signin: "https://login.${SECRET_CLUSTER_DOMAIN}/"
hosts:
- host: node-red.${SECRET_CLUSTER_DOMAIN}
paths:
- path: /
pathType: Prefix
tls:
- hosts:
- node-red.${SECRET_CLUSTER_DOMAIN}
addons:
codeserver:
enabled: true
image:
repository: codercom/code-server
tag: 3.10.2
workingDir: "/data/projects"
args:
- --auth
- "none"
- --user-data-dir
- "/data/projects/.vscode"
- --extensions-dir
- "/data/projects/.vscode"
ingress:
enabled: true
annotations:
kubernetes.io/ingress.class: "nginx"
nginx.ingress.kubernetes.io/auth-url: "http://authelia.networking.svc.cluster.local/api/verify"
nginx.ingress.kubernetes.io/auth-signin: "https://login.${SECRET_CLUSTER_DOMAIN}/"
hosts:
- host: node-red-config.${SECRET_CLUSTER_DOMAIN}
paths:
- path: /
pathType: Prefix
tls:
- hosts:
- node-red-config.${SECRET_CLUSTER_DOMAIN}
volumeMounts:
- name: data
mountPath: /data

View File

@@ -1,15 +0,0 @@
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: node-red-config
namespace: home
labels:
kasten-io-snapshots: "enable"
spec:
accessModes:
- ReadWriteOnce
storageClassName: rook-ceph-block
resources:
requests:
storage: 10Gi

View File

@@ -1,5 +0,0 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- helm-release.yaml
- volume.yaml

View File

@@ -1,5 +0,0 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- helm-release.yaml
- volume.yaml

View File

@@ -3,7 +3,7 @@ kind: Kustomization
resources: resources:
- data - data
- development - development
- home - home-automation
- kasten-io - kasten-io
- media - media
- monitoring - monitoring

View File

@@ -2,4 +2,4 @@
apiVersion: v1 apiVersion: v1
kind: Namespace kind: Namespace
metadata: metadata:
name: home name: home-automation

View File

@@ -7,7 +7,7 @@ resources:
- development.yaml - development.yaml
- falco-system.yaml - falco-system.yaml
- flux-system.yaml - flux-system.yaml
- home.yaml - home-automation.yaml
- kasten-io.yaml - kasten-io.yaml
- kube-system.yaml - kube-system.yaml
- media.yaml - media.yaml