Commit 6d258fb1 authored by Ľuboslav Pivarč's avatar Ľuboslav Pivarč
Browse files

Node affinity & tolerations

parent 8ce16366
Pipeline #23698 failed with stages
in 16 minutes and 58 seconds
...@@ -28,6 +28,20 @@ spec: ...@@ -28,6 +28,20 @@ spec:
# generated by API unique for user # generated by API unique for user
#instance: "1" #instance: "1"
spec: spec:
tolerations:
- effect: NoSchedule
key: edirex
operator: Equal
value: cbio
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: edirex
operator: In
values:
- cbio
initContainers: initContainers:
- name: wait-for-db - name: wait-for-db
image: lpivo/wait_for_db:tr2 image: lpivo/wait_for_db:tr2
......
...@@ -28,6 +28,20 @@ spec: ...@@ -28,6 +28,20 @@ spec:
# generated by API unique for user # generated by API unique for user
#instance: "1" #instance: "1"
spec: spec:
tolerations:
- effect: NoSchedule
key: edirex
operator: Equal
value: cbio
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: edirex
operator: In
values:
- cbio
containers: containers:
- name: cbio - name: cbio
image: lpivo/cbiodb:v1 image: lpivo/cbiodb:v1
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment