enable frigate and ask it to use gpu [ci skip]
This commit is contained in:
parent
52782d5fa5
commit
b284cfe293
1 changed files with 15 additions and 1 deletions
|
|
@ -27,7 +27,7 @@ resource "kubernetes_deployment" "frigate" {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
spec {
|
spec {
|
||||||
replicas = 0 # Temporarily disabled due to high power consumption
|
replicas = 1 # Temporarily disabled due to high power consumption
|
||||||
strategy {
|
strategy {
|
||||||
type = "Recreate"
|
type = "Recreate"
|
||||||
}
|
}
|
||||||
|
|
@ -43,9 +43,18 @@ resource "kubernetes_deployment" "frigate" {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
spec {
|
spec {
|
||||||
|
node_selector = {
|
||||||
|
"gpu" : true
|
||||||
|
}
|
||||||
container {
|
container {
|
||||||
image = "ghcr.io/blakeblackshear/frigate:stable"
|
image = "ghcr.io/blakeblackshear/frigate:stable"
|
||||||
name = "frigate"
|
name = "frigate"
|
||||||
|
|
||||||
|
resources {
|
||||||
|
limits = {
|
||||||
|
"nvidia.com/gpu" = "1"
|
||||||
|
}
|
||||||
|
}
|
||||||
env {
|
env {
|
||||||
name = "FRIGATE_RTSP_PASSWORD"
|
name = "FRIGATE_RTSP_PASSWORD"
|
||||||
value = "password"
|
value = "password"
|
||||||
|
|
@ -157,5 +166,10 @@ module "ingress" {
|
||||||
"nginx.ingress.kubernetes.io/proxy-set-header" : "Upgrade $http_upgrade"
|
"nginx.ingress.kubernetes.io/proxy-set-header" : "Upgrade $http_upgrade"
|
||||||
"nginx.ingress.kubernetes.io/proxy-set-header" : "Connection $connection_upgrade"
|
"nginx.ingress.kubernetes.io/proxy-set-header" : "Connection $connection_upgrade"
|
||||||
"nginx.ingress.kubernetes.io/proxy-redirect-from" : "off"
|
"nginx.ingress.kubernetes.io/proxy-redirect-from" : "off"
|
||||||
|
|
||||||
|
"nginx.ingress.kubernetes.io/limit-rps" : 50000
|
||||||
|
"nginx.ingress.kubernetes.io/limit-rpm" : 1000000
|
||||||
|
"nginx.ingress.kubernetes.io/limit-burst-multiplier" : 50000
|
||||||
|
"nginx.ingress.kubernetes.io/limit-rate-after" : 100000
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue