Deploying to clusters
To deploy the Tanium Admission Controller (TAC) and the Tanium Cluster Client Container (T3C) images to your cluster, you need to generate and use a deployment YAML file or Helm chart. The deployment configures the following setup in your cluster:
-
A pod that runs the Tanium Admission Controller with attached, persistent storage
-
A pod that runs the Tanium Cluster Client Container with attached, persistent storage
-
The Tanium Admission Controller and Tanium Cluster Client Container do not require privileged containers or
rootaccess. -
You can use a Helm Chart instead of a YAML file to deploy these clients if you need to pre-populate fields within the configuration file.
-
The Tanium deployment requests a
PersistentVolumeClaimusing the defaultStorageClass. If the cluster does not have a defaultStorageClass, the deployment fails. For more information, see Kubernetes documentation: Dynamic Volume Provisioning - Defaulting Behavior and Kubernetes documentation: Change the default StorageClass.
Before you begin
For clusters managed using the legacy Tanium Client Container, uninstall the Legacy Tanium Client Container from the cluster.
(Optional) Upload images to a private registry
The Tanium public registry hosts images for the TAC and T3C. If you do not want to use the Tanium public registry as the source location for deployment, upload the TAC and T3C images to a private registry. The following examples provide guidance on how to add the images to a private registry by creating images or pushing helm charts.
Create images
One way to upload images to your private registry is to use the docker buildx imagetools command with the following sources:
-
taniumcontainers.azurecr.io/t3c
-
taniumcontainers.azurecr.io/tac
For example, in the Docker CLI, run the following commands:
$ docker buildx imagetools create --tag <your_private_registry>/t3c taniumcontainers.azurecr.io/t3c
$ docker buildx imagetools create --tag <your_private_registry>/tac taniumcontainers.azurecr.io/tac
For more information about these docker commands, see Docker Documentation: docker buildx imagetools create.
Push helm charts
One way to create helm charts for your private registry is to use the Helm pull and push commands. You can pull from the following repository:
-
oci://taniumcontainers.azurecr.io/helm
For example, in the Helm CLI, run the following commands:
helm pull oci://taniumcontainers.azurecr.io/helm/tanium-cluster-manager
helm push tanium-cluster-manager.tgz oci://<your_private_registry>/helm
For more information about these helm commands, see Helm Documentation: Helm Pull and Helm Documentation: Helm Push.
Next steps
Add the private registry to Cloud Workloads. For more information, see Add registries.
Generate the deployment files
From Cloud Workloads, generate a YAML file or helm chart that you can use to deploy the Tanium Admission Controller and Tanium Cluster Client Container to your clusters.
Deploy the clients
Use the YAML file or the helm chart that you generated in the previous task to deploy the clients to a cluster. The steps vary based on the orchestration platform that you are using in your environment. Consult the documentation for your platform for the specific steps. The following steps provide an example of using a YAML file for a Kubernetes environment. Adjust your commands to match your environment and configuration file.
PersistentVolumeClaim using the default StorageClass. If the cluster does not have a default StorageClass, the deployment fails. For more information, see Kubernetes documentation: Dynamic Volume Provisioning - Defaulting Behavior and Kubernetes documentation: Change the default StorageClass.
-
Copy the YAML file to your Kubernetes environment.
-
In your Kubernetes environment, open a command prompt and run the following command:
kubectl apply -f <relative_path_to_YAML_file>
Install the Kubernetes command line tool (
kubectl) if it is not installed. For more information, see Kubernetes: Install Tools. For more information about the apply command, see Kubernetes: kubectl reference.
Verify the deployment
To confirm that the clients were installed successfully, you can either check the client status or ask a question.
Check the client status in Tanium Client Management
Ask a question in Tanium Interact:
In Tanium Interact, ask one of the following questions and confirm that the cluster appears in the results:
-
Get Kubernetes - Cluster Name from all machines
Note: Endpoints that are not in a cluster return N/A on <operating_system>. -
Get Computer Name from all machines with Kubernetes - Is Kubernetes Cluster contains "True"
Upgrading client images
To upgrade the Tanium Admission Controller and Tanium Cluster Client Container images, generate a new deployment YAML file or helm chart with the same Cluster Name and Cluster Labels as the original installation and deploy it to the cluster. For more information, see Generate the deployment files and Deploy the clients.
What to do next
-
Use Enforce to enforce policies on your clusters. For more information, see Creating policies for Kubernetes clusters.
-
Use Comply to scan registries for vulnerabilities. For more information, see Configure a container registry scan assessment.
-
Use Asset to view managed and unmanaged clusters. For more information, see Viewing containers.
Kubernetes®, K8s®, and the Kubernetes logo are registered trademarks of The Linux Foundation®.