From 222fca8b8f7c486540959dad4ce0b6abb37aa7cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lauri=20V=C3=B5sandi?= Date: Fri, 23 Dec 2022 23:32:18 +0200 Subject: [PATCH] camtiler: Fix scheduling issues --- camtiler/application.yml | 8 ++++---- camtiler/camera-tiler.yml | 1 + 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/camtiler/application.yml b/camtiler/application.yml index 7605fb8..e79a7f4 100644 --- a/camtiler/application.yml +++ b/camtiler/application.yml @@ -113,12 +113,12 @@ spec: revisionHistoryLimit: 0 replicas: 1 - # Make sure we do not congest the network during rollout strategy: type: RollingUpdate rollingUpdate: - maxSurge: 0 - maxUnavailable: 1 + # Swap following two with replicas: 2 + maxSurge: 1 + maxUnavailable: 0 selector: matchLabels: app.kubernetes.io/name: foobar @@ -196,7 +196,7 @@ spec: requiredDuringSchedulingIgnoredDuringExecution: - labelSelector: matchExpressions: - - key: app + - key: app.kubernetes.io/name operator: In values: - foobar diff --git a/camtiler/camera-tiler.yml b/camtiler/camera-tiler.yml index 7f6d275..6bb5b49 100644 --- a/camtiler/camera-tiler.yml +++ b/camtiler/camera-tiler.yml @@ -90,6 +90,7 @@ spec: selector: matchLabels: app.kubernetes.io/name: camtiler + component: camera-tiler podMetricsEndpoints: - port: http podTargetLabels: