Open ingvagabund opened 6 years ago
How to generate --plug
parameter passed to fence agent?
What is the parameter needed for? Can you provide some example?
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.
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.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.