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

Commit

Permalink
add pod scheduling
Browse files Browse the repository at this point in the history
  • Loading branch information
tian-ma committed Nov 21, 2024
1 parent 1f37ad3 commit a34299c
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 10 deletions.
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
27 changes: 17 additions & 10 deletions charts/kubeturbo/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ replicaCount: 1
# Replace the image with desired version
image:
repository: icr.io/cpopen/turbonomic/kubeturbo
tag: 8.14.2
tag: 8.14.4
pullPolicy: IfNotPresent
# busyboxRepository: busybox
# imagePullSecret: ""
Expand All @@ -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

0 comments on commit a34299c

Please sign in to comment.