Cloud-operator
The Illumio Cloud-operator is deployed as a Deployment on a desired cluster to stream information about the cluster's resources and network traffic to CloudSecure, and to enforce Illumio network policies by managing corresponding k8s NetworkPolicies in the cluster.
Getting Started
Deployment Instructions
Prerequisites
Ensure you have Helm installed and configured on your local machine.
Ensure you have access to a Kubernetes cluster and the necessary permissions to deploy resources.
Packaging the Helm Chart
First, package the Helm chart. This will create a .tgz file that can be used for installation.
helm package .
This command will generate a file named cloud-operator-0.0.1.tgz (or similar, depending on your chart version) in the current directory.
Installing the Helm Chart
TODO - How to set values.yaml, set through UI or through terraform.
To install the Helm chart, use the following command:
helm install illumio cloud-operator-0.0.1.tgz --namespace illumio-cloud --create-namespace
This command will:
- Install the Helm chart with the release name
illumio.
- Use the packaged chart file
cloud-operator-0.0.1.tgz.
- Deploy the resources into the
illumio-cloud namespace.
- Create the
illumio-cloud namespace if it does not already exist.
Verifying the Installation.
To verify that the Helm chart has been successfully installed, you can use the following command:
helm list --namespace illumio-cloud
This will list all the Helm releases in the illumio-cloud namespace, including the illumio release if the installation was successful.
Uninstalling the Helm Chart
If you need to uninstall the Helm chart, use the following command:
helm uninstall illumio --namespace illumio-cloud
This will delete all the resources associated with the illumio release from the illumio-cloud namespace.
Helm does not manage the clustercreds Secret, in which cloud-operator stores the credentials of the cluster, and does not delete it. Delete it by hand:
kubectl delete secret clustercreds --namespace illumio-cloud
If you install cloud-operator again without deleting this Secret, cloud-operator uses the credentials in it and does not onboard the cluster again.
Prerequisites
- go version v1.22.2+
- Kubernetes v1.30+ cluster.
- helm version v3.15.4+
Making a private build to Docker hub
The following make command will build and push a private build to docker hub.
docker login
make docker-build docker-push DOCKER_USERNAME=arisweedler386
Making a private build to a local registry (if testing with a local cluster)
Creating a minikube clsuter
The following command starts a minikube cluster that will allow you to pull from your local registry
minikube start --insecure-registry="host.docker.internal:5000"
Creating a local registry for your Cloud-Operator images
To create a local registry please use the following make command
make local-registry
Building a local image to registry
Once you have made your local changes, the following make command will build and push to your local registry
make deploy-local
Deploying local image to Kubernetes
To deploy using helm and to test the operator using fakeserver here is an example of the command with --set args
helm install illumio --namespace illumio-cloud oci://ghcr.io/illumio/charts/cloud-operator --version v1.0.5 --create-namespace \ --values ./fakeserver/cloud-operator.fakeserver.yaml,./cloud-operator.image.yaml
Proxy Configuration
Configuring the Proxy
-
The HTTPS_PROXY environment variable is set in the Helm file, which is read when the client is launched into a Kubernetes container. This ensures that the proxy server is correctly configured for the environment.
-
Ensure that the proxy server is accessible from the environment where the Cloud Operator is running.
-
Optionally, set env.noProxy in the Helm values to a comma-separated list of hosts, domains, IP addresses and CIDRs that must be reached directly. It sets the NO_PROXY environment variable.
Behavior
-
HTTP Requests:
- All HTTP requests made by the Cloud Operator will respect the
HTTPS_PROXY environment variable.
- The
http.ProxyFromEnvironment function is used to determine the proxy settings.
-
gRPC Requests:
- gRPC requests to CloudSecure respect the
HTTPS_PROXY environment variable.
- Hubble Relay is always reached directly, without the proxy.
-
Kubernetes API Requests:
- Requests to the Kubernetes API server never use the proxy from the environment, so the API server does not need to be listed in
NO_PROXY.
Calico Enterprise Flow Collection
On clusters running Calico Enterprise, the Cloud Operator receives network flows from Calico Enterprise's LogCollector over syslog. At startup, the operator uses this collector when the default Installation (operator.tigera.io/v1) has spec.variant: TigeraSecureEnterprise and the tigera-secure LogCollector has a syslog store that sends Flows logs, and then listens for syslog on TCP port 6514. Otherwise it continues detecting other flow sources, such as the AWS VPC CNI.
Calico Enterprise does not send flows to the operator by default. Two settings are required on the Calico side.
1. Send flow logs to the operator
Add a syslog store to the LogCollector that points at the operator's Service:
kubectl patch logcollector tigera-secure --type merge -p '{
"spec": {
"additionalStores": {
"syslog": {
"endpoint": "tcp://<release>-cloud-operator.<namespace>.svc.cluster.local:6514",
"logTypes": ["Flows"],
"packetSize": 8192
}
}
}
}'
endpoint: the operator's Service, for example tcp://illumio-cloud-operator.illumio-cloud.svc.cluster.local:6514 for release illumio in namespace illumio-cloud.
logTypes: Flows only. If it also lists Audit or DNS, the operator discards those records and counts them in calico_records_dropped.
packetSize: flow records are larger than the default of 1024 bytes and are cut off at that size, so set at least 8192.
The LogCollector can send logs to only one syslog server (spec.additionalStores.syslog), and it must be the operator.
2. Disable flow log aggregation
By default, Calico Enterprise aggregates flow logs and leaves out IP addresses and source ports, so the operator cannot build a five-tuple from them. Set the aggregation level to 0 for allowed and denied flows:
kubectl patch felixconfiguration default --type merge -p '{
"spec": {
"flowLogsFileAggregationKindForAllowed": 0,
"flowLogsFileAggregationKindForDenied": 0
}
}'
TLS (optional)
The operator accepts plain-text syslog by default. To encrypt the flow logs, provide a certificate in a Secret named cloud-operator-syslog-tls in the operator's namespace, make Calico Enterprise trust its CA, and set encryption: TLS in the LogCollector's syslog store. The operator reads the certificate on each new connection, so a created or renewed Secret is used without a restart.
On OpenShift, OpenShift's service CA creates and renews the cloud-operator-syslog-tls Secret automatically. Make Calico Enterprise trust OpenShift's service CA:
kubectl get configmap openshift-service-ca.crt -n tigera-operator -o jsonpath='{.data.service-ca\.crt}' > service-ca.crt
kubectl create configmap syslog-ca -n tigera-operator --from-file=tls.crt=service-ca.crt
When OpenShift renews its service CA, update the syslog-ca ConfigMap the same way.
On other clusters, create the Secret with a certificate for the operator Service's DNS names, <release>-cloud-operator.<namespace>.svc and <release>-cloud-operator.<namespace>.svc.cluster.local:
kubectl create secret tls cloud-operator-syslog-tls -n <namespace> --cert=tls.crt --key=tls.key
Then add the certificate's CA to Calico Enterprise:
kubectl create configmap syslog-ca -n tigera-operator --from-file=tls.crt=<ca.crt>
To renew the certificate, update the Secret before the certificate expires.
To reject plain-text connections, set calico.syslogTLS.required: true.
Helm values
| Value |
Default |
Description |
env.syslogCollectorPort |
6514 |
TCP port the operator listens on for syslog. Must match the LogCollector endpoint. |
calico.syslogTLS.required |
false |
Accept TLS connections only. The certificate is read from the cloud-operator-syslog-tls Secret. |
Troubleshooting
- The operator logs
Using Calico Enterprise flow collector at startup when it detects Calico Enterprise with a syslog store configured.
- A warning
Calico Enterprise detected, but its LogCollector has no syslog store (or does not send Flows logs) means step 1 is missing or incomplete. The operator checks this only at startup: apply step 1, then restart the operator.
- A warning
Failed to read the Calico Enterprise LogCollector means the operator could not check the syslog store, for example because its RBAC does not allow reading logcollectors. The warning includes the error. Fix it, then restart the operator.
- A warning that the syslog endpoint
does not use the operator's syslog port means the LogCollector's endpoint port differs from env.syslogCollectorPort.
- The
Stream statistics log line includes calico_records_dropped, the number of syslog records that could not be turned into flows.
- A warning
Calico Enterprise is sending aggregated flow logs ... means flow log aggregation is still enabled. Apply step 2.
- If
flows_received stays at 0 and no records are dropped, check that the LogCollector's syslog endpoint points at the operator's Service and port.
IPFIX Template Sets ConfigMap
Overview
This section explains how the binary data for the ConfigMap ipfix-template-sets.yaml was obtained and its purpose in the Kubernetes cluster.
Purpose
The ConfigMap ipfix-template-sets.yaml contains binary data required for IPFIX (IP Flow Information Export) processing. This binary data is used by the cloud operator to decode IPFIX packets and process network flows immediatly upon recieving packets. (Do not need to wait 10 minutes)
Steps to Obtain the Binary Data
Open vSwitch defines one template for each combination of L2, L3 and L4 protocols, tunneling and flow direction: 88 templates in total. It also defines one options template, for its exporter statistics. It limits each IPFIX message to about 1024 bytes, so it exports its templates as several messages (18 for the templates and 1 for the options template, as of Open vSwitch 3.5), and sends them again every 10 minutes by default. The operator preloads a single IPFIX message, so the templates of all those messages are merged into one message: one template set followed by the options template set.
The template definitions and IDs are the same in Open vSwitch 2.9 and later, so the file does not depend on the cluster.
-
Capture the template messages:
-
Merge the templates into one message:
- Copy the template records of all the captured messages into one template set, followed by the options template set, in one IPFIX message, and save it as
internal/controller/ovn_template_sets/openvswitch.bin.
-
Update the ConfigMap:
Usage
The ConfigMap is mounted as a volume in the cloud operator pod. The operator reads the binary data from the mounted volume at startup time and uses it to decode IPFIX messages.
License
Copyright 2024-2026 Illumio, Inc. All Rights Reserved.
The Illumio Cloud-Operator package is released and distributed as open source software under the Apache License, Version 2.0. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Illumio has no obligation or responsibility related to the package with respect to support, maintenance, availability, security, or otherwise. Please read the entire LICENSE for additional information regarding the permissions and limitations.
For bugs and feature requests, please open a GitHub Issue and label it appropriately.