1
0
forked from k-space/kube

camtiler: Updates

This commit is contained in:
Lauri Võsandi 2023-05-18 22:55:40 +03:00
parent 7abac4db0a
commit 8b0719234c
5 changed files with 49 additions and 7 deletions

View File

@ -3,7 +3,7 @@ To apply changes:
```
kubectl apply -n camtiler \
-f application.yml \
-f persistence.yml \
-f minio.yml \
-f mongoexpress.yml \
-f mongodb-support.yml \
-f camera-tiler.yml \

View File

@ -200,12 +200,12 @@ spec:
operator: In
values:
- foobar
topologyKey: kubernetes.io/hostname
topologyKey: topology.kubernetes.io/zone
# Make sure camera deployments are spread over workers
topologySpreadConstraints:
- maxSkew: 1
topologyKey: kubernetes.io/hostname
topologyKey: topology.kubernetes.io/zone
whenUnsatisfiable: DoNotSchedule
labelSelector:
matchLabels:

View File

@ -14,6 +14,27 @@ spec:
metadata:
labels: *selectorLabels
spec:
affinity:
podAntiAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
- labelSelector:
matchExpressions:
- key: app.kubernetes.io/name
operator: In
values:
- camtiler
- key: component
operator: In
values:
- logmower-eventsource
topologyKey: topology.kubernetes.io/zone
nodeSelector:
dedicated: storage
tolerations:
- key: dedicated
operator: Equal
value: storage
effect: NoSchedule
containers:
- name: logmower-eventsource
image: harbor.k-space.ee/k-space/logmower-eventsource
@ -39,7 +60,7 @@ metadata:
name: logmower-event-broker
spec:
revisionHistoryLimit: 0
replicas: 5
replicas: 2
selector:
matchLabels: &selectorLabels
app.kubernetes.io/name: camtiler
@ -48,6 +69,27 @@ spec:
metadata:
labels: *selectorLabels
spec:
affinity:
podAntiAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
- labelSelector:
matchExpressions:
- key: app.kubernetes.io/name
operator: In
values:
- camtiler
- key: component
operator: In
values:
- logmower-event-broker
topologyKey: topology.kubernetes.io/zone
nodeSelector:
dedicated: storage
tolerations:
- key: dedicated
operator: Equal
value: storage
effect: NoSchedule
containers:
- name: logmower-event-broker
image: harbor.k-space.ee/k-space/camera-event-broker

View File

@ -22,11 +22,11 @@ spec:
requiredDuringSchedulingIgnoredDuringExecution:
- labelSelector:
matchExpressions:
- key: app
- key: app.kubernetes.io/name
operator: In
values:
- minio
topologyKey: kubernetes.io/hostname
topologyKey: topology.kubernetes.io/zone
nodeSelector:
dedicated: storage
tolerations:

View File

@ -63,7 +63,7 @@ spec:
operator: In
values:
- mongodb-svc
topologyKey: kubernetes.io/hostname
topologyKey: topology.kubernetes.io/zone
nodeSelector:
dedicated: storage
tolerations: