Skip to content

Commit

Permalink
adds tolerations, nodeSelector, and affinity to tsa. (#758)
Browse files Browse the repository at this point in the history
Signed-off-by: ianhundere <138915+ianhundere@users.noreply.github.com>
  • Loading branch information
ianhundere authored May 24, 2024
1 parent e125a02 commit 772ea11
Show file tree
Hide file tree
Showing 5 changed files with 147 additions and 645 deletions.
2 changes: 1 addition & 1 deletion charts/tsa/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ description: |
type: application

version: 1.0.2
version: 1.0.3
appVersion: 1.2.1

keywords:
Expand Down
3 changes: 3 additions & 0 deletions charts/tsa/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ helm uninstall [RELEASE_NAME]
| forceNamespace | string | `""` | |
| namespace.create | bool | `false` | |
| namespace.name | string | `"tsa-system"` | |
| server.affinity | object | `{}` | |
| server.args.cert_chain | string | `"chain"` | |
| server.args.kms_key_resource | string | `"resource"` | |
| server.args.port | int | `5555` | |
Expand All @@ -113,6 +114,7 @@ helm uninstall [RELEASE_NAME]
| server.ingress.http.tls | list | `[]` | |
| server.logging.production | bool | `false` | |
| server.name | string | `"server"` | |
| server.nodeSelector | object | `{}` | |
| server.replicaCount | int | `1` | |
| server.secret | string | `"tsa-server-secret"` | |
| server.securityContext.runAsNonRoot | bool | `true` | |
Expand All @@ -131,6 +133,7 @@ helm uninstall [RELEASE_NAME]
| server.serviceAccount.mountToken | bool | `true` | |
| server.serviceAccount.name | string | `""` | |
| server.svcPort | int | `80` | |
| server.tolerations | list | `[]` | |

----------------------------------------------

Expand Down
12 changes: 12 additions & 0 deletions charts/tsa/templates/tsa-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -105,3 +105,15 @@ spec:
- key: private
path: key.pem
{{- end }}
{{- if .Values.server.nodeSelector }}
nodeSelector:
{{ toYaml .Values.server.nodeSelector | indent 8 }}
{{- end }}
{{- if .Values.server.tolerations }}
tolerations:
{{ toYaml .Values.server.tolerations | indent 8 }}
{{- end }}
{{- if .Values.server.affinity }}
affinity:
{{ toYaml .Values.server.affinity | indent 8 }}
{{- end }}
Loading

0 comments on commit 772ea11

Please sign in to comment.