nutanix-core-flow-container-security
by Nutanix
A Helm chart for Flow Container Security - EntityGroup Controller and Flow Processor
About this chart
Flow Container Security Helm Chart
A unified Helm chart for deploying Flow Container Security components: Flow CNS Controller and Flow Processor.
Overview
This chart can deploy one or both of the following components:
- Flow CNS (Controller): EntityGroup controller for managing Kubernetes network security
- Flow Processor: Processes flow data from in-cluster NATS and exports to external NATS
Both components use the same Docker image (flow-cns:latest) which contains both binaries (/manager and /flow-processor).
Installation
Deploy Both Components (Recommended)
helm install flow-container-security ./flow-container-security \
-n flow-cns-system --create-namespace \
--set flowCns.enabled=true \
--set flowProcessor.enabled=true \
--set flowProcessor.cluster.id=my-cluster \
--set flowProcessor.destNats.url=nats://external-nats:4222
Deploy Only Flow CNS
helm install flow-container-security ./flow-container-security \
-n flow-cns-system --create-namespace \
--set flowCns.enabled=true \
--set flowProcessor.enabled=false
Deploy Only Flow Processor
helm install flow-container-security ./flow-container-security \
-n flow-processor-system --create-namespace \
--set flowCns.enabled=false \
--set flowProcessor.enabled=true \
--set flowProcessor.cluster.id=my-cluster \
--set flowProcessor.destNats.url=nats://external-nats:4222
Required Configuration
Flow Processor Requirements
When enabling Flow Processor (flowProcessor.enabled=true), you must configure:
-
Cluster ID (required):
--set flowProcessor.cluster.id=my-unique-cluster-id -
Destination NATS URL (required):
--set flowProcessor.destNats.url=nats://external-nats-server:4222
Configuration Values
Global Settings
| Parameter | Description | Default |
|---|---|---|
image.repository | Container image repository | artifactory.dyn.ntnxdpro.com/canaveral-legacy-docker/nutanix-core/flow-container-security |
image.tag | Image tag (overrides appVersion) | "" |
image.pullPolicy | Image pull policy | IfNotPresent |
Flow CNS Settings
| Parameter | Description | Default |
|---|---|---|
flowCns.enabled | Enable Flow CNS deployment | true |
flowCns.replicaCount | Number of replicas | 1 |
flowCns.resources | Resource limits/requests | {} |
Flow Processor Settings
| Parameter | Description | Default |
|---|---|---|
flowProcessor.enabled | Enable Flow Processor deployment | false |
flowProcessor.replicaCount | Number of replicas | 2 |
flowProcessor.cluster.id | Required - Unique cluster identifier | "" |
flowProcessor.sourceNats.url | In-cluster NATS URL | nats://flow-cni-nats.flow-cni-system.svc.cluster.local:4222 |
flowProcessor.sourceNats.subject | NATS subject to subscribe | conntrack.data |
flowProcessor.destNats.url | Required - External NATS URL | "" |
flowProcessor.destNats.subject | NATS subject to publish | flows.processed |
flowProcessor.processor.workerCount | Number of worker goroutines | 5 |
flowProcessor.processor.batchSize | Message batch size | 10 |
flowProcessor.processor.enableK8sEnrichment | Enable Kubernetes metadata enrichment | true |
flowProcessor.resources.limits.cpu | CPU limit | 500m |
flowProcessor.resources.limits.memory | Memory limit | 512Mi |
flowProcessor.resources.requests.cpu | CPU request | 250m |
flowProcessor.resources.requests.memory | Memory request | 256Mi |
Using Values File
Create a values.yaml file:
image:
repository: myregistry/flow-container-security
tag: v1.0.0
flowCns:
enabled: true
replicaCount: 1
flowProcessor:
enabled: true
replicaCount: 3
cluster:
id: prod-cluster-01
destNats:
url: nats://external-nats.example.com:4222
subject: flows.processed
processor:
workerCount: 10
batchSize: 20
enableK8sEnrichment: true
resources:
limits:
cpu: 1000m
memory: 1Gi
requests:
cpu: 500m
memory: 512Mi
Install with:
helm install flow-container-security ./flow-container-security \
-n flow-cns-system --create-namespace \
-f values.yaml
Uninstallation
helm uninstall flow-container-security -n flow-cns-system
Architecture
The unified image approach provides:
- Efficient builds: Single image build contains both binaries
- Shared layers: Reduced total image size
- Flexible deployment: Same image, different commands
- Simplified management: One image to version and distribute
How It Works
Both deployments use the same container image but specify different commands:
- Flow CNS:
command: ["/manager"] - Flow Processor:
command: ["/flow-processor"]
Makefile Shortcuts
From the services/flow-cns directory:
# Build unified Docker image
make docker-build
# Deploy only Flow CNS
make deploy-cns
# Deploy only Flow Processor
make deploy-processor
# Deploy both components
make deploy-all
# Undeploy
make undeploy-all
Support
For issues or questions, contact the Nutanix Flow Team.
Deploy nutanix-core-flow-container-security with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has nutanix-core-flow-container-security on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartnutanix-core-flow-container-security is pinned at v1.1.0 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below opentenant validate opentenant.yaml terraform init && terraform apply