Beta · v0.1.0

Kubernetes objects, as Home Assistant devices.

A binding selects objects of one kind by label. Each becomes a device in Home Assistant, each entity maps to a field, and Home Assistant's commands are written back into it. Optionally the other way too: Home Assistant devices mirrored into the cluster.

$ kubectl apply --server-side -k github.com/taumatix/kubeassistant//config/default?ref=v0.1.0

A binding

This turns every Deployment labelled tier: media into a Home Assistant device with a number that scales it and a sensor that reports its ready replicas.

apiVersion: kubeassistant.taumatix.dev/v1
kind: DeviceBinding
metadata: {name: media, namespace: home}
spec:
  target:
    apiVersion: apps/v1
    kind: Deployment
    selector: {matchLabels: {tier: media}}
  device:
    name: "{{ .metadata.name }}"
    manufacturer: Kubernetes
    model: "{{ .kind }}"
  entities:
    replicas:
      platform: number
      path: .spec.replicas
      options: {number: {min: 0, max: 3}}
    ready:
      platform: sensor
      path: .status.readyReplicas

Documentation

The same text as the README, split by task.

Run the operator from the public image, with or without mirroring.

Publish Kubernetes objects to Home Assistant, and write its commands back.

What a binding can reach, and the RBAC that decides it.

Home Assistant devices as Kubernetes objects, readable and operable.

Flags, TLS, leader election and the broker.

Beta

It is tested against a real Home Assistant, a real broker and a real API server on every pull request, and it has had little use outside those suites. What beta means here.