-
Notifications
You must be signed in to change notification settings - Fork 24
/
Copy pathkoord-scheduler.yaml
93 lines (90 loc) · 2.86 KB
/
koord-scheduler.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
koord-app: koord-scheduler
name: koord-scheduler
namespace: {{ .Values.installation.namespace }}
spec:
replicas: {{ .Values.scheduler.replicas }}
selector:
matchLabels:
koord-app: koord-scheduler
minReadySeconds: 3
strategy:
type: RollingUpdate
rollingUpdate:
maxUnavailable: 0
maxSurge: 100%
template:
metadata:
labels:
koord-app: koord-scheduler
spec:
{{- with .Values.imagePullSecrets }}
imagePullSecrets:
{{- toYaml . | nindent 8 }}
{{- end }}
containers:
- args:
- --port={{ .Values.scheduler.port }}
- --logtostderr=true
- --authentication-skip-lookup=true
- --v={{ .Values.scheduler.log.level }}
{{- if semverCompare "= 1.22-0" .Capabilities.KubeVersion.Version }}
- --feature-gates={{ .Values.scheduler.compatible122FeatureGates }}
{{- else if semverCompare "< 1.22-0" .Capabilities.KubeVersion.Version }}
- --feature-gates={{ .Values.scheduler.compatibleBelow122FeatureGates }}
{{- else }}
- --feature-gates={{ .Values.scheduler.featureGates }}
{{- end }}
- --config=/config/koord-scheduler.config
command:
- /koord-scheduler
image: {{ .Values.imageRepositoryHost }}/{{ .Values.scheduler.image.repository }}:{{ .Values.scheduler.image.tag }}
imagePullPolicy: Always
name: scheduler
volumeMounts:
- mountPath: /config
name: koord-scheduler-config-volume
readinessProbe:
httpGet:
path: healthz
port: {{ .Values.scheduler.port }}
resources:
{{- toYaml .Values.scheduler.resources | nindent 12 }}
hostNetwork: {{ .Values.scheduler.hostNetwork }}
terminationGracePeriodSeconds: 10
serviceAccountName: koord-scheduler
volumes:
- configMap:
defaultMode: 420
items:
- key: koord-scheduler-config
path: koord-scheduler.config
name: koord-scheduler-config
name: koord-scheduler-config-volume
affinity:
podAntiAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- podAffinityTerm:
labelSelector:
matchExpressions:
- key: koord-app
operator: In
values:
- koord-scheduler
topologyKey: kubernetes.io/hostname
weight: 100
{{- with .Values.scheduler.nodeAffinity }}
nodeAffinity:
{{ toYaml . | indent 10 }}
{{- end }}
{{- if .Values.scheduler.nodeSelector }}
nodeSelector:
{{ toYaml .Values.scheduler.nodeSelector | indent 8 }}
{{- end }}
{{- if .Values.scheduler.tolerations }}
tolerations:
{{ toYaml .Values.scheduler.tolerations | indent 8 }}
{{- end }}