broker¶
A definition representing a single specified Kafka broker.
Definition¶
Metadata¶
-
name (string), required
The ID of the target broker.
-
labels (map[string]string)
Labels are key-value pairs associated with the definition.
Labels are not directly used by kdef and have no remote state. They are purely for the purposes of storing meaningful attributes with the definition that would be relevant to users.
Spec¶
-
configs (map[string]string)
A map of key-value config pairs.
Note that Kafka's API does not allow reading
password
type broker configs. Applying these configs is supported, butkdef apply
will always show a diff for them. -
deleteUndefinedConfigs (bool)
Allows kdef to delete configs that are not defined in
configs
.Caution
Enabling allows kdef to permanently delete configs. Always confirm operations with
--dry-run
.
Examples¶
apiVersion: v1
kind: broker
metadata:
name: "1"
spec:
configs:
leader.replication.throttled.rate: "700000000"
follower.replication.throttled.rate: "700000000"
Schema¶
Definition:
{
"apiVersion": string,
"kind": string,
"metadata": {
"name": string,
"labels": [
string
]
},
"spec": {
"configs": {
string: string
},
"deleteUndefinedConfigs": bool
}
}