Skip to content
This repository has been archived by the owner on Dec 19, 2024. It is now read-only.

Affinity kubeturbo #4

Merged
merged 7 commits into from
Nov 21, 2024
Merged
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
2 changes: 1 addition & 1 deletion charts/kubeturbo/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ apiVersion: v1
appVersion: "8.0"
description: A Helm chart for Kubernetes
name: kubeturbo
version: 1.0.0
version: 1.1.0
9 changes: 9 additions & 0 deletions charts/kubeturbo/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,15 @@ spec:
{{- if .Values.image.imagePullSecret }}
imagePullSecrets:
- name: {{ .Values.image.imagePullSecret }}
{{- end }}
{{- if .Values.kubeturboPodScheduling.nodeSelector }}
nodeSelector: {{- .Values.kubeturboPodScheduling.nodeSelector | toYaml | nindent 8 }}
{{- end }}
{{- if .Values.kubeturboPodScheduling.affinity }}
affinity: {{- .Values.kubeturboPodScheduling.affinity | toYaml | nindent 8 }}
{{- end }}
{{- if .Values.kubeturboPodScheduling.tolerations }}
tolerations: {{- .Values.kubeturboPodScheduling.tolerations | toYaml | nindent 8 }}
{{- end }}
containers:
- name: {{ .Chart.Name }}
Expand Down
25 changes: 16 additions & 9 deletions charts/kubeturbo/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,14 @@ annotations:
# nameOverride: ""
# fullnameOverride: ""

# Specify one or more kubeturbo pod scheduling constraints in the cluster
# See https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/ for examples on
# nodeSelector, affinity, tolerations
kubeturboPodScheduling:
nodeSelector:
affinity:
tolerations:

# Specify 'turbo-cluster-reader' or 'turbo-cluster-admin' as role name instead of the default using
# the 'cluster-admin' role. A cluster role with this name will be created during deployment
# If using a role name other than the pre-defined role names, cluster role will not be created. This role should be
Expand All @@ -31,7 +39,7 @@ roleBinding: "turbo-all-binding"
# Specify the name of the serviceaccount
serviceAccountName: "turbo-user"

# Turbo server address
# Turbo server address
serverMeta:
turboServer: https://Turbo_server_URL
# proxy: http://username:password@proxyserver:proxyport or http://proxyserver:proxyport
Expand Down Expand Up @@ -131,14 +139,13 @@ systemWorkloadDetectors:
# that should be excluded from the operator-controlled WorkloadController resize policy.
# By default, matching workloads will generate actions that are not in Recommend mode.
# exclusionDetectors:
# A list of regular expressions representing operator-controlled Workload Controllers.
# operatorControlledWorkloadsPatterns:
# - example-.*
# - .*-example
# A list of regular expressions representing namespaces containing operator-controlled
# Workload Controllers.
# operatorControlledNamespacePatterns:
# - .*-example.*
# # A list of regular expressions representing operator-controlled Workload Controllers.
# operatorControlledWorkloadsPatterns:
# - example-.*
# - .*-example
# # A list of regular expressions representing namespaces containing operator-controlled Workload Controllers.
# operatorControlledNamespacePatterns:
# - .*-example.*

args:
# logging level
Expand Down