Skip to content
Snippets Groups Projects
Commit dbc1bcc8 authored by Ľuboslav Pivarč's avatar Ľuboslav Pivarč
Browse files

Node affinity & tolerations for API

parent 6d258fb1
No related branches found
No related tags found
2 merge requests!10Time refactor,!8New Cluster
Pipeline #23701 failed
...@@ -21,6 +21,24 @@ spec: ...@@ -21,6 +21,24 @@ spec:
app: cbio-api app: cbio-api
type: ondemand type: ondemand
spec: spec:
tolerations:
- effect: NoSchedule
key: node-role.kubernetes.io
operator: Equal
value: controlplane
effect: NoExecute
key: node-role.kubernetes.io
operator: Equal
value: etcd
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: node-role.kubernetes.io/controlplane:
operator: In
values:
- true
serviceAccountName: cbio-api serviceAccountName: cbio-api
imagePullSecrets: imagePullSecrets:
- name: temporary - name: temporary
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment