Kubernetes in the Sky: Bringing DevOps and GitLab CI/CD to Embedded Drone Systems
How lightweight Kubernetes, containerized workloads, and automated deployment pipelines are changing the way we develop, operate, and maintain software aboard unmanned aircraft.
CloudVenture Team
Introduction: When DevOps Takes Flight
DevOps has transformed how we develop and operate software in data centers and cloud environments. Kubernetes orchestrates applications across thousands of servers, CI/CD pipelines automate releases, and infrastructure-as-code makes complex environments reproducible.
But what happens when the infrastructure is flying several hundred meters above the ground?
Modern unmanned aerial vehicles (UAVs) are becoming sophisticated computing platforms. Beyond traditional flight controllers, drones increasingly carry powerful embedded computers capable of processing camera feeds, running artificial intelligence models, analyzing sensor data, and communicating with distributed systems.
These capabilities create an interesting engineering opportunity: applying established DevOps principles to embedded aircraft systems.
Imagine a drone running a lightweight Kubernetes distribution such as K3s, hosting containerized computer vision applications, collecting telemetry, and synchronizing with a ground-based infrastructure platform.
Now imagine deploying a new version of its object-detection software through a GitLab CI/CD pipeline, validating the application in simulation, and automatically preparing the release for installation during the next maintenance window.
The technology required to build such a system already exists.
The difficult part is designing it to operate reliably under the constraints of embedded hardware, intermittent connectivity, limited power, and aviation safety requirements.
This article explores how to approach that challenge.
1. The Modern Drone Is More Than a Flight Controller
Traditional drones rely on a dedicated flight controller responsible for maintaining stable flight.
The controller processes information from sensors such as accelerometers, gyroscopes, GPS receivers, and barometers. Based on this information, it continuously adjusts motor outputs and maintains the aircraft’s attitude and position.
Popular open-source flight control platforms include PX4 and ArduPilot.
These systems typically run on microcontrollers or dedicated embedded hardware, using firmware and real-time operating environments optimized for predictable timing.
However, advanced UAV applications often require additional computing capabilities.
Examples include:
- Real-time object detection and image classification.
- AI-assisted inspection of infrastructure.
- Autonomous mission planning.
- Processing thermal and multispectral imagery.
- Sensor fusion and environmental monitoring.
- Secure data collection and synchronization.
- Communication with remote fleet-management systems.
These workloads are commonly executed on a separate companion computer, sometimes called a mission computer.
A companion computer might be an NVIDIA Jetson, an ARM-based industrial computer, or another Linux-capable embedded platform.
The flight controller continues to handle essential flight operations, while the companion computer executes higher-level applications.
This separation provides an important architectural boundary.
Kubernetes should not replace a deterministic flight controller. It should manage suitable applications running alongside it.
The PX4 project explicitly supports architectures in which a Linux companion computer communicates with the flight controller through MAVLink or other supported middleware.
This makes companion computers a practical foundation for embedded DevOps.
2. Why Run Kubernetes on a Drone?
At first glance, running Kubernetes aboard an aircraft might appear unnecessary.
Why introduce container orchestration when a few Linux services could accomplish the same task?
For simple aircraft, conventional Linux services may indeed be the better solution.
However, complexity increases when a drone carries multiple independently developed applications.
Consider an industrial inspection UAV running:
- A camera acquisition service.
- An AI inference engine.
- A telemetry collector.
- A mission-data processor.
- A local storage service.
- A communication gateway.
- A diagnostics agent.
Each component may have its own dependencies, release cycle, resource requirements, and failure conditions.
Managing these applications directly through system packages and scripts becomes increasingly difficult.
Containerization introduces a more consistent deployment model.
Applications can be packaged independently, tested against known dependencies, and deployed using reproducible configurations.
Kubernetes adds workload management, health checks, resource allocation, and standardized configuration.
The goal is not to turn an aircraft into a conventional cloud server.
It is to bring selected cloud-native operational capabilities into an embedded environment.
Why K3s?
K3s is a lightweight Kubernetes distribution designed for environments where conventional Kubernetes installations may be unnecessarily resource-intensive.
It supports ARM architectures and combines several Kubernetes components into a simplified distribution.
According to its official documentation, baseline resource requirements include:
| Component | Minimum CPU | Minimum RAM |
|---|---|---|
| K3s server | 2 cores | 2 GB |
| K3s agent | 1 core | 512 MB |
These are baseline requirements, not complete capacity estimates for applications running on the device.
A practical aircraft implementation must reserve additional resources for image processing, telemetry, operating-system services, and workload spikes.
Nevertheless, K3s makes it technically feasible to deploy Kubernetes on compact embedded computers.
The interesting question is no longer whether Kubernetes can run aboard a drone, but whether its operational advantages justify the resources and complexity it introduces.
3. Architecture: A Flying Edge-Computing Node
Consider a UAV equipped with two independent computing systems.
The first is a flight controller running PX4.
The second is a Linux-based companion computer running K3s.
The two communicate through a serial or Ethernet connection, depending on the hardware.
A conceptual architecture looks like this:
GROUND INFRASTRUCTURE
+---------------------------+
| |
| GitLab CI/CD |
| GitLab Registry |
| Release Management |
| Fleet Monitoring |
| |
+-------------+-------------+
|
LTE / 5G / Wi-Fi
|
Intermittent Connection
|
+-----------------+----------------+
| UAV |
| |
| Linux Companion Computer |
| +--------------------------+ |
| | K3s | |
| | | |
| | Computer Vision | |
| | AI Inference | |
| | Telemetry Processing | |
| | Data Synchronization | |
| | Diagnostics | |
| +------------+-------------+ |
| | |
| MAVLink / DDS |
| | |
| +------------+-------------+ |
| | PX4 Flight Controller | |
| | | |
| | Flight Stabilization | |
| | Navigation | |
| | Safety Mechanisms | |
| +--------------------------+ |
| |
+----------------------------------+
In this model, the UAV functions as a self-contained edge-computing platform.
The companion computer can execute applications without relying on continuous connectivity.
Telemetry and mission data can be stored locally and transmitted when an appropriate connection becomes available.
Application versions can be managed through a centralized release system.
Most importantly, losing access to the Kubernetes environment must not compromise the flight controller’s independent safety mechanisms.
Single-node Kubernetes versus remote orchestration
One architectural decision deserves particular attention.
It is tempting to treat every aircraft as a Kubernetes worker connected to a centralized ground-based control plane.
This creates significant problems when connectivity is interrupted.
Kubernetes assumes certain network and control-plane behaviors that cannot be guaranteed over an unreliable aircraft communication link.
For many UAV applications, a better approach is to operate a self-contained, single-node K3s installation aboard each aircraft.
The aircraft maintains its local workload state independently.
A ground-based management platform controls the desired software versions and deployment policies.
Synchronization occurs when communication is available.
This architecture avoids making aircraft operation dependent on the availability of a remote Kubernetes API server.
4. Reference Case Study: Building a GitLab CI/CD Pipeline for an Embedded UAV Platform
Let’s examine a representative engineering scenario.
The following is a reference architecture and illustrative case study, not a claim of a completed production deployment or verified flight-test results.
Project scenario
An engineering team is developing a fleet of industrial inspection drones.
Each aircraft is equipped with:
- A PX4-compatible flight controller.
- An ARM64 Linux companion computer.
- A camera used for infrastructure inspection.
- An LTE or Wi-Fi communication interface.
- Local persistent storage.
- A dedicated power-management system.
The aircraft runs several containerized applications:
Computer Vision Service
Processes camera data and identifies objects or potential infrastructure defects.
Telemetry Service
Receives selected aircraft telemetry and stores application-relevant information for later analysis.
Mission Data Service
Processes inspection results and associates them with mission identifiers, locations, and timestamps.
Synchronization Service
Transfers collected data to ground infrastructure when connectivity becomes available.
Diagnostics Service
Collects application health information, resource consumption, and system events.
The engineering challenge is to update these applications consistently without requiring technicians to manually install software packages on every aircraft.
The proposed solution combines GitLab CI/CD, an OCI container registry, and K3s.
Step 1: Standardizing the development environment
The team organizes its applications into Git repositories managed through GitLab.
Each service includes its source code, container build instructions, automated tests, and deployment configuration.
A simplified repository structure might look like this:
uav-edge-platform/
|
+-- applications/
| +-- computer-vision/
| +-- telemetry/
| +-- mission-data/
| +-- synchronization/
|
+-- kubernetes/
| +-- base/
| +-- aircraft-profiles/
| +-- resource-limits/
|
+-- simulation/
| +-- px4/
| +-- integration-tests/
|
+-- ci/
| +-- security/
| +-- release/
|
+-- .gitlab-ci.yml
This structure separates application development from deployment configuration.
It also allows different aircraft configurations to share common components while maintaining hardware-specific settings.
Step 2: Building ARM-compatible containers
Many embedded companion computers use ARM64 processors.
Therefore, the CI/CD pipeline must generate container images compatible with the target architecture.
GitLab runners can execute automated builds using appropriate native ARM64 runners or cross-platform build tooling.
A typical pipeline includes:
- Source-code validation.
- Unit testing.
- Static code analysis.
- Container image construction.
- Dependency and vulnerability scanning.
- Integration testing.
- Publishing versioned container images.
Every production release should be associated with an immutable image digest rather than a mutable tag such as latest.
This provides a reproducible mapping between source code, build artifacts, and aircraft software versions.
Step 3: Validating applications before deployment
Software running on an aircraft requires additional validation beyond conventional web-application testing.
A successful container build does not demonstrate that the application behaves correctly in the aircraft environment.
The pipeline should therefore include multiple testing stages.
Software-in-the-Loop (SITL)
PX4 simulation environments can be used to test software integration without requiring a physical aircraft.
The pipeline can validate telemetry interfaces, message handling, application restarts, and simulated communication failures.
Hardware-in-the-Loop (HITL)
Where supported by the selected hardware and firmware, tests can incorporate physical controllers and representative peripherals.
This helps expose integration issues that software simulation alone may miss.
Resource-constrained testing
Applications should be tested against realistic CPU, memory, storage, and thermal limits.
An AI model that performs well on a development workstation may behave very differently on a compact embedded computer.
Failure testing
The team should deliberately simulate conditions such as:
- Loss of network connectivity.
- Application crashes.
- Container restart loops.
- Exhausted local storage.
- Corrupted or unavailable application data.
- Unexpected companion-computer restarts.
The objective is to demonstrate predictable behavior under conditions that aircraft may encounter during operation.
Step 4: Creating a controlled release
Once the pipeline passes its validation stages, GitLab produces a versioned release.
The release should include more than container images.
A complete release package may contain:
- Container image digests.
- Kubernetes manifests or Helm charts.
- Supported hardware profiles.
- Software compatibility information.
- Test results.
- Vulnerability scan results.
- Software bill of materials (SBOM).
- Release approval records.
- Cryptographic signatures.
This creates an auditable software supply chain.
For engineering teams responsible for multiple aircraft, the ability to identify the exact software configuration installed on each device is particularly valuable.
Step 5: Deploying software to the aircraft
This is where embedded deployment differs significantly from conventional Kubernetes operations.
In a cloud environment, deploying a new version may involve updating a Kubernetes Deployment and allowing the orchestrator to replace the existing application.
On an aircraft, updates should be subject to additional operational controls.
For example, deployment policies may require the following conditions:
- The aircraft is on the ground.
- Motors are disarmed.
- No mission is active.
- Sufficient battery power is available.
- Required release artifacts have been downloaded and verified.
- An authorized operator or maintenance process has approved the update.
The deployment system can then apply the new application configuration.
The aircraft restarts the affected services, performs post-deployment health checks, and records the installed version.
If validation fails, the deployment mechanism should restore a previously verified release.
This requires a dedicated update controller with explicit safety policies. Kubernetes does not provide aircraft-specific deployment authorization or complete rollback guarantees by itself.
A successful GitLab pipeline should authorize a release candidate, not automatically modify software aboard an aircraft in flight.
5. GitLab CI/CD as the Foundation of an Embedded Software Delivery Platform
One of the most significant advantages of GitLab is its ability to consolidate much of the software delivery process.
Source-code management, automated testing, artifact generation, security scanning, and release approvals can be integrated into a single workflow.
A simplified delivery pipeline might look like this:
Developer Commit
|
v
GitLab Merge Request
|
v
Code Quality & Unit Tests
|
v
ARM64 Container Build
|
v
Security & Vulnerability Scanning
|
v
PX4 SITL Integration Tests
|
v
Hardware Validation
|
v
Signed Release Artifact
|
v
Deployment Approval
|
v
Ground-Based Fleet Management
|
v
Aircraft Release Download
|
v
Pre-Deployment Safety Checks
|
v
K3s Application Update
|
v
Post-Deployment Validation
|
v
Release Confirmation
This approach separates three responsibilities.
GitLab is responsible for producing and validating software releases.
The fleet-management system is responsible for distributing authorized releases and maintaining deployment state.
The aircraft is responsible for determining whether installation can safely proceed.
That separation matters.
The CI/CD platform should not become a direct authority over aircraft flight behavior.
GitOps for embedded aircraft
GitOps can extend this model by storing desired application configurations in Git.
For example, a repository may define which software version should run on a particular aircraft hardware profile.
A ground-based management service can reconcile approved release configurations with aircraft inventory.
However, conventional continuously connected GitOps behavior needs modification for embedded environments.
Aircraft may remain offline for hours or days.
Some may operate in remote locations with no reliable internet connectivity.
A suitable solution must tolerate disconnected operation, retain known-good configurations, and postpone updates until appropriate maintenance conditions exist.
The key principle is simple:
The desired state may be managed centrally, but deployment execution must remain locally controlled.
6. The Biggest Challenge: Connectivity
Aircraft are not conventional Kubernetes nodes.
A server in a data center typically has stable networking, predictable power, and reliable access to infrastructure services.
A drone has none of those guarantees.
Connectivity may change continuously as the aircraft moves between coverage areas.
LTE and 5G connections may experience variable latency, packet loss, and temporary outages.
Wi-Fi connectivity may be available only when the aircraft returns to its operating base.
For this reason, the onboard software architecture must be designed around intermittent connectivity.
Offline-first operation
Applications should continue performing their local tasks even when disconnected from ground infrastructure.
An image-processing application should not require access to GitLab to analyze a camera feed.
A telemetry collector should buffer data locally when network access is unavailable.
A mission-data service should preserve results until synchronization becomes possible.
K3s can manage locally available workloads without continuous communication with GitLab.
However, the system must ensure that required container images, configuration, and runtime dependencies are already available onboard.
Store-and-forward communication
Instead of assuming continuous connectivity, the aircraft can implement a store-and-forward architecture.
Data is written to local persistent storage.
A synchronization service monitors connectivity and transfers pending information when conditions permit.
Transfers should support retry logic, integrity verification, and resumable operations where appropriate.
This minimizes the risk of losing mission data during network interruptions.
Deployment during maintenance windows
Large container images should generally be transferred before installation.
A deployment system can preload artifacts while the aircraft is connected to a reliable network.
Installation then takes place only after verifying that every required artifact is available.
This avoids partially completed updates caused by connectivity loss.
For fleets operating from a shared base, local registries or artifact caches can reduce repeated downloads over limited internet connections.
7. Reliability and Safety: Where Cloud-Native Engineering Must Adapt
Kubernetes offers mechanisms for restarting failed applications and managing resources.
These are useful capabilities, but they must not be confused with aviation safety guarantees.
A Kubernetes pod restart is not equivalent to a deterministic recovery mechanism.
The distinction becomes especially important when software interacts with aircraft navigation or flight behavior.
Separate flight-critical and non-flight-critical responsibilities
The flight controller should retain independent responsibility for safety-critical operations such as stabilization and essential failsafe behavior.
The companion computer may provide advanced mission functionality, but failure of its Kubernetes environment must not eliminate the aircraft’s ability to enter an appropriate safe state.
Applications that send commands to the flight controller require carefully designed interfaces, bounded behavior, and independent safety controls.
For example, if an AI application stops producing valid output, the system should not allow stale or uncontrolled commands to continue indefinitely.
Resource isolation
Embedded systems operate under strict resource constraints.
A computer vision application may consume substantial CPU, GPU, and memory resources.
Without appropriate limits, it could starve other applications.
Kubernetes provides CPU and memory requests and limits, but these are only part of the solution.
Engineers must also consider:
- GPU and accelerator allocation.
- Storage I/O contention.
- Thermal throttling.
- Power consumption.
- Operating-system scheduling.
- Kernel and device-driver behavior.
- Network interface availability.
Particularly latency-sensitive functions may require dedicated services, real-time scheduling, or isolation outside Kubernetes.
Monitoring without excessive overhead
A conventional cloud observability stack may be too resource-intensive for a small companion computer.
Instead of installing a complete Prometheus, Loki, and Grafana deployment aboard each aircraft, a lightweight collector can capture selected metrics and logs.
These might include CPU and memory consumption, application health, disk utilization, temperatures, container restart counts, and software versions.
Telemetry can be buffered locally and transmitted to a centralized monitoring platform when connectivity permits.
A ground-based observability environment can then aggregate information across the fleet.
This provides operational visibility without carrying an entire data-center monitoring stack into the air.
8. Security: Protecting the Software Supply Chain
Security becomes particularly important when software is deployed to devices that may operate remotely and connect through untrusted networks.
An embedded DevOps platform should treat every software release as a controlled artifact.
GitLab can serve as the starting point for this process.
Container and dependency scanning
Every image should undergo vulnerability analysis before it becomes eligible for deployment.
Tools such as Trivy can identify known vulnerabilities in operating-system packages and application dependencies.
An SBOM generated with a tool such as Syft provides an inventory of software components.
This helps engineering teams understand the composition of deployed applications and evaluate newly disclosed vulnerabilities.
Signed software artifacts
Container images and deployment bundles should be cryptographically signed.
The onboard update mechanism should verify these signatures before accepting a release.
This helps protect against unauthorized or modified artifacts.
Secure communications
Communication between the aircraft and ground infrastructure should use authenticated, encrypted channels.
Depending on the deployment environment, technologies such as mutual TLS or WireGuard may be appropriate for specific management and data-transfer connections.
However, secure transport is only one layer of protection.
The system also needs strong device identities, key rotation, restricted permissions, and a strategy for recovering compromised credentials.
Restricted deployment permissions
GitLab CI/CD credentials should not provide unrestricted access to aircraft systems.
An update service should accept only authorized release artifacts and enforce local deployment policies.
Each aircraft should have its own identity so that compromised credentials do not automatically provide access to an entire fleet.
Security controls should also protect against software downgrades, unauthorized configuration changes, and persistence of compromised workloads.
9. Why Not Just Use Docker?
This is a reasonable question.
For a small embedded device running two or three applications, Docker or Podman with systemd may be simpler and more resource-efficient than Kubernetes.
The additional operational complexity of K3s must provide a clear benefit.
A lightweight Kubernetes distribution becomes more attractive when the application platform contains multiple services with independent lifecycle requirements.
It also helps when engineering teams want to reuse Kubernetes deployment practices across development, testing, and production environments.
For organizations already operating Kubernetes-based infrastructure, the ability to use familiar deployment manifests, tooling, and operational models can reduce differences between cloud and embedded software delivery.
However, this advantage does not eliminate the need for hardware-specific engineering.
A drone is not merely a smaller data center.
The correct architecture depends on workload complexity, available computing resources, operational requirements, and acceptable failure modes.
10. Beyond Drones: Kubernetes and DevOps in Aircraft Systems
The principles described here are not limited to small multirotor drones.
They can also apply to larger unmanned aircraft and other embedded aerospace platforms.
Potential applications include:
Remote sensing aircraft
Processing multispectral imagery, environmental measurements, and geographical information directly onboard.
Industrial inspection UAVs
Executing containerized image-analysis applications and synchronizing inspection results after landing.
Research aircraft
Managing experimental data acquisition, sensor interfaces, and scientific processing workloads.
Unmanned cargo platforms
Supporting non-flight-critical monitoring, diagnostics, communications, and logistics applications.
Aircraft maintenance and diagnostic systems
Running isolated diagnostic applications and collecting operational data for analysis.
Nevertheless, aviation software introduces regulatory and assurance requirements that cannot be addressed by Kubernetes or GitLab alone.
For certified aircraft systems, applicable development assurance, configuration management, verification, and cybersecurity requirements must be evaluated separately.
Standards and guidance such as DO-178C may become relevant depending on the aircraft, system classification, intended operation, and certification basis.
Containerization does not automatically make software suitable for safety-critical operation.
Similarly, a successful CI/CD pipeline is not evidence of regulatory compliance.
The most practical initial applications for cloud-native embedded platforms are generally those that can remain isolated from essential flight-control functions.
11. From Individual Aircraft to Fleet-Wide DevOps
The long-term opportunity is bigger than running Kubernetes on one drone.
Consider an organization operating dozens or hundreds of aircraft.
Each device may have different hardware capabilities, installed sensors, software versions, and maintenance schedules.
Without centralized software management, maintaining this fleet becomes an expensive operational challenge.
A fleet-oriented DevOps platform can provide a structured inventory of hardware and software.
Engineering teams can associate releases with supported aircraft profiles and identify which devices have installed a particular version.
Deployment policies can define staged rollouts across test aircraft, pilot groups, and approved production fleets.
Failed releases can be investigated using build records, test reports, and locally collected diagnostics.
Security teams can identify devices running software affected by a newly disclosed vulnerability.
The same core DevOps principles used in cloud environments become useful here:
- Reproducible builds.
- Automated testing.
- Immutable artifacts.
- Declarative configuration.
- Controlled releases.
- Continuous security assessment.
- Observability.
- Traceability.
But the operational model must be adapted to aircraft-specific constraints.
A deployment that is acceptable for a cloud-hosted service may be unacceptable for an aircraft preparing for takeoff.
Fleet management therefore requires a combination of software automation and explicit operational authority.
12. Lessons from the Reference Architecture
This case study highlights several architectural principles that should guide embedded DevOps implementations.
Kubernetes should manage applications, not replace flight-control firmware
Dedicated flight controllers remain responsible for the functions they are designed to perform.
K3s operates on the companion computer and manages suitable higher-level workloads.
Local independence is essential
The aircraft must not require continuous access to GitLab, a container registry, or a remote Kubernetes control plane to continue its permitted local operations.
CI/CD requires additional deployment gates
Automated builds and tests improve software quality, but installation aboard an aircraft should require explicit operational checks and appropriate approval.
Resource efficiency matters
CPU cycles, memory, storage, thermal capacity, electrical power, and payload weight are all constrained resources.
Every additional platform component must justify its cost.
Security must cover the entire lifecycle
Source code, dependencies, build artifacts, release distribution, device identities, and onboard execution environments all require protection.
Rollback must be engineered and tested
Returning to a previous container image may not restore persistent data, application configuration, or firmware compatibility.
Reliable recovery requires versioned configurations, compatible data handling, and verified fallback behavior.
Operational simplicity is a design objective
K3s should be selected because it solves a real application-management problem, not simply because Kubernetes is already familiar to the engineering team.
Conclusion: Cloud-Native Engineering Beyond the Cloud
The boundaries between cloud infrastructure, edge computing, and embedded systems are becoming less distinct.
Modern aircraft increasingly contain powerful Linux-capable computers running sophisticated applications.
These platforms create opportunities to apply DevOps practices that have already transformed conventional software engineering.
K3s can provide a standardized environment for containerized workloads aboard a drone.
GitLab CI/CD can automate software builds, testing, security analysis, and release preparation.
A fleet-management platform can distribute approved software versions across geographically distributed devices.
Together, these technologies can make embedded application development more reproducible, maintainable, and scalable.
But successful implementation requires understanding where conventional cloud-native assumptions stop working.
Connectivity cannot be guaranteed. Computing resources are limited. Deployment conditions must be controlled. Safety-critical operations require independent assurance.
The objective is not to put an entire cloud infrastructure stack into an aircraft.
It is to bring the most valuable DevOps capabilities to embedded computing, without compromising the engineering principles that make aircraft reliable.
Kubernetes can fly. The challenge is making sure the software architecture is designed for the realities of flight.
About CloudVenture
CloudVenture provides managed DevOps, cloud and Kubernetes consulting, software engineering, and cybersecurity services.
Our engineering focus includes Kubernetes, GitLab CI/CD, infrastructure automation, embedded Linux integration, secure software delivery, and edge-computing architectures.
We help organizations design and implement reliable software delivery platforms across cloud, on-premises, and distributed computing environments.
From cloud infrastructure to embedded edge systems, we engineer software platforms built for real-world operational challenges.