From aacbb20e13a9ad8855d0faa5f5c3db057018737e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lauri=20V=C3=B5sandi?= Date: Sat, 19 Aug 2023 10:20:37 +0300 Subject: [PATCH] camtiler: Namespace change related fixes --- camtiler/application.yml | 14 ++++++++++++++ camtiler/network-policies.yml | 6 +++--- 2 files changed, 17 insertions(+), 3 deletions(-) diff --git a/camtiler/application.yml b/camtiler/application.yml index dc31e09..b66e514 100644 --- a/camtiler/application.yml +++ b/camtiler/application.yml @@ -339,3 +339,17 @@ spec: target: http://user@100.102.3.1:8080/?action=stream secretRef: camera-secrets replicas: 1 +--- +apiVersion: monitoring.coreos.com/v1 +kind: PodMonitor +metadata: + name: camera-motion-detect +spec: + selector: + matchLabels: + component: camera-motion-detect + podMetricsEndpoints: + - port: http + podTargetLabels: + - app.kubernetes.io/name + - component diff --git a/camtiler/network-policies.yml b/camtiler/network-policies.yml index e182b6a..0029a52 100644 --- a/camtiler/network-policies.yml +++ b/camtiler/network-policies.yml @@ -19,7 +19,7 @@ spec: - from: - namespaceSelector: matchLabels: - kubernetes.io/metadata.name: prometheus-operator + kubernetes.io/metadata.name: monitoring podSelector: matchLabels: app.kubernetes.io/name: prometheus @@ -64,7 +64,7 @@ spec: - from: - namespaceSelector: matchLabels: - kubernetes.io/metadata.name: prometheus-operator + kubernetes.io/metadata.name: monitoring podSelector: matchLabels: app.kubernetes.io/name: prometheus @@ -186,7 +186,7 @@ spec: - from: - namespaceSelector: matchLabels: - kubernetes.io/metadata.name: prometheus-operator + kubernetes.io/metadata.name: monitoring podSelector: matchLabels: app.kubernetes.io/name: prometheus