Merge pull request #403 from 3dwardch3ng/app/home-assistant
remove home-assistant and flight-tracker services
This commit is contained in:
@@ -1,193 +0,0 @@
|
|||||||
apiVersion: apps/v1
|
|
||||||
kind: Deployment
|
|
||||||
metadata:
|
|
||||||
name: flight-tracker
|
|
||||||
namespace: flight-tracker
|
|
||||||
labels:
|
|
||||||
app.kubernetes.io/name: flight-tracker
|
|
||||||
spec:
|
|
||||||
selector:
|
|
||||||
matchLabels:
|
|
||||||
app.kubernetes.io/name: flight-tracker
|
|
||||||
template:
|
|
||||||
metadata:
|
|
||||||
labels:
|
|
||||||
app.kubernetes.io/name: flight-tracker
|
|
||||||
spec:
|
|
||||||
containers:
|
|
||||||
- name: flight-tracker
|
|
||||||
securityContext:
|
|
||||||
privileged: true
|
|
||||||
image: edeedeeed/flight-tracker:sha-9552429
|
|
||||||
ports:
|
|
||||||
- protocol: TCP
|
|
||||||
containerPort: 80
|
|
||||||
name: 80-tcp
|
|
||||||
- protocol: TCP
|
|
||||||
containerPort: 8504
|
|
||||||
name: 8504-tcp
|
|
||||||
- protocol: TCP
|
|
||||||
containerPort: 8754
|
|
||||||
name: 8754-tcp
|
|
||||||
- protocol: TCP
|
|
||||||
containerPort: 8080
|
|
||||||
name: 8080-tcp
|
|
||||||
- protocol: TCP
|
|
||||||
containerPort: 30001
|
|
||||||
name: 30001-tcp
|
|
||||||
- protocol: TCP
|
|
||||||
containerPort: 30002
|
|
||||||
name: 30002-tcp
|
|
||||||
- protocol: TCP
|
|
||||||
containerPort: 30003
|
|
||||||
name: 30003-tcp
|
|
||||||
- protocol: TCP
|
|
||||||
containerPort: 30004
|
|
||||||
name: 30004-tcp
|
|
||||||
- protocol: TCP
|
|
||||||
containerPort: 30005
|
|
||||||
name: 30005-tcp
|
|
||||||
- protocol: TCP
|
|
||||||
containerPort: 30053
|
|
||||||
name: 30053-tcp
|
|
||||||
- protocol: TCP
|
|
||||||
containerPort: 30054
|
|
||||||
name: 30054-tcp
|
|
||||||
- protocol: TCP
|
|
||||||
containerPort: 30104
|
|
||||||
name: 30104-tcp
|
|
||||||
- protocol: TCP
|
|
||||||
containerPort: 30105
|
|
||||||
name: 30105-tcp
|
|
||||||
- protocol: TCP
|
|
||||||
containerPort: 30106
|
|
||||||
name: 30106-tcp
|
|
||||||
- protocol: TCP
|
|
||||||
containerPort: 30154
|
|
||||||
name: 30154-tcp
|
|
||||||
- protocol: TCP
|
|
||||||
containerPort: 30334
|
|
||||||
name: 30334-tcp
|
|
||||||
- protocol: TCP
|
|
||||||
containerPort: 32004
|
|
||||||
name: 32004-tcp
|
|
||||||
- protocol: TCP
|
|
||||||
containerPort: 32008
|
|
||||||
name: 32008-tcp
|
|
||||||
- protocol: TCP
|
|
||||||
containerPort: 32088
|
|
||||||
name: 32088-tcp
|
|
||||||
- protocol: TCP
|
|
||||||
containerPort: 32457
|
|
||||||
name: 32457-tcp
|
|
||||||
- protocol: TCP
|
|
||||||
containerPort: 32458
|
|
||||||
name: 32458-tcp
|
|
||||||
- protocol: TCP
|
|
||||||
containerPort: 32459
|
|
||||||
name: 32459-tcp
|
|
||||||
env:
|
|
||||||
- name: TZ
|
|
||||||
value: Australia/Sydney
|
|
||||||
volumeMounts:
|
|
||||||
- name: rtl-sdr-dvb
|
|
||||||
mountPath: /dev/dvb
|
|
||||||
- name: rtl-sdr-i2c-13
|
|
||||||
mountPath: /dev/i2c-13
|
|
||||||
- name: rtl-sdr-i2c-14
|
|
||||||
mountPath: /dev/i2c-14
|
|
||||||
- name: rtl-sdr-lirc0
|
|
||||||
mountPath: /dev/lirc0
|
|
||||||
- name: rtl-sdr-media3
|
|
||||||
mountPath: /dev/media3
|
|
||||||
- name: rtl-sdr-swradio0
|
|
||||||
mountPath: /dev/swradio0
|
|
||||||
- name: config-adsbexchange
|
|
||||||
mountPath: /etc/default/adsbexchange
|
|
||||||
- name: config-dump1090-fa
|
|
||||||
mountPath: /etc/default/dump1090-fa
|
|
||||||
- name: config-mlat-client
|
|
||||||
mountPath: /etc/default/mlat-client
|
|
||||||
- name: config-adsbx-uuid
|
|
||||||
mountPath: /usr/local/share/adsbexchange/adsbx-uuid
|
|
||||||
- name: config-fr24feed
|
|
||||||
mountPath: /etc/fr24feed.ini
|
|
||||||
- name: config-pfclient-config
|
|
||||||
mountPath: /etc/pfclient-config.json
|
|
||||||
- name: config-mlat-client
|
|
||||||
mountPath: /etc/piaware.conf
|
|
||||||
- name: config-rbfeeder
|
|
||||||
mountPath: /etc/rbfeeder.ini
|
|
||||||
- name: config-planesplotters-feed
|
|
||||||
mountPath: /etc/planeplotters/feedclient
|
|
||||||
- name: config-planesplotters-uuid
|
|
||||||
mountPath: /etc/planeplotters/uuid
|
|
||||||
volumes:
|
|
||||||
- name: rtl-sdr-dvb
|
|
||||||
hostPath:
|
|
||||||
path: /dev/dvb
|
|
||||||
- name: rtl-sdr-i2c-13
|
|
||||||
hostPath:
|
|
||||||
path: /dev/i2c-13
|
|
||||||
- name: rtl-sdr-i2c-14
|
|
||||||
hostPath:
|
|
||||||
path: /dev/i2c-14
|
|
||||||
- name: rtl-sdr-lirc0
|
|
||||||
hostPath:
|
|
||||||
path: /dev/lirc0
|
|
||||||
- name: rtl-sdr-media3
|
|
||||||
hostPath:
|
|
||||||
path: /dev/media3
|
|
||||||
- name: rtl-sdr-swradio0
|
|
||||||
hostPath:
|
|
||||||
path: /dev/swradio0
|
|
||||||
- name: config-adsbexchange
|
|
||||||
hostPath:
|
|
||||||
path: /mnt/nfs/AppData/flight-tracker/default/adsbexchange
|
|
||||||
type: File
|
|
||||||
- name: config-dump1090-fa
|
|
||||||
hostPath:
|
|
||||||
path: /mnt/nfs/AppData/flight-tracker/default/dump1090-fa
|
|
||||||
type: File
|
|
||||||
- name: config-mlat-client
|
|
||||||
hostPath:
|
|
||||||
path: /mnt/nfs/AppData/flight-tracker/default/mlat-client
|
|
||||||
type: File
|
|
||||||
- name: config-adsbx-uuid
|
|
||||||
hostPath:
|
|
||||||
path: /mnt/nfs/AppData/flight-tracker/adsbx-uuid
|
|
||||||
type: File
|
|
||||||
- name: config-fr24feed
|
|
||||||
hostPath:
|
|
||||||
path: /mnt/nfs/AppData/flight-tracker/fr24feed.ini
|
|
||||||
type: File
|
|
||||||
- name: config-pfclient-config
|
|
||||||
hostPath:
|
|
||||||
path: /mnt/nfs/AppData/flight-tracker/pfclient-config.json
|
|
||||||
type: File
|
|
||||||
- name: config-piaware
|
|
||||||
hostPath:
|
|
||||||
path: /mnt/nfs/AppData/flight-tracker/piaware.conf
|
|
||||||
type: File
|
|
||||||
- name: config-rbfeeder
|
|
||||||
hostPath:
|
|
||||||
path: /mnt/nfs/AppData/flight-tracker/rbfeeder.ini
|
|
||||||
type: File
|
|
||||||
- name: config-planesplotters-feed
|
|
||||||
hostPath:
|
|
||||||
path: /mnt/nfs/AppData/flight-tracker/planespotters/feedclient
|
|
||||||
type: File
|
|
||||||
- name: config-planesplotters-uuid
|
|
||||||
hostPath:
|
|
||||||
path: /mnt/nfs/AppData/flight-tracker/planespotters/uuid
|
|
||||||
type: File
|
|
||||||
affinity:
|
|
||||||
nodeAffinity:
|
|
||||||
preferredDuringSchedulingIgnoredDuringExecution:
|
|
||||||
- weight: 100
|
|
||||||
preference:
|
|
||||||
matchExpressions:
|
|
||||||
- key: kubernetes.io/hostname
|
|
||||||
operator: In
|
|
||||||
values:
|
|
||||||
- rpi5-cluster-node-1
|
|
||||||
@@ -1,41 +0,0 @@
|
|||||||
apiVersion: networking.k8s.io/v1
|
|
||||||
kind: Ingress
|
|
||||||
metadata:
|
|
||||||
name: flight-tracker-ingress
|
|
||||||
namespace: flight-tracker
|
|
||||||
annotations:
|
|
||||||
nginx.ingress.kubernetes.io/ssl-redirect: "false"
|
|
||||||
nginx.ingress.kubernetes.io/use-regex: "true"
|
|
||||||
spec:
|
|
||||||
ingressClassName: nginx
|
|
||||||
rules:
|
|
||||||
- host: "piaware.flight-tracker.cluster.local"
|
|
||||||
http:
|
|
||||||
paths:
|
|
||||||
- pathType: Prefix
|
|
||||||
path: "/"
|
|
||||||
backend:
|
|
||||||
service:
|
|
||||||
name: flight-tracker
|
|
||||||
port:
|
|
||||||
number: 18080
|
|
||||||
- host: "fr24-feed.flight-tracker.cluster.local"
|
|
||||||
http:
|
|
||||||
paths:
|
|
||||||
- pathType: Prefix
|
|
||||||
path: "/"
|
|
||||||
backend:
|
|
||||||
service:
|
|
||||||
name: flight-tracker
|
|
||||||
port:
|
|
||||||
number: 10080
|
|
||||||
- host: "tar1090.flight-tracker.cluster.local"
|
|
||||||
http:
|
|
||||||
paths:
|
|
||||||
- pathType: Prefix
|
|
||||||
path: "/"
|
|
||||||
backend:
|
|
||||||
service:
|
|
||||||
name: flight-tracker
|
|
||||||
port:
|
|
||||||
number: 10080
|
|
||||||
@@ -1,101 +0,0 @@
|
|||||||
apiVersion: v1
|
|
||||||
kind: Service
|
|
||||||
metadata:
|
|
||||||
name: flight-tracker
|
|
||||||
namespace: flight-tracker
|
|
||||||
labels:
|
|
||||||
app.kubernetes.io/name: flight-tracker
|
|
||||||
spec:
|
|
||||||
selector:
|
|
||||||
app.kubernetes.io/name: flight-tracker
|
|
||||||
type: ClusterIP
|
|
||||||
internalTrafficPolicy: Cluster
|
|
||||||
ports:
|
|
||||||
- protocol: TCP
|
|
||||||
port: 10880
|
|
||||||
targetPort: 80
|
|
||||||
name: 10880-tcp
|
|
||||||
- protocol: TCP
|
|
||||||
port: 8504
|
|
||||||
targetPort: 8504
|
|
||||||
name: 8504-tcp
|
|
||||||
- protocol: TCP
|
|
||||||
port: 8754
|
|
||||||
targetPort: 8754
|
|
||||||
name: 8754-tcp
|
|
||||||
- protocol: TCP
|
|
||||||
port: 18080
|
|
||||||
targetPort: 8080
|
|
||||||
name: 18080-tcp
|
|
||||||
- protocol: TCP
|
|
||||||
port: 30001
|
|
||||||
targetPort: 30001
|
|
||||||
name: 30001-tcp
|
|
||||||
- protocol: TCP
|
|
||||||
port: 30002
|
|
||||||
targetPort: 30002
|
|
||||||
name: 30002-tcp
|
|
||||||
- protocol: TCP
|
|
||||||
port: 30003
|
|
||||||
targetPort: 30003
|
|
||||||
name: 30003-tcp
|
|
||||||
- protocol: TCP
|
|
||||||
port: 30004
|
|
||||||
targetPort: 30004
|
|
||||||
name: 30004-tcp
|
|
||||||
- protocol: TCP
|
|
||||||
port: 30005
|
|
||||||
targetPort: 30005
|
|
||||||
name: 30005-tcp
|
|
||||||
- protocol: TCP
|
|
||||||
port: 30053
|
|
||||||
targetPort: 30053
|
|
||||||
name: 30053-tcp
|
|
||||||
- protocol: TCP
|
|
||||||
port: 30054
|
|
||||||
targetPort: 30054
|
|
||||||
name: 30054-tcp
|
|
||||||
- protocol: TCP
|
|
||||||
port: 30104
|
|
||||||
targetPort: 30104
|
|
||||||
name: 30104-tcp
|
|
||||||
- protocol: TCP
|
|
||||||
port: 30105
|
|
||||||
targetPort: 30105
|
|
||||||
name: 30105-tcp
|
|
||||||
- protocol: TCP
|
|
||||||
port: 30106
|
|
||||||
targetPort: 30106
|
|
||||||
name: 30106-tcp
|
|
||||||
- protocol: TCP
|
|
||||||
port: 30154
|
|
||||||
targetPort: 30154
|
|
||||||
name: 30154-tcp
|
|
||||||
- protocol: TCP
|
|
||||||
port: 30334
|
|
||||||
targetPort: 30334
|
|
||||||
name: 30334-tcp
|
|
||||||
- protocol: TCP
|
|
||||||
port: 32004
|
|
||||||
targetPort: 32004
|
|
||||||
name: 32004-tcp
|
|
||||||
- protocol: TCP
|
|
||||||
port: 32008
|
|
||||||
targetPort: 32008
|
|
||||||
name: 32008-tcp
|
|
||||||
- protocol: TCP
|
|
||||||
port: 32088
|
|
||||||
targetPort: 32088
|
|
||||||
name: 32088-tcp
|
|
||||||
- protocol: TCP
|
|
||||||
port: 32457
|
|
||||||
targetPort: 32457
|
|
||||||
name: 32457-tcp
|
|
||||||
- protocol: TCP
|
|
||||||
port: 32458
|
|
||||||
targetPort: 32458
|
|
||||||
name: 32458-tcp
|
|
||||||
- protocol: TCP
|
|
||||||
port: 32459
|
|
||||||
targetPort: 32459
|
|
||||||
name: 32459-tcp
|
|
||||||
@@ -1,18 +0,0 @@
|
|||||||
apiVersion: kustomize.toolkit.fluxcd.io/v1
|
|
||||||
kind: Kustomization
|
|
||||||
metadata:
|
|
||||||
name: flight-tracker
|
|
||||||
namespace: flight-tracker
|
|
||||||
spec:
|
|
||||||
interval: 10m
|
|
||||||
timeout: 1m30s
|
|
||||||
retryInterval: 30s
|
|
||||||
path: ./kubernetes/apps/flight-tracker/app
|
|
||||||
prune: true
|
|
||||||
sourceRef:
|
|
||||||
kind: GitRepository
|
|
||||||
namespace: flux-system
|
|
||||||
name: flux-system
|
|
||||||
dependsOn:
|
|
||||||
- name: repositories
|
|
||||||
namespace: flux-system
|
|
||||||
@@ -1,6 +0,0 @@
|
|||||||
spec:
|
|
||||||
ports:
|
|
||||||
- name: 30001-tcp
|
|
||||||
port: 30001
|
|
||||||
targetPort: 30001
|
|
||||||
protocol: TCP
|
|
||||||
@@ -1,4 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
set -e
|
|
||||||
|
|
||||||
kubectl patch service ingress-nginx-controller -n ingress-nginx --patch "$(cat ingress-nginx-svc-controller-patch.yaml)"
|
|
||||||
@@ -1,36 +0,0 @@
|
|||||||
apiVersion: apps/v1
|
|
||||||
kind: Deployment
|
|
||||||
metadata:
|
|
||||||
name: node-red
|
|
||||||
namespace: home-assistant
|
|
||||||
labels:
|
|
||||||
app.kubernetes.io/name: node-red
|
|
||||||
spec:
|
|
||||||
replicas: 1
|
|
||||||
selector:
|
|
||||||
matchLabels:
|
|
||||||
app: node-red
|
|
||||||
template:
|
|
||||||
metadata:
|
|
||||||
labels:
|
|
||||||
app: node-red
|
|
||||||
spec:
|
|
||||||
containers:
|
|
||||||
- name: node-red
|
|
||||||
image: nodered/node-red:latest
|
|
||||||
ports:
|
|
||||||
- containerPort: 1880
|
|
||||||
name: node-red-ui
|
|
||||||
securityContext:
|
|
||||||
privileged: true
|
|
||||||
volumeMounts:
|
|
||||||
- name: node-red-data
|
|
||||||
mountPath: /data
|
|
||||||
env:
|
|
||||||
- name: TZ
|
|
||||||
value: Australia/Sydney
|
|
||||||
volumes:
|
|
||||||
- name: node-red-data
|
|
||||||
hostPath:
|
|
||||||
path: /mnt/nfs/AppData/home-assistant/node-red
|
|
||||||
type: Directory
|
|
||||||
@@ -1,20 +0,0 @@
|
|||||||
apiVersion: networking.k8s.io/v1
|
|
||||||
kind: Ingress
|
|
||||||
metadata:
|
|
||||||
name: node-red-ingress
|
|
||||||
namespace: home-assistant
|
|
||||||
annotations:
|
|
||||||
nginx.ingress.kubernetes.io/ssl-redirect: "false"
|
|
||||||
nginx.ingress.kubernetes.io/use-regex: "true"
|
|
||||||
spec:
|
|
||||||
rules:
|
|
||||||
- host: node-red.home-assistant.cluster.local
|
|
||||||
http:
|
|
||||||
paths:
|
|
||||||
- pathType: Prefix
|
|
||||||
path: /
|
|
||||||
backend:
|
|
||||||
service:
|
|
||||||
name: node-red
|
|
||||||
port:
|
|
||||||
number: 1880
|
|
||||||
@@ -1,14 +0,0 @@
|
|||||||
apiVersion: v1
|
|
||||||
kind: Service
|
|
||||||
metadata:
|
|
||||||
name: node-red
|
|
||||||
namespace: home-assistant
|
|
||||||
spec:
|
|
||||||
selector:
|
|
||||||
app: node-red
|
|
||||||
type: ClusterIP
|
|
||||||
ports:
|
|
||||||
- name: node-red-ui
|
|
||||||
port: 1880
|
|
||||||
protocol: TCP
|
|
||||||
targetPort: node-red-ui
|
|
||||||
@@ -1,28 +0,0 @@
|
|||||||
apiVersion: apps/v1
|
|
||||||
kind: Deployment
|
|
||||||
metadata:
|
|
||||||
name: home-assistant
|
|
||||||
namespace: home-assistant
|
|
||||||
labels:
|
|
||||||
app.kubernetes.io/name: home-assistant
|
|
||||||
spec:
|
|
||||||
replicas: 1
|
|
||||||
selector:
|
|
||||||
matchLabels:
|
|
||||||
app: home-assistant
|
|
||||||
template:
|
|
||||||
metadata:
|
|
||||||
labels:
|
|
||||||
app: home-assistant
|
|
||||||
spec:
|
|
||||||
containers:
|
|
||||||
- image: homeassistant/home-assistant:2024.7.0b6
|
|
||||||
name: home-assistant
|
|
||||||
volumeMounts:
|
|
||||||
- mountPath: "/config"
|
|
||||||
name: ha-storage
|
|
||||||
volumes:
|
|
||||||
- name: ha-storage
|
|
||||||
hostPath:
|
|
||||||
path: /mnt/nfs/AppData/home-assistant/home-assistant
|
|
||||||
type: Directory
|
|
||||||
@@ -1,20 +0,0 @@
|
|||||||
apiVersion: networking.k8s.io/v1
|
|
||||||
kind: Ingress
|
|
||||||
metadata:
|
|
||||||
name: home-assistant-ingress
|
|
||||||
namespace: home-assistant
|
|
||||||
annotations:
|
|
||||||
nginx.ingress.kubernetes.io/ssl-redirect: "false"
|
|
||||||
nginx.ingress.kubernetes.io/use-regex: "true"
|
|
||||||
spec:
|
|
||||||
rules:
|
|
||||||
- host: home-assistant.cluster.local
|
|
||||||
http:
|
|
||||||
paths:
|
|
||||||
- pathType: Prefix
|
|
||||||
path: /
|
|
||||||
backend:
|
|
||||||
service:
|
|
||||||
name: home-assistant
|
|
||||||
port:
|
|
||||||
number: 8123
|
|
||||||
@@ -1,12 +0,0 @@
|
|||||||
apiVersion: v1
|
|
||||||
kind: Service
|
|
||||||
metadata:
|
|
||||||
name: home-assistant
|
|
||||||
namespace: home-assistant
|
|
||||||
spec:
|
|
||||||
selector:
|
|
||||||
app: home-assistant
|
|
||||||
ports:
|
|
||||||
- protocol: TCP
|
|
||||||
port: 8123
|
|
||||||
name: http
|
|
||||||
@@ -1,31 +0,0 @@
|
|||||||
apiVersion: kustomize.toolkit.fluxcd.io/v1
|
|
||||||
kind: Kustomization
|
|
||||||
metadata:
|
|
||||||
name: home-assistant-core
|
|
||||||
namespace: home-assistant
|
|
||||||
spec:
|
|
||||||
interval: 10m
|
|
||||||
timeout: 1m30s
|
|
||||||
retryInterval: 30s
|
|
||||||
path: ./kubernetes/apps/home-assistant/app/core
|
|
||||||
prune: true
|
|
||||||
sourceRef:
|
|
||||||
kind: GitRepository
|
|
||||||
namespace: flux-system
|
|
||||||
name: flux-system
|
|
||||||
---
|
|
||||||
apiVersion: kustomize.toolkit.fluxcd.io/v1
|
|
||||||
kind: Kustomization
|
|
||||||
metadata:
|
|
||||||
name: home-assistant-addon-node-red
|
|
||||||
namespace: home-assistant
|
|
||||||
spec:
|
|
||||||
interval: 10m
|
|
||||||
timeout: 1m30s
|
|
||||||
retryInterval: 30s
|
|
||||||
path: ./kubernetes/apps/home-assistant/app/add-on/node-red
|
|
||||||
prune: true
|
|
||||||
sourceRef:
|
|
||||||
kind: GitRepository
|
|
||||||
namespace: flux-system
|
|
||||||
name: flux-system
|
|
||||||
@@ -5,9 +5,7 @@ resources:
|
|||||||
- ./capacitor/capacitor.yaml
|
- ./capacitor/capacitor.yaml
|
||||||
- ./code-server/code-server.yaml
|
- ./code-server/code-server.yaml
|
||||||
- ./dokuwiki/dokuwiki.yaml
|
- ./dokuwiki/dokuwiki.yaml
|
||||||
# - ./flight-tracker/flight-tracker.yaml
|
|
||||||
- ./gitea/gitea.yaml
|
- ./gitea/gitea.yaml
|
||||||
- ./home-assistant/home-assistant.yaml
|
|
||||||
- ./homer/homer.yaml
|
- ./homer/homer.yaml
|
||||||
- ./jellyfin/jellyfin.yaml
|
- ./jellyfin/jellyfin.yaml
|
||||||
- ./kavita/kavita.yaml
|
- ./kavita/kavita.yaml
|
||||||
|
|||||||
Reference in New Issue
Block a user