Addons
Configuration🔗︎
Kubespray addons🔗︎
Kubespray offers many useful configurable addons, such as the Ingress-NGINX controller, MetalLB, and so on.
Kubespray addons can be configured in Kubitect under the addons.kubespray
property. The configuration of Kubespray addons is exactly the same as the default configuration of Kubespray addons, since Kubitect simply copies the provided configuration into Kubespray's group variables when the cluster is created.
All available Kubespray addons can be found in the Kubespray addons sample, while most of them are documented in the official Kubespray documentation.
addons:
kubespray:
# Nginx ingress controller deployment
ingress_nginx_enabled: true
ingress_nginx_namespace: "ingress-nginx"
ingress_nginx_insecure_port: 80
ingress_nginx_secure_port: 443
# MetalLB deployment
metallb_enabled: true
metallb_speaker_enabled: true
metallb_ip_range:
- "10.10.9.201-10.10.9.254"
metallb_pool_name: "default"
metallb_auto_assign: true
metallb_version: v0.12.1
metallb_protocol: "layer2"
Rook addon🔗︎
v2.2.0 Experimental
Rook is an orchestration tool that allows Ceph, a reliable and scalable storage, to run within a Kubernetes cluster.
In Kubitect, Rook can be enabled by simply setting addons.rook.enabled
to true.
addons:
rook:
enabled: true
Rook is deployed only on worker nodes. When a cluster is created without worker nodes, Kubitect attempts to install Rook on the master node.
In addition to enabling the Rook addon, at least one data disk must be attached to a node suitable for Rook deployment. If Kubitect determines that no data disks are available for Rook, it will simply skip installing Rook.
By default, Rook uses all available data disks attached to worker nodes and converts them to distributed storage. Similarly, all worker nodes are used for Rook deployment. To restrict on which nodes Rook resources can be deployed, the node selector can be used.
Node selector🔗︎
The node selector is a dictionary of node labels used to determine which nodes are eligible for Rook deployment. If a node does not match all of the specified node labels, Rook resources cannot be deployed on that node and disks attached to that node are not used for distributed storage.
addons:
rook:
nodeSelector:
rook: true
Version🔗︎
By default, the latest (master
) Rook version is used. To use a specific version of Rook, set the addons.rook.version
property to the desired version.
addons:
rook:
version: v1.9.9