Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add runtimeClassName and nodeAffinity for koordlet #84

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion versions/v1.4.0/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,9 @@ The following table lists the configurable parameters of the chart and their def
| `koordlet.resources.limits.memory` | Memory resource limit of koordlet container | `256Mi` |
| `koordlet.resources.requests.cpu` | CPU resource request of koordlet container | `0` |
| `koordlet.resources.requests.memory` | Memory resource request of koordlet container | `0` |
| `webhookConfiguration.failurePolicy.pods` | The failurePolicy for pods in mutating webhook configuration | `Ignore` |
| `koordlet.runtimeClassName` | Specify runtimeClassName, like `nvidia` | `` |
| `koordlet.nodeAffinity` | Specify affinity to allow koordlet be scheduled to certain nodes | `{}` |
| `webhookConfiguration.failurePolicy.pods` | The failurePolicy for pods in all webhook configuration | `Ignore` |
| `webhookConfiguration.timeoutSeconds` | The timeoutSeconds for all webhook configuration | `30` |
| `crds.managed` | Koordinator will not install CRDs with chart if this is false | `true` |
| `imagePullSecrets` | The list of image pull secrets for koordinator image | `false` |
Expand Down
7 changes: 7 additions & 0 deletions versions/v1.4.0/templates/koordlet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,13 @@ spec:
name: metric-db-path
tolerations:
- operator: Exists
{{- if .Values.koordlet.runtimeClassName }}
runtimeClassName: {{ .Values.koordlet.runtimeClassName }}
{{- end }}
{{- if .Values.koordlet.nodeAffinity }}
affinity:
{{- toYaml .Values.koordlet.nodeAffinity | nindent 8 }}
{{- end }}
hostNetwork: true
hostPID: true
terminationGracePeriodSeconds: 10
Expand Down
2 changes: 2 additions & 0 deletions versions/v1.4.0/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ koordlet:
# if not specified, use tmpfs by default
koordletTSDBDir: ""
enableServiceMonitor: false
runtimeClassName: ""
nodeAffinity: {}


manager:
Expand Down
Loading