Skip to content

Commit 709fe4d

Browse files
enmurotumidoEnoe Mugnaschi
authored
add nodeSelector to deployment template (#73)
Co-authored-by: Tom Coufal <7453394+tumido@users.noreply.github.com> Co-authored-by: Enoe Mugnaschi <enoe.mugnaschi@edreamsodigeo.com>
1 parent 27389d9 commit 709fe4d

File tree

4 files changed

+11
-2
lines changed

4 files changed

+11
-2
lines changed

charts/backstage/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ type: application
1515
# This is the chart version. This version number should be incremented each time you make changes
1616
# to the chart and its templates, including the app version.
1717
# Versions are expected to follow Semantic Versioning (https://semver.org/)
18-
version: 0.19.0
18+
version: 0.20.0
1919

2020
dependencies:
2121
- name: common

charts/backstage/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
# Backstage Helm Chart
33

4-
![Version: 0.19.0](https://img.shields.io/badge/Version-0.19.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square)
4+
![Version: 0.20.0](https://img.shields.io/badge/Version-0.20.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square)
55

66
A Helm chart for deploying a Backstage application
77

@@ -105,6 +105,7 @@ The command removes all the Kubernetes components associated with the chart and
105105
| backstage.image.tag | Backstage image tag (immutable tags are recommended) | string | `"latest"` |
106106
| backstage.initContainers | Backstage container init containers | list | `[]` |
107107
| backstage.installDir | Directory containing the backstage installation | string | `"/app"` |
108+
| backstage.nodeSelector | Node labels for pod assignment <br /> Ref: https://kubernetes.io/docs/user-guide/node-selection/ | object | `{}` |
108109
| backstage.podAnnotations | Annotations to add to the backend deployment pods | object | `{}` |
109110
| backstage.podSecurityContext | Security settings for a Pod. The security settings that you specify for a Pod apply to all Containers in the Pod. <br /> Ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-pod | object | `{}` |
110111
| backstage.replicas | Number of deployment replicas | int | `1` |

charts/backstage/templates/backstage-deployment.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,10 @@ spec:
3636
securityContext:
3737
{{- include "common.tplvalues.render" ( dict "value" .Values.backstage.podSecurityContext "context" $) | nindent 8 }}
3838
{{- end }}
39+
{{- if .Values.backstage.nodeSelector }}
40+
nodeSelector:
41+
{{- include "common.tplvalues.render" ( dict "value" .Values.backstage.nodeSelector "context" $) | nindent 8 }}
42+
{{- end }}
3943
{{- if .Values.backstage.tolerations }}
4044
tolerations:
4145
{{- include "common.tplvalues.render" ( dict "value" .Values.backstage.tolerations "context" $) | nindent 8 }}

charts/backstage/values.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,10 @@ backstage:
173173
# -- Generates ConfigMap and configures it in the Backstage pods
174174
appConfig: {}
175175

176+
# -- Node labels for pod assignment
177+
# <br /> Ref: https://kubernetes.io/docs/user-guide/node-selection/
178+
nodeSelector: {}
179+
176180
# -- Node tolerations for server scheduling to nodes with taints
177181
# <br /> Ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/
178182
tolerations: []

0 commit comments

Comments
 (0)