Deploying to clusters
For clusters managed using the legacy Tanium Client Container, uninstall the legacy Tanium Client Container from the cluster.
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.
(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
Before you upload the images, generate the deployment files so that you know which image versions to upload. The deployment YAML file and Helm chart reference specific image versions, and those versions must exist in your private registry. For more information, see Generate the deployment files.
Record the Tanium Cluster Client Container (T3C) and Tanium Admission Controller (TAC) image versions from the generated file. In a YAML file, the versions appear in the image fields. In a Helm command, they appear as the t3cImageTag and tacImageTag values.
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. Replace <t3c_version> and <tac_version> with the versions that you recorded.
$ docker buildx imagetools create --tag <your_private_registry>/t3c:<t3c_version> taniumcontainers.azurecr.io/t3c:<t3c_version>
$ docker buildx imagetools create --tag <your_private_registry>/tac:<tac_version> taniumcontainers.azurecr.io/tac:<tac_version>
Include the version tag on both the source and the destination. If you omit the tag, Docker uses the latest tag, and the images in your private registry do not match the versions that the deployment files reference. The deployment then fails with an ImagePullBackOff error.
You can use a more recent version of the images than the generated deployment files reference. To see the available versions, list the tags in the Tanium public registry with a registry client such as skopeo list-tags or crane ls. If you upload a different version, update the t3cImageTag and tacImageTag values in your Helm command, or the image fields in your YAML file, to match the version that you uploaded.
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.
The Helm command that Cloud Workloads generates always references the Tanium public registry as the chart source. If you push the chart to your private registry, edit the generated command to replace oci://taniumcontainers.azurecr.io/helm/tanium-cluster-manager with your own repository. If your cluster cannot reach the Tanium public registry, the generated command fails until you make this change.
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.
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"
Upgrade 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. If you use a private registry, complete the following steps in order.
- Generate the new deployment YAML file or Helm chart command line.
- Record the T3C and TAC image versions from the generated file.
- Upload those image versions to your private registry. For more information, see (Optional) Upload images to a private registry.
- If you use a Helm chart, replace the chart repository in the generated command with your own repository.
- Deploy the generated file to the cluster.
If you deploy before you upload the new image versions, the cluster cannot pull the images and the pods fail with an ImagePullBackOff error.
-
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®.