rootfs / node-fencing

Apache License 2.0
5 stars 6 forks source link

[RFE] Allow to specify a single node configuration for a set of nodes #46

Open ingvagabund opened 6 years ago

ingvagabund commented 6 years ago

Based on fencing policies a set of nodes can share identical configuration. We should set the configuration only once instead of doing that for each node separately.

For example, if "fence-config-" + nodeName does not exist, try "fence-config-type-" + labelValue(type) instead. The fall-back can be hierarchical as long as it is simple enough to implement without unneeded complexity. Of course, the set of labels that can be actually used this way needs to be limited. It could be part of the fence controller configuration. E.g.

...
node-config-label-fallback:
- type
- label2
- label3
...

In case the "fence-config-type-" + labelValue(type) does not exist, try "fence-config-label2-" + labelValue(label2). And so on.

E.g. a node has type=compute label, then look for "fence-config-type-compute" configmap.

jfriesse commented 6 years ago

How to generate --plug parameter passed to fence agent?

ingvagabund commented 6 years ago

What is the parameter needed for? Can you provide some example?

jfriesse commented 6 years ago

It's old version of config map, but use case is still valid: https://github.com/jfriesse/hpg/blob/master/kubes/config-example.md

And the question is, how to generate the plug option.