Skip to content

Add Device Agent on Kubernetes documentation#6762

Merged
hardillb merged 8 commits intomainfrom
device-agent-kube
Feb 27, 2026
Merged

Add Device Agent on Kubernetes documentation#6762
hardillb merged 8 commits intomainfrom
device-agent-kube

Conversation

@hardillb
Copy link
Contributor

closes #6578

Description

Describes 2 deployment options

  • pre-configured device.yml
  • provisioning token

This is bare minimum docs, might need some more "why" language at the top...

Related Issue(s)

#6578

Checklist

  • I have read the contribution guidelines
  • Suitable unit/system level tests have been added and they pass
  • Documentation has been updated
    • Upgrade instructions
    • Configuration details
    • Concepts
  • Changes flowforge.yml?
    • Issue/PR raised on FlowFuse/helm to update ConfigMap Template
    • Issue/PR raised on FlowFuse/CloudProject to update values for Staging/Production
  • Link to Changelog Entry PR, or note why one is not needed.

Labels

  • Includes a DB migration? -> add the area:migration label

closes #6578

Describes 2 deployment options
@hardillb hardillb added this to the 2.28 milestone Feb 25, 2026
@hardillb hardillb self-assigned this Feb 25, 2026
@ppawlowski
Copy link
Contributor

I thought about placing manifests in the device agent repo, in the examples directory, to make it easier to reference in some kind of scripts/pipelines/etc. It will also be easier for us to automatically scan them and keep image tags up to date. WDYT?

@hardillb
Copy link
Contributor Author

I might just change them to :latest 😛

But yeah, they should probably end up in there as well

@ppawlowski
Copy link
Contributor

@hardillb please check my changes. Merge the PR anytime.

@ppawlowski
Copy link
Contributor

To clarify: the navOrder value change in the README.md file fixes ordering in the higher level navigation in the sidebar.

Current:
Zrzut ekranu 2026-02-25 o 13 36 49

After the order change:
Zrzut ekranu 2026-02-25 o 13 37 26

@allthedoll
Copy link
Contributor

I am still reviewing 😇

labels:
app: device-one
spec:
replicas: 1
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since this deployment uses a single pvc and provisioning token, should we explicitly note that this example assumes one device agent per deployment and should not be scaled beyond one replica?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We could add a note that horizontal scaling requires using a StatefulSet

initContainers:
- name: config-copy
image: busybox:latest
command:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

since this initContainer only copies the file if it does not already exist, should we add a short note explaining that the provisioning configuration is only applied on first start and that subsequent restarts preserve the existing device.yml on the pvc?

- ReadWriteOnce
resources:
requests:
storage: 1Gi
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this assumes the cluster has a default StorageClass. Should we add a brief note that users may need to set storageClassName depending on their Kubernetes setup, for example storageClassName: <your-storage-class>?

Also, should we mention what gets stored here (the updated device.yml and installed nodes) so users can size the pvc appropriately?

@hardillb hardillb requested a review from allthedoll February 27, 2026 08:18
Copy link
Contributor

@allthedoll allthedoll left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I added a gpt suggested why/when if you care for it @hardillb. Otherwise it's looking good.

@hardillb hardillb merged commit 37d3bda into main Feb 27, 2026
16 checks passed
@hardillb hardillb deleted the device-agent-kube branch February 27, 2026 13:37
@hardillb hardillb moved this to Done in 🛠 Development Feb 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

Kubernetes support for Device Agent

3 participants