Skip to content

Commit

Permalink
Adding nodeSector (#28)
Browse files Browse the repository at this point in the history
  • Loading branch information
alfespa17 committed Jul 7, 2022
1 parent 5fb827f commit 7b9536c
Show file tree
Hide file tree
Showing 6 changed files with 33 additions and 3 deletions.
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -607,7 +607,7 @@ ingress:
kubernetes.io/ingress.class: alb
```
### 4.1 Node Affinity, Taints and Tolerations.
### 4.1 Node Affinity, NodeSelector, Taints and Tolerations.
The API, Registry, Executor and UI support using affinity, taints and tolerations. Use the following examples as reference:
Expand All @@ -626,12 +626,14 @@ api:
requests:
cpu: 200m
memory: 256Mi
tolerations:
tolerations: # OPTIONAL
- key: "key1"
operator: "Equal"
value: "value1"
effect: "NoSchedule"
affinity:
nodeSelector: # OPTIONAL
disktype: ssd
affinity: # OPTIONAL
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
Expand Down
4 changes: 4 additions & 0 deletions templates/deployment-api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,8 @@ spec:
tolerations:
{{- toYaml . | nindent 6 }}
{{- end }}
{{- with .Values.api.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
{{- end }}
{{ end }}
4 changes: 4 additions & 0 deletions templates/deployment-executor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,8 @@ spec:
tolerations:
{{- toYaml . | nindent 6 }}
{{- end }}
{{- with .Values.executor.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
{{- end }}
{{ end }}
4 changes: 4 additions & 0 deletions templates/deployment-registry.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,8 @@ spec:
tolerations:
{{- toYaml . | nindent 6 }}
{{- end }}
{{- with .Values.registry.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
{{- end }}
{{ end }}
4 changes: 4 additions & 0 deletions templates/deployment-ui.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,8 @@ spec:
tolerations:
{{- toYaml . | nindent 6 }}
{{- end }}
{{- with .Values.ui.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
{{- end }}
{{ end }}
12 changes: 12 additions & 0 deletions values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,9 @@
"affinity": {
"type": "object"
},
"nodeSelector": {
"type": "object"
},
"tolerations": {
"type": "array",
"items": {
Expand Down Expand Up @@ -186,6 +189,9 @@
"affinity": {
"type": "object"
},
"nodeSelector": {
"type": "object"
},
"tolerations": {
"type": "array",
"items": {
Expand Down Expand Up @@ -242,6 +248,9 @@
"affinity": {
"type": "object"
},
"nodeSelector": {
"type": "object"
},
"tolerations": {
"type": "array",
"items": {
Expand Down Expand Up @@ -276,6 +285,9 @@
"affinity": {
"type": "object"
},
"nodeSelector": {
"type": "object"
},
"tolerations": {
"type": "array",
"items": {
Expand Down

0 comments on commit 7b9536c

Please sign in to comment.