Skip to content

Commit 96f8715

Browse files
committed
add schduling related parameters
1 parent c02c1e4 commit 96f8715

2 files changed

Lines changed: 34 additions & 4 deletions

File tree

charts/codimd/templates/deployment.yaml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,29 @@ metadata:
44
name: {{ template "codimd.fullname" . }}
55
labels:
66
app.kubernetes.io/component: server
7-
{{- include "codimd.labels" . | nindent 4 }}
7+
{{- include "codimd.labels" . | nindent 4 }}
88
spec:
99
replicas: 1
1010
selector:
1111
matchLabels:
1212
app.kubernetes.io/component: server
13-
{{- include "codimd.labels" . | nindent 6 }}
13+
{{- include "codimd.labels" . | nindent 6 }}
1414
template:
1515
metadata:
1616
name: {{ template "codimd.fullname" . }}
1717
labels:
1818
app.kubernetes.io/component: server
19-
{{- include "codimd.labels" . | nindent 8 }}
19+
{{- include "codimd.labels" . | nindent 8 }}
20+
annotations:
21+
{{ toYaml .Values.codimd.podAnnotations | nindent 8 }}
2022
spec:
23+
affinity:
24+
{{ toYaml .Values.codimd.affinity | nindent 8 }}
25+
tolerations:
26+
{{ toYaml .Values.codimd.tolerations | nindent 8 }}
27+
nodeSelector:
28+
{{ toYaml .Values.codimd.nodeSelector | nindent 8 }}
29+
2130
{{ if .Values.image.pullSecrets }}
2231
imagePullSecrets:
2332
{{ .Values.image.pullSecrets | nindent 8 }}

charts/codimd/values.yaml

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,11 +67,32 @@ ingress:
6767
hostname:
6868
tlsSecret:
6969

70-
7170
##
7271
## CodiMD application configuration
7372
##
7473
codimd:
74+
##
75+
## Affinity for pod assignment
76+
## Ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity
77+
##
78+
affinity: {}
79+
##
80+
## Tolerations for pod assignment. Evaluated as a template.
81+
## ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
82+
##
83+
tolerations: {}
84+
##
85+
## Node labels for pod assignment. Evaluated as a template.
86+
## ref: https://kubernetes.io/docs/user-guide/node-selection/
87+
##
88+
nodeSelector: {}
89+
##
90+
## Pod annotations
91+
## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/
92+
##
93+
podAnnotations: {}
94+
95+
7596
##
7697
## connection setting
7798
##

0 commit comments

Comments
 (0)