Deploy the Prisma Cloud Console on Kubernetes
This topic helps you install Prisma Cloud in your Kubernetes cluster quickly. There are many ways to install Prisma Cloud, but use this workflow to quickly deploy Defenders and verify how information is accessible from the Prisma Cloud Console. After completing this procedure, you can modify the installation to match your needs.
To install Prisma Cloud, you use the command-line utility called twistcli, which is bundled with the Prisma Cloud software. The process has the following steps to give you full control over the created objects.
The
twistclicommand-line utility generates YAML configuration files or Helm charts for the Prisma Cloud Console and Defender.You create the required objects in your cluster with the
kubectl createcommand.
To better understand clusters, read our cluster context topic.
You can inspect, customize, and manage the YAML configuration files or Helm charts before deploying the Prisma Cloud Console and Defender. You can place the files or charts under source control to track changes, to integrate them with Continuous Integration and Continuous Development (CI/CD) pipelines, and to enable effective collaboration.
To ensure a single copy of the Prisma Cloud Console is always available, the Prisma Cloud Console is created as a Kubernetes Deployment. Kubernetes deployments are also known as Kubernetes services. To ensure that a Prisma Cloud Defender instance runs on each worker node of your cluster, each Prisma Cloud Defender is deployed as a Kubernetes DaemonSet.
When a node goes down, the orchestrator can reschedule the Prisma Cloud Console on a different healthy node. To improve the availability of the Prisma Cloud Console, you must ensure that the orchestrator can run the Prisma Cloud Console on any healthy node. The default configuration files or charts ensure this capability. These default configuration files or charts enable the following features to ensure availability.
Deploy a persistent volume (PV), to enable Prisma Cloud Console to save the state. This configuration ensures that no matter where Prisma Cloud Console runs, it has access to the state of the deployment. For persistent volumes to work, every node in the cluster must have access to the shared storage. Setting up a persistent volume can be easy or hard depending on the following factors.
What is your cloud provider?
For example, Google Cloud Kubernetes Engine (GKE) offers persistent volumes out-of-the box with zero additional configuration required.
Is Kubernetes managed or unmanaged?
If you deploy your clusters manually, you might need to configure a Network File System (NFS).
Expose the Prisma Cloud Console to the network through a load balancer. A load balancer ensures that the Prisma Cloud Console is reachable regardless of where it runs in the cluster. The Prisma Cloud Console must be accessible in your deployment because it serves as a web interface and communicates policy to all the deployed Defenders.
Requirements
To deploy your Defenders smoothly, you must meet the following requirements.
You have a valid Prisma Cloud license key and access token.
You provisioned a Kubernetes cluster that meets the minimum system requirements and runs a supported Kubernetes version.
You set up a Linux or macOS system to control your cluster, and you can access the cluster using the
kubectlcommand-line utility.The nodes in your cluster can reach Prisma Cloud’s cloud registry at
registry-auth.twistlock.com.Your cluster can create PersistentVolumes and LoadBalancers from YAML configuration files or Helm charts.
Your cluster uses any of the following runtimes. For more information about the runtimes that Prisma Cloud supports, see the system requirements.
Docker Engine
CRI-O
CRI-containerd
Required Permissions
You can create and delete namespaces in your cluster.
You can run the
kubectl createcommand.
Required Firewall and Port Configuration
Open the following ports in your firewall.
Ports for the Prisma Cloud Console:
Incoming: 8083, 8084
Outgoing: 443, 53
Download the Prisma Cloud Console
Download the Prisma Cloud software to any system where you run kubectl to manage your cluster.
Download the current release.
Create the
prisma_cloudfolder and unpack the release tarball.
Deploy the Prisma Cloud on Kubernetes
To use Prisma Cloud as part of your Kubernetes deployment, you need the twistcli command-line utility and the Prisma Cloud Defenders.
Use the twistcli command-line utility to install the Prisma Cloud Console and deploy the Defenders. The twistcli utility is included with every release, or you can download the utility separately. After completing this procedure, the Prisma Cloud Console and Prisma Cloud Defenders run in your Kubernetes cluster.
When you install Prisma Cloud on Amazon Elastic Kubernetes Service (EKS), Azure Kubernetes Service (AKS), or Alibaba Container Service with Kubernetes, additional configuration steps are required.
Install the Prisma Cloud Console and expose the service using a load balancer.
On your cluster controller, navigate to the directory where you downloaded and extracted the Prisma Cloud release tarball.
Generate a YAML configuration file for Console, where <PLATFORM> can be linux or osx.
The following command saves
twistlock_console.yamlto the current working directory. If needed, you can edit the generated YAML file to modify the default settings.If you’re using Network File System version 4 (NFSv4) as the persistent storage in your cluster, use the
nolock,noatimeandbgmount options in yourPersistentVolumecustom resource definition (CRD). After generating the YAML file in the Prisma Cloud Console, add the mount options to yourPersistentVolumeCRD as follows.Deploy the Prisma Cloud Console with the following command.
Wait for the service to come up completely.
Configure the Prisma Cloud Console
Create your first administrator and enter your license key.
Get the public endpoint address for the Prisma Cloud Console.
Register a DNS entry for the external IP address of the Prisma Cloud Console. This procedure assumes the registered DNS name is
yourconsole.example.com.If you need to secure the Prisma Cloud Console communication with TLS, set up a custom certificate. (Optional)
Open a browser window, and navigate to the Prisma Cloud Console. By default, the Prisma Cloud Console is served with the HTTPS protocol on port 8083. You can go to https://yourconsole.example.com:8083 to access the Prisma Cloud Console.
Create your first administrator.
Enter your Prisma Cloud license key.
The Defender communicates with the Prisma Cloud Console using TLS. Update the list of identifiers in the Prisma Cloud Console certificate that Defenders use to validate the identity of the Prisma Cloud Console.
Go to Manage > Defenders > Names.
In the Subject Alternative Name table, click Add SAN, then enter the Prisma Cloud Console IP address or domain name. Enter the
yourconsole.example.comdomain name. Any Defenders deployed outside the cluster can use this domain name to connect to the Prisma Cloud Console.In the Subject Alternative Name table, click Add SAN again, then enter
twistlock-console. Any Defenders deployed in the same cluster as the Prisma Cloud Console can use theyourconsole.example.comdomain name to access the Prisma Cloud console.The service name of the Prisma Cloud Console is
twistlock-console, but that name is not the same as the pod’s name, which istwistlock-console-XXXX.
Install Prisma Cloud with Helm charts
You can use twistcli to create Helm charts for the Prisma Cloud Console and the Defenders. Helm is a package manager for Kubernetes, and a chart is a Helm package.
Apply the following changes.
Pass the
--helm_ option to _twistclito generate a Helm chart. Don’t change the other options passed totwistclisince they configure the chart.Deploy your Defender with the
helm installcommand instead ofkubectl create.
The following procedure shows the modified commands.
Download the current recommended release.
Create a Console Helm chart.
Install the Console.
Create a Defender
DaemonSetHelm chart.Install the Defender.
Troubleshooting
Pod Security Policy
If Pod Security Policy is enabled in your cluster, you might get the following error when trying to create a Defender DaemonSet.
If you get this error, then you must create a PodSecurityPolicy for the Defender and the necessary ClusterRole and ClusterRoleBinding for the twistlock namespace. You can use the following Pod Security Policy, ClusterRole and ClusterRoleBinding:
PodSecurityPolicy
ClusterRole
ClusterRoleBinding
Last updated
Was this helpful?

