remove frigate config as config is now in data volume [ci skip]
This commit is contained in:
parent
83030688e7
commit
5b2bb720af
1 changed files with 108 additions and 100 deletions
|
|
@ -19,103 +19,106 @@ module "tls_secret" {
|
||||||
namespace = "frigate"
|
namespace = "frigate"
|
||||||
tls_secret_name = var.tls_secret_name
|
tls_secret_name = var.tls_secret_name
|
||||||
}
|
}
|
||||||
resource "kubernetes_config_map" "config" {
|
|
||||||
metadata {
|
|
||||||
name = "config"
|
|
||||||
namespace = "frigate"
|
|
||||||
|
|
||||||
labels = {
|
## Disabled as config is now in data volume
|
||||||
app = "frigate"
|
#
|
||||||
}
|
# resource "kubernetes_config_map" "config" {
|
||||||
annotations = {
|
# metadata {
|
||||||
"reloader.stakater.com/match" = "true"
|
# name = "config"
|
||||||
}
|
# namespace = "frigate"
|
||||||
}
|
|
||||||
|
|
||||||
data = {
|
# labels = {
|
||||||
# Actual mail settings
|
# app = "frigate"
|
||||||
"config.yml" = <<-EOT
|
# }
|
||||||
mqtt:
|
# annotations = {
|
||||||
enabled: False
|
# "reloader.stakater.com/match" = "true"
|
||||||
cameras:
|
# }
|
||||||
# Temp disabled until valchedrym is back up
|
# }
|
||||||
valchedrym-cam-1:
|
|
||||||
enabled: true
|
# data = {
|
||||||
ffmpeg:
|
# # Actual mail settings
|
||||||
inputs:
|
# "config.yml" = <<-EOT
|
||||||
#- path: rtsp://${var.valchedrym_camera_credentials}@192.168.0.11:554/Streaming/Channels/101 # <----- The stream you want to use for detection
|
# mqtt:
|
||||||
- path: rtsp://${var.valchedrym_camera_credentials}@valchedrym.ddns.net:554/Streaming/Channels/101 # <----- The stream you want to use for detection
|
# enabled: False
|
||||||
detect:
|
# cameras:
|
||||||
enabled: True # <---- disable detection until you have a working camera feed
|
# # Temp disabled until valchedrym is back up
|
||||||
width: 704 # <---- update for your camera's resolution
|
# valchedrym-cam-1:
|
||||||
height: 576 # <---- update for your camera's resolution
|
# enabled: true
|
||||||
objects:
|
# ffmpeg:
|
||||||
# Optional: list of objects to track from labelmap.txt (full list - https://docs.frigate.video/configuration/objects)
|
# inputs:
|
||||||
track:
|
# #- path: rtsp://${var.valchedrym_camera_credentials}@192.168.0.11:554/Streaming/Channels/101 # <----- The stream you want to use for detection
|
||||||
- person
|
# - path: rtsp://${var.valchedrym_camera_credentials}@valchedrym.ddns.net:554/Streaming/Channels/101 # <----- The stream you want to use for detection
|
||||||
- bicycle
|
# detect:
|
||||||
- car
|
# enabled: True # <---- disable detection until you have a working camera feed
|
||||||
- bird
|
# width: 704 # <---- update for your camera's resolution
|
||||||
- cat
|
# height: 576 # <---- update for your camera's resolution
|
||||||
- dog
|
# objects:
|
||||||
- horse
|
# # Optional: list of objects to track from labelmap.txt (full list - https://docs.frigate.video/configuration/objects)
|
||||||
valchedrym-cam-2:
|
# track:
|
||||||
enabled: true
|
# - person
|
||||||
ffmpeg:
|
# - bicycle
|
||||||
inputs:
|
# - car
|
||||||
#- path: rtsp://${var.valchedrym_camera_credentials}@192.168.0.11:554/Streaming/Channels/201 # <----- The stream you want to use for detection
|
# - bird
|
||||||
- path: rtsp://${var.valchedrym_camera_credentials}@valchedrym.ddns.net:554/Streaming/Channels/201 # <----- The stream you want to use for detection
|
# - cat
|
||||||
detect:
|
# - dog
|
||||||
enabled: True # <---- disable detection until you have a working camera feed
|
# - horse
|
||||||
width: 704 # <---- update for your camera's resolution
|
# valchedrym-cam-2:
|
||||||
height: 576 # <---- update for your camera's resolution
|
# enabled: true
|
||||||
objects:
|
# ffmpeg:
|
||||||
# Optional: list of objects to track from labelmap.txt (full list - https://docs.frigate.video/configuration/objects)
|
# inputs:
|
||||||
track:
|
# #- path: rtsp://${var.valchedrym_camera_credentials}@192.168.0.11:554/Streaming/Channels/201 # <----- The stream you want to use for detection
|
||||||
- person
|
# - path: rtsp://${var.valchedrym_camera_credentials}@valchedrym.ddns.net:554/Streaming/Channels/201 # <----- The stream you want to use for detection
|
||||||
- bicycle
|
# detect:
|
||||||
- car
|
# enabled: True # <---- disable detection until you have a working camera feed
|
||||||
- bird
|
# width: 704 # <---- update for your camera's resolution
|
||||||
- cat
|
# height: 576 # <---- update for your camera's resolution
|
||||||
- dog
|
# objects:
|
||||||
- horse
|
# # Optional: list of objects to track from labelmap.txt (full list - https://docs.frigate.video/configuration/objects)
|
||||||
london-ipcam:
|
# track:
|
||||||
enabled: false
|
# - person
|
||||||
ffmpeg:
|
# - bicycle
|
||||||
inputs:
|
# - car
|
||||||
- path: rtsp://192.168.2.2:8554/london_cam # <----- The stream you want to use for detection
|
# - bird
|
||||||
roles:
|
# - cat
|
||||||
- rtmp
|
# - dog
|
||||||
- record
|
# - horse
|
||||||
- detect
|
# london-ipcam:
|
||||||
detect:
|
# enabled: false
|
||||||
enabled: False
|
# ffmpeg:
|
||||||
width: 1280
|
# inputs:
|
||||||
height: 720
|
# - path: rtsp://192.168.2.2:8554/london_cam # <----- The stream you want to use for detection
|
||||||
record:
|
# roles:
|
||||||
enabled: False # Not needed for this camera but keeping for reference
|
# - rtmp
|
||||||
events:
|
# - record
|
||||||
retain:
|
# - detect
|
||||||
default: 10
|
# detect:
|
||||||
objects:
|
# enabled: False
|
||||||
# Optional: list of objects to track from labelmap.txt (full list - https://docs.frigate.video/configuration/objects)
|
# width: 1280
|
||||||
track:
|
# height: 720
|
||||||
- person
|
# record:
|
||||||
- shoe
|
# enabled: False # Not needed for this camera but keeping for reference
|
||||||
- handbag
|
# events:
|
||||||
- wine glass
|
# retain:
|
||||||
- knife
|
# default: 10
|
||||||
- pizza
|
# objects:
|
||||||
- laptop
|
# # Optional: list of objects to track from labelmap.txt (full list - https://docs.frigate.video/configuration/objects)
|
||||||
- book
|
# track:
|
||||||
EOT
|
# - person
|
||||||
}
|
# - shoe
|
||||||
# Password hashes are different each time and avoid changing secret constantly.
|
# - handbag
|
||||||
# Either 1.Create consistent hashes or 2.Find a way to ignore_changes on per password
|
# - wine glass
|
||||||
lifecycle {
|
# - knife
|
||||||
ignore_changes = [data["postfix-accounts.cf"]]
|
# - pizza
|
||||||
}
|
# - laptop
|
||||||
}
|
# - book
|
||||||
|
# EOT
|
||||||
|
# }
|
||||||
|
# # Password hashes are different each time and avoid changing secret constantly.
|
||||||
|
# # Either 1.Create consistent hashes or 2.Find a way to ignore_changes on per password
|
||||||
|
# lifecycle {
|
||||||
|
# ignore_changes = [data["postfix-accounts.cf"]]
|
||||||
|
# }
|
||||||
|
# }
|
||||||
|
|
||||||
resource "kubernetes_deployment" "frigate" {
|
resource "kubernetes_deployment" "frigate" {
|
||||||
metadata {
|
metadata {
|
||||||
|
|
@ -129,7 +132,7 @@ resource "kubernetes_deployment" "frigate" {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
spec {
|
spec {
|
||||||
replicas = 0 # Temporarily disabled
|
replicas = 0 # Temporarily disabled due to high power consumption
|
||||||
strategy {
|
strategy {
|
||||||
type = "Recreate"
|
type = "Recreate"
|
||||||
}
|
}
|
||||||
|
|
@ -169,8 +172,9 @@ resource "kubernetes_deployment" "frigate" {
|
||||||
}
|
}
|
||||||
volume_mount {
|
volume_mount {
|
||||||
name = "config"
|
name = "config"
|
||||||
mount_path = "/config/config.yml"
|
mount_path = "/config"
|
||||||
sub_path = "config.yml"
|
# mount_path = "/config/config.yml"
|
||||||
|
# sub_path = "config.yml"
|
||||||
}
|
}
|
||||||
volume_mount {
|
volume_mount {
|
||||||
name = "media"
|
name = "media"
|
||||||
|
|
@ -183,8 +187,12 @@ resource "kubernetes_deployment" "frigate" {
|
||||||
}
|
}
|
||||||
volume {
|
volume {
|
||||||
name = "config"
|
name = "config"
|
||||||
config_map {
|
# config_map {
|
||||||
name = "config"
|
# name = "config"
|
||||||
|
# }
|
||||||
|
nfs {
|
||||||
|
path = "/mnt/main/frigate"
|
||||||
|
server = "10.0.10.15"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
volume {
|
volume {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue