Skip to content

Commit c35fd73

Browse files
committed
chore(k8s/magiclove/rook-ceph): schedule plugins on all nodes
1 parent 6792618 commit c35fd73

File tree

1 file changed

+30
-21
lines changed

1 file changed

+30
-21
lines changed

k8s/magiclove/rook_ceph/config_map_list.cue

Lines changed: 30 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
package rook_ceph
22

3-
import "k8s.io/api/core/v1"
3+
import (
4+
"encoding/yaml"
5+
6+
"k8s.io/api/core/v1"
7+
)
48

59
#ConfigMapList: v1.#ConfigMapList & {
610
apiVersion: "v1"
@@ -178,10 +182,11 @@ import "k8s.io/api/core/v1"
178182
// (Optional) CephCSI provisioner tolerations list(applied to both CephFS and RBD provisioner).
179183
// Put here list of taints you want to tolerate in YAML format.
180184
// CSI provisioner would be best to start on the same nodes as other ceph daemons.
181-
// CSI_PROVISIONER_TOLERATIONS: |
182-
// - effect: NoSchedule
183-
// key: node-role.kubernetes.io/control-plane
184-
// operator: Exists
185+
CSI_PROVISIONER_TOLERATIONS: yaml.Marshal([{
186+
key: "node-role.kubernetes.io/control-plane"
187+
operator: v1.#TolerationOpExists
188+
effect: v1.#TaintEffectNoSchedule
189+
}])
185190
// - effect: NoExecute
186191
// key: node-role.kubernetes.io/etcd
187192
// operator: Exists
@@ -190,37 +195,41 @@ import "k8s.io/api/core/v1"
190195
// (Optional) CephCSI plugin tolerations list(applied to both CephFS and RBD plugin).
191196
// Put here list of taints you want to tolerate in YAML format.
192197
// CSI plugins need to be started on all the nodes where the clients need to mount the storage.
193-
// CSI_PLUGIN_TOLERATIONS: |
194-
// - effect: NoSchedule
195-
// key: node-role.kubernetes.io/control-plane
196-
// operator: Exists
197-
// - effect: NoExecute
198-
// key: node-role.kubernetes.io/etcd
199-
// operator: Exists
198+
CSI_PLUGIN_TOLERATIONS: yaml.Marshal([{
199+
key: "node-role.kubernetes.io/control-plane"
200+
operator: v1.#TolerationOpExists
201+
effect: v1.#TaintEffectNoSchedule
202+
}])
200203
// (Optional) CephCSI RBD provisioner NodeAffinity (if specified, overrides CSI_PROVISIONER_NODE_AFFINITY).
201204
// CSI_RBD_PROVISIONER_NODE_AFFINITY: "role=rbd-node"
202205
// (Optional) CephCSI RBD provisioner tolerations list(if specified, overrides CSI_PROVISIONER_TOLERATIONS).
203206
// Put here list of taints you want to tolerate in YAML format.
204207
// CSI provisioner would be best to start on the same nodes as other ceph daemons.
205-
// CSI_RBD_PROVISIONER_TOLERATIONS: |
206-
// - key: node.rook.io/rbd
207-
// operator: Exists
208+
CSI_RBD_PROVISIONER_TOLERATIONS: yaml.Marshal([{
209+
key: "node-role.kubernetes.io/control-plane"
210+
operator: v1.#TolerationOpExists
211+
effect: v1.#TaintEffectNoSchedule
212+
}])
208213
// (Optional) CephCSI RBD plugin NodeAffinity (if specified, overrides CSI_PLUGIN_NODE_AFFINITY).
209214
// CSI_RBD_PLUGIN_NODE_AFFINITY: "role=rbd-node"
210215
// (Optional) CephCSI RBD plugin tolerations list(if specified, overrides CSI_PLUGIN_TOLERATIONS).
211216
// Put here list of taints you want to tolerate in YAML format.
212217
// CSI plugins need to be started on all the nodes where the clients need to mount the storage.
213-
// CSI_RBD_PLUGIN_TOLERATIONS: |
214-
// - key: node.rook.io/rbd
215-
// operator: Exists
218+
CSI_RBD_PLUGIN_TOLERATIONS: yaml.Marshal([{
219+
key: "node-role.kubernetes.io/control-plane"
220+
operator: v1.#TolerationOpExists
221+
effect: v1.#TaintEffectNoSchedule
222+
}])
216223
// (Optional) CephCSI CephFS provisioner NodeAffinity (if specified, overrides CSI_PROVISIONER_NODE_AFFINITY).
217224
// CSI_CEPHFS_PROVISIONER_NODE_AFFINITY: "role=cephfs-node"
218225
// (Optional) CephCSI CephFS provisioner tolerations list(if specified, overrides CSI_PROVISIONER_TOLERATIONS).
219226
// Put here list of taints you want to tolerate in YAML format.
220227
// CSI provisioner would be best to start on the same nodes as other ceph daemons.
221-
// CSI_CEPHFS_PROVISIONER_TOLERATIONS: |
222-
// - key: node.rook.io/cephfs
223-
// operator: Exists
228+
CSI_CEPHFS_PROVISIONER_TOLERATIONS: yaml.Marshal([{
229+
key: "node-role.kubernetes.io/control-plane"
230+
operator: v1.#TolerationOpExists
231+
effect: v1.#TaintEffectNoSchedule
232+
}])
224233
// (Optional) CephCSI CephFS plugin NodeAffinity (if specified, overrides CSI_PLUGIN_NODE_AFFINITY).
225234
// CSI_CEPHFS_PLUGIN_NODE_AFFINITY: "role=cephfs-node"
226235
// NOTE: Support for defining NodeAffinity for operators other than "In" and "Exists" requires the user to input a

0 commit comments

Comments
 (0)