# Kubernetes integration

Integrations / Runtime. Breadcrumb: [Home](https://osty.dev/) / [Integrations](https://osty.dev/integrations) / Kubernetes

The `osty-edge` Helm chart installs one pod with `osty-edge` and `osty-proxy`, plus an optional `osty-sensor` DaemonSet. The edge opens an outbound mTLS stream to `osty-control`, so no port is exposed to the internet, and it enforces your Git-pinned policy locally. Every binary in the chart is source-auditable.

Table: What the `osty-edge` chart deploys (chart 0.1.0)

| Workload | Kind | Network surface | License |
| --- | --- | --- | --- |
| `osty-edge` | Deployment, 1 replica, `Recreate` | Outbound mTLS to `controlPlane.url`; egress limited by NetworkPolicy. | Source-available |
| `osty-proxy` | Container in the edge pod | ClusterIP Service on port 8083, ingress only from `networkPolicy.proxyIngressFrom`. | Source-available |
| `osty-sensor` | DaemonSet | Pushes `/proc` inventory to the edge over in-cluster mTLS on `sensor.transport.port`. | Apache 2.0 |

Start read-only with a free X-Ray before deploying the edge: https://osty.dev/xray

## Which secrets does the chart need?

The chart refuses to render until the edge identity, organisation, control plane URL, mTLS secret, policy, proxy signing key and cluster name are set, plus the two sensor TLS secrets while the sensor is enabled.

Create the namespace, secrets and policy ConfigMap:

```bash
kubectl create namespace osty
kubectl -n osty create secret generic osty-edge-mtls --from-file=ca.crt --from-file=tls.crt --from-file=tls.key
kubectl -n osty create secret generic osty-proxy-signing --from-file=key.pem=proxy.pem
kubectl -n osty create secret generic osty-edge-sensor-server-tls --from-file=ca.crt=sensor-ca.crt --from-file=tls.crt=edge-sensor.crt --from-file=tls.key=edge-sensor.key
kubectl -n osty create secret generic osty-sensor-client-tls --from-file=ca.crt=edge-ca.crt --from-file=tls.crt=sensor.crt --from-file=tls.key=sensor.key
kubectl -n osty create configmap osty-policy --from-file=policy.yaml=.osty/policy.yaml
```

## What goes in my-values.yaml?

`my-values.yaml`:

```yaml
edgeId: edge-prod-eu1
orgId: 7f9c0c56-7a8e-4f4b-9d55-1f9f1d1c2e3a
controlPlane:
  url: https://control.osty.example.com
  tls:
    existingSecret: osty-edge-mtls
policy:
  existingConfigMap: osty-policy
proxy:
  signingKey:
    existingSecret: osty-proxy-signing
  origin: prod-ci
edge:
  kubernetes:
    clusterName: prod-eu1
sensor:
  enabled: true
  mode: proc
  transport:
    serverTls:
      existingSecret: osty-edge-sensor-server-tls
    clientTls:
      existingSecret: osty-sensor-client-tls
```

Install the chart:

```bash
helm install osty-edge deploy/helm/osty-edge -n osty -f my-values.yaml
```

`edgeId` must match the URI SAN in the edge client certificate. Images default to `ghcr.io/osty-dev/<binary>` at the chart's `appVersion`; set `image.registry` and a per-component `image.digest` to pin by digest from your own registry.

## What security controls does the chart apply?

- Every container runs with a read-only root filesystem, drops all capabilities and disallows privilege escalation.
- The edge and proxy run as uid 65532 with the `RuntimeDefault` seccomp profile.
- The sensor needs host PID and a read-only host root at `/host`, with only `SYS_PTRACE` and `DAC_READ_SEARCH`.
- Service account tokens are not automounted; the edge gets a projected, rotating token only when `edge.kubernetes.enabled` is true.
- No role can read Secrets, delete resources or use wildcards. Remediation RBAC is off by default and can be limited with `rbac.remediation.namespaces`.

## How do I roll the edge out progressively?

1. Install with `rbac.remediation.enabled: false` (the default) and `autonomy.defaultTier: OBSERVE` in policy, so the edge only discovers and reports.
2. Route CI package managers through the `osty-proxy` Service on port 8083.
3. Enable remediation RBAC for chosen namespaces once canary gates and observability are wired.

Check the policy before creating the ConfigMap:

```bash
osty policy validate .osty/policy.yaml
```

## Frequently asked questions

### Does the edge accept inbound connections from Osty's cloud?

No. The edge dials out to `osty-control` over mTLS. The only listeners are the in-cluster proxy Service and the sensor endpoint, both behind NetworkPolicies.

### Why a single replica?

The edge and proxy share one SQLite cache on a `ReadWriteOnce` volume, and the edge flushes the proxy's offline audit entries from it.

### Is the sensor an exploit blocker?

No. `osty-sensor` collects runtime inventory with zero credentials. In `ebpf` mode a second container streams live events to its log.

## Related pages

- [Architecture](https://osty.dev/architecture): Plane 1 (`osty-brain`), the control plane (`osty-control`, PostgreSQL 17, Temporal) and the thin edge (`osty-edge`, `osty-proxy`, `osty-sensor`), plus the accepted ADRs behind them.
- [Security](https://osty.dev/security): Public Brain, Private Execution trust boundaries, outbound-only mTLS, the three-tier licensing map, TLA+ models, adversarial benchmarks and what Osty is not.
- [Artifactory integration](https://osty.dev/integrations/artifactory): Point `osty-proxy` at your repository manager.
- [Osty vs runtime ADR](https://osty.dev/compare/osty-vs-runtime-adr): How the sensor differs from runtime exploit blockers.

## See your fleet in 10 minutes

Connect a read-only GitHub App and cloud role. Osty installs nothing in your environment and writes nothing to your repositories, and the report shows false positives, stale deploys and unowned workloads.

Get a free X-Ray: https://osty.dev/xray

Written by Osty Engineering. Published 2026-11-29. Updated 2026-11-29.

Canonical: https://osty.dev/integrations/kubernetes
