Skip to content

Commit 21ecd5d

Browse files
authored
Kubernets: assign all pods to nodes (#828)
* kubernets: assign all pods to nodes * add comment
1 parent 7eeef42 commit 21ecd5d

File tree

4 files changed

+23
-2
lines changed

4 files changed

+23
-2
lines changed

charts/adminer/values.yaml.gotmpl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ volumeMounts: []
101101
# mountPath: "/etc/foo"
102102
# readOnly: true
103103

104-
nodeSelector: {}
104+
nodeSelector:
105+
ops: "true"
105106

106107
tolerations: []
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
crds:
22
enabled: true
33
keep: true
4+
5+
nodeSelector:
6+
ops: "true"

charts/simcore-charts/resource-usage-tracker/values.yaml.gotmpl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,8 @@ volumeMounts: []
9191
# mountPath: "/etc/foo"
9292
# readOnly: true
9393

94-
nodeSelector: {}
94+
nodeSelector:
95+
simcore: "true"
9596

9697
tolerations: []
9798

charts/traefik/values.common.yaml.gotmpl

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
additionalArguments:
22
- "--api.insecure=true"
33

4+
deployment:
5+
kind: DaemonSet
6+
47
ingressRoute:
58
dashboard:
69
enabled: false
@@ -19,3 +22,16 @@ ports:
1922
nodePort: 32080
2023
websecure:
2124
nodePort: 32443
25+
26+
nodeSelector:
27+
node-role.kubernetes.io/control-plane: "" # in some cases may require tolerations
28+
29+
affinity: # https://github.com/traefik/traefik-helm-chart/blob/v28.2.0/traefik/values.yaml#L838
30+
podAntiAffinity:
31+
requiredDuringSchedulingIgnoredDuringExecution:
32+
- labelSelector:
33+
matchLabels:
34+
# https://stackoverflow.com/a/51326166/12124525
35+
app.kubernetes.io/name: '{{`{{ template "traefik.name" . }}`}}'
36+
app.kubernetes.io/instance: '{{ .Release.Name }}'
37+
topologyKey: kubernetes.io/hostname

0 commit comments

Comments
 (0)