BKE
This is the documentation for BKE 2.6.3, a release candidate. It can be installed, but it has not yet been run on every cluster we operate ourselves, and it has no release date until it has. The latest release is BKE 2.6.2. Read this page for BKE 2.6.2.

The other components

Storage has its own page, and so do ingress and logging. This page covers the remaining components in daily use — what each gives you, the first commands to reach for, and the one thing about each that is not obvious.

As on the two pages before it, the usage here is guidance for your assistance: BKE installs and upgrades these components at tested versions, and how you use them — labels, dashboards, autoscaling — is your own configuration to operate.

metrics-server

metrics-server collects how much CPU and memory every node and pod is actually using. Two things consume those figures:

kubectl top nodes
kubectl top pods -A --sort-by=memory

is the quick answer to “what is using this cluster”, and worth knowing before capacity questions become urgent — a node consistently near its memory is a node that will start evicting pods.

The second consumer is autoscaling: a HorizontalPodAutoscaler on one of your applications reads its figures from metrics-server. Nothing needs configuring for either; the component works from installation.

Kuma

Kuma is a service mesh: it puts a proxy beside each of your application’s pods and controls the traffic between them — encryption between services, retries, timeouts, and per-service traffic figures, all without changing application code.

Installing it changes nothing by itself, and that is deliberate. No proxy is added to any pod until you ask for one, so enabling the component is safe on a running cluster. Applications join the mesh one namespace at a time:

kubectl label namespace retail kuma.io/sidecar-injection=enabled

The proxy is added when a pod is created, so pods already running in that namespace join as they are next restarted — a deploy, or kubectl -n retail rollout restart deployment/<name>, brings them in.

The mesh starts with no policies. The default mesh has no identity, so no mutual TLS, and no traffic permissions. Before enrolling a namespace, give the mesh a MeshIdentity and a MeshTrafficPermission that allows the clients you expect. Retries are off unless a MeshRetry turns them on.

Outbound traffic is open. BKE sets Kuma’s restrictOutbound default to off, so a meshed workload reaches meshed services by name and addresses outside the mesh without declaring them. This is set in /etc/bke/values/kuma.yaml:

controlPlane:
  envVars:
    KUMA_DEFAULTS_RESTRICT_OUTBOUND: "false"

To use Kuma’s strict mode, in which a proxy reaches only the services it declares and nothing outside the mesh, set the value to "true" and run apply.sh --commit. Then give each workload its reachable backends (kuma.io/reachable-backends), and a MeshPassthrough for each destination outside the mesh. Do this before enrolling a namespace: in strict mode, a workload without them reaches nothing. Your value is kept at every upgrade; if a release changes this setting, the report stops and tells you how to keep yours (Upgrading).

Kuma’s control plane updates its replica catalog every 5 minutes. For up to 5 minutes after a control-plane replica restarts, kumactl inspect of the workloads connected to it can fail. Traffic and policies do not depend on the catalog.

Treat the mesh as an undertaking rather than a switch: start with one non-critical namespace, and consult Kuma’s own documentation for each policy before enrolling anything that matters. A namespace can leave the mesh the same way it joined: remove the label and restart the workloads.

netdata

netdata is per-node monitoring with per-second resolution: CPU, memory, disks, network, containers, and the applications it recognises, each node collecting its own figures and streaming them to a parent inside the cluster.

The dashboard is not exposed outside the cluster by default. To look at it, forward the parent’s port to your own machine:

kubectl -n monitoring get svc
kubectl -n monitoring port-forward svc/<the parent service> 19999:19999

then open http://localhost:19999. Substitute the namespace your config.yaml names.

A filling volume raises an alarm. The parent raises bke_volume_space_usage when a PersistentVolumeClaim is more than 80% full, a warning, and again at more than 90%, a critical alarm. bke_volume_inodes_usage does the same for the volume’s inodes. The figures are the kubelet’s, collected once a minute on the node where the volume is mounted, so an alarm is raised within about three minutes of a volume passing a threshold and clears within about three minutes of it falling below. The alarm names the namespace and the claim. If the kubelet’s figures for a volume stop arriving, its alarm shows no value and is not raised. They are collected by the job kubelet_volumes, under child.configs.prometheus in /etc/bke/values/netdata.yaml; if you remove or disable that entry, these two alarms are never raised.

Nodes, disks and Longhorn raise alarms. The parent raises these, each naming the node, disk or volume:

Alarm Level Raised when First action
bke_node_not_ready critical a node has not been Ready for 2 minutes check the node and its kubelet
bke_node_pressure warning a node reports disk, memory or process pressure check its disk, memory and process count
bke_node_network_unavailable critical a node has had no Pod network for 2 minutes check calico-node on that node
bke_disk_space_usage warning, critical the disk that holds the node’s containers passes Longhorn’s floor (warning), or 5 points above it and at least 85% (critical) free space, or give Longhorn a disk of its own
bke_disk_space_sustained warning the same disk has stayed above BKE’s image clean-up point for 30 minutes find what is using the space
bke_longhorn_disk_usage warning, critical a Longhorn disk passes the same two thresholds free space, or give Longhorn more disk
bke_longhorn_volume_degraded warning a Longhorn volume has been degraded for 15 minutes check the node’s Longhorn disk
bke_longhorn_volume_faulted critical a Longhorn volume is faulted check the volume in Longhorn and the nodes that held its replicas
bke_longhorn_metrics_missing critical no Longhorn figures have arrived from a node for 5 minutes check that node’s longhorn-manager Pod and Longhorn’s NetworkPolicy

Longhorn’s floor is 100 minus storageMinimalAvailablePercentage in config.yaml: at that point Longhorn places no new replica on the disk. Each disk threshold clears 5 points below where it raises.

Which disks are watched. Two kinds: on each node, the disk that holds the node’s containers, which is usually, but not always, the operating system’s root disk; and every disk Longhorn uses, whatever its path, from Longhorn’s own figures. No other disk mounted on a node is watched. If your nodes have other disks, for example for logs or for data outside Longhorn, watch them yourself. The early disk warning sits at BKE’s image clean-up point: 70%, unless kubelet.imageGC sets it. A threshold set by hand on the nodes is not seen by this alarm; check.sh reports each node’s actual threshold. Degraded waits 15 minutes so that a replica rebuilding after a drain or a reboot does not raise it.

The node alarms read the k8s-state agent’s charts, and the Longhorn alarms read the figures each longhorn-manager serves, which that agent collects. Longhorn’s NetworkPolicy admits the agent through networkPolicies.metricsScrapeSources in /etc/bke/values/longhorn.yaml; if you remove that entry, the Longhorn alarms report their figures missing.

If the Longhorn manager is missing from a node that is otherwise Ready, no alarm is raised. check.sh lists each node’s Longhorn manager, so run it after any change to the cluster.

Like every alarm, these are shown on the parent’s dashboard. netdata itself sends no notification as BKE installs it: the health file of /etc/bke/values/netdata.yaml sets email and Slack to NO and names no recipient. An alarm reaches a person in one of two ways. Either you claim the cluster into Netdata Cloud, which then notifies by the rules you set in your space there, or you turn on a channel in that health file. With neither, an alarm is seen only by someone looking at the dashboard.

To turn on a channel, set it in the health file and put its credentials, such as a webhook URL, in the notifications Secret: create it from /etc/bke/secrets.d/netdata-notifications/ (or the name you set in components.netdata.settings.notifications.secret), list it under the netdata component’s secrets:, and refer to each key as ${env:KEY} in the health file. The parent starts without that Secret if it does not exist.

If you grow a BKE volume, set its value to the new size first. netdata’s volumes are sized by parent.database.volumesize, parent.alarms.volumesize and k8sState.persistence.volumesize in /etc/bke/values/netdata.yaml. Kubernetes cannot shrink a volume, so apply.sh refuses, before it changes anything, a values file that sets a volume below its size on the cluster, and names the value to set.

If you use Netdata Cloud, the cloud.* settings on the config.yaml page claim the cluster into your space there — and the claim token belongs in /etc/bke/secrets.d/, not in config.yaml. One failure mode is worth repeating from the Secrets page: a missing claim token is silent. netdata runs, the dashboards work, and the cluster simply never appears in Netdata Cloud — if you expected it there and it is absent, check that Secret first.

Certificates

cert-manager is covered where it is used: Ingress with Kong shows the issuer you create once and the two lines each application adds to get and renew a TLS certificate.

Raising a support ticket

Support is raised through the console, under Support. Response times are those of your support plan.

A ticket that names the following can usually be answered in one round rather than three:

  • The BKE version, from any node:

    curl -sL https://bke.maml.uk/version.sh | sh
    
  • The exact text of the refusal or warning, pasted rather than summarised. Every refusal names its cause, and the wording identifies the check that produced it.
  • What was run, on which node — the command, and whether the node is a control-plane member or a worker.
  • What check.sh says now, if the problem is an install or an upgrade — run it on the affected node and paste the failures.

The report apply.sh prints before --commit is safe to paste: it contains object names and version numbers, never credentials.