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

Note:

(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.

CODE
$ 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>
Important:

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:

CODE
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.

Note:

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.

  1. From the Main menu, go to Shared Services > Cloud Workloads.
  2. From the Quick Links section of the Cloud Workloads Overview page, click Add Cluster.
  3. In the Provider list, select the target cluster provider.
  4. In the T3C Source list, select the registry from which you want to pull the image for the Tanium Cluster Client Container.
    Tip: To pull the image from Tanium's registry, select Tanium Public Registry. For more information about pulling the image from a private registry that is not on the list, see Add registries.
  5. In the TAC Source list, select the registry from which you want to pull the image for the Tanium Admission Controller.
    Tip: To pull the image from Tanium's registry, select Tanium Public Registry. For more information about pulling the image from a private registry that is not on the list, see Add registries.
  6. (Optional) In the Proxy Server List field, specify one or more URLs for the clients to use to connect to the Tanium Server. These URLs must be accessible from the cluster on which you deploy these images.
  7. In the Cluster Name field, enter a name that adheres to the following requirements:
    • This name must be a valid computer name that is 63 characters or less and contain only lowercase letters, numbers, and hyphens. The name cannot start or end with a hyphen.
    • This name must also conform to the naming requirements for your orchestrator. Consult the documentation for your orchestrator for details. For more information about Kubernetes requirements, see Kubernetes Documentation: Object Names and IDs.
  8. Record the cluster name for future reference. When upgrading images, you need to use the same name when you create a new YAML file or Helm chart.
  9. (Optional) In the Cluster Labels field, add labels to identify this cluster. You can use these labels for targeting and for sorting on results pages. Ensure that the labels adhere to the following requirements:
    • These labels must be 63 characters or less and contain only letters, numbers, hyphens, underscores, and periods. Labels must begin and end with a letter or number.
    • These labels must also conform to the naming requirements for your orchestrator. Consult the documentation for your orchestrator for details. For more information about Kubernetes requirements, see Kubernetes Documentation: Labels and Selectors - Syntax and character set.
  10. Record the cluster labels for future reference. When upgrading, you need to use the same labels when you create a new YAML file or Helm chart.
  11. Click Generate.
  12. Download the YAML file or copy the Helm chart:
    1. To install or upgrade the clients by using a YAML file, click Download YAML File.
    2. To install the clients by using a Helm chart, click Copy in the Install Command Line section.
    3. To upgrade the clients by using a Helm chart, click Copy in the Upgrade Command Line section.

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.

Important: The Tanium deployment requests a 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.
  1. Copy the YAML file to your Kubernetes environment.
  2. 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.

    Note: If you created your own YAML files or Helm charts and are presented with the End-User License Agreement (EULA) prompt when you install the clients, ensure that you accept the EULA. If you do not accept, the clients cannot start. YAML files and Helm charts generated from the Tanium Console implicitly accept the EULA by default.

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

  1. From the Main menu of your Tanium Server, go to Administration > Configuration > Client Status.
  2. Confirm that the cluster appears in the list. The cluster might take up to 5 minutes to appear in the list.
    Note:

    For Cloud Workloads, Kubernetes nodes are not reflected on the Client Status page or in the Total endpoints count on the Home page. To find the count of managed Kubernetes nodes, complete the following steps:

    1. Ask the following question in Tanium Interact:

      Get Kubernetes - Cluster Node Info from all machines with Kubernetes - Cluster Node Info:Node Internal IP matches "^[1-9].*"

    2. In the results grid, select the Cached view.

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.

  1. Generate the new deployment YAML file or Helm chart command line.
  2. Record the T3C and TAC image versions from the generated file.
  3. Upload those image versions to your private registry. For more information, see (Optional) Upload images to a private registry.
  4. If you use a Helm chart, replace the chart repository in the generated command with your own repository.
  5. 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.