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 \ kubectl apply -n camtiler \
-f application.yml \ -f application.yml \
-f persistence.yml \ -f minio.yml \
-f mongoexpress.yml \ -f mongoexpress.yml \
-f mongodb-support.yml \ -f mongodb-support.yml \
-f camera-tiler.yml \ -f camera-tiler.yml \

View File

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

View File

@ -14,6 +14,27 @@ spec:
metadata: metadata:
labels: *selectorLabels labels: *selectorLabels
spec: 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: containers:
- name: logmower-eventsource - name: logmower-eventsource
image: harbor.k-space.ee/k-space/logmower-eventsource image: harbor.k-space.ee/k-space/logmower-eventsource
@ -39,7 +60,7 @@ metadata:
name: logmower-event-broker name: logmower-event-broker
spec: spec:
revisionHistoryLimit: 0 revisionHistoryLimit: 0
replicas: 5 replicas: 2
selector: selector:
matchLabels: &selectorLabels matchLabels: &selectorLabels
app.kubernetes.io/name: camtiler app.kubernetes.io/name: camtiler
@ -48,6 +69,27 @@ spec:
metadata: metadata:
labels: *selectorLabels labels: *selectorLabels
spec: 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: containers:
- name: logmower-event-broker - name: logmower-event-broker
image: harbor.k-space.ee/k-space/camera-event-broker image: harbor.k-space.ee/k-space/camera-event-broker

View File

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

View File

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