Skip to content

Commit

Permalink
Kubernets: assign all pods to nodes (#828)
Browse files Browse the repository at this point in the history
* kubernets: assign all pods to nodes

* add comment
  • Loading branch information
YuryHrytsuk authored Oct 4, 2024
1 parent 7eeef42 commit 21ecd5d
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 2 deletions.
3 changes: 2 additions & 1 deletion charts/adminer/values.yaml.gotmpl
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ volumeMounts: []
# mountPath: "/etc/foo"
# readOnly: true

nodeSelector: {}
nodeSelector:
ops: "true"

tolerations: []
3 changes: 3 additions & 0 deletions charts/cert-manager/values.common.yaml.gotmpl
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
crds:
enabled: true
keep: true

nodeSelector:
ops: "true"
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,8 @@ volumeMounts: []
# mountPath: "/etc/foo"
# readOnly: true

nodeSelector: {}
nodeSelector:
simcore: "true"

tolerations: []

Expand Down
16 changes: 16 additions & 0 deletions charts/traefik/values.common.yaml.gotmpl
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
additionalArguments:
- "--api.insecure=true"

deployment:
kind: DaemonSet

ingressRoute:
dashboard:
enabled: false
Expand All @@ -19,3 +22,16 @@ ports:
nodePort: 32080
websecure:
nodePort: 32443

nodeSelector:
node-role.kubernetes.io/control-plane: "" # in some cases may require tolerations

affinity: # https://github.com/traefik/traefik-helm-chart/blob/v28.2.0/traefik/values.yaml#L838
podAntiAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
- labelSelector:
matchLabels:
# https://stackoverflow.com/a/51326166/12124525
app.kubernetes.io/name: '{{`{{ template "traefik.name" . }}`}}'
app.kubernetes.io/instance: '{{ .Release.Name }}'
topologyKey: kubernetes.io/hostname

0 comments on commit 21ecd5d

Please sign in to comment.