Installation on an Amazon Elastic Kubernetes Service (EKS) Cluster using Portworx Central
This topic provides instructions for installing Portworx on an Amazon Elastic Kubernetes Service (EKS) cluster using Portworx Central. You can use the installation instructions below to deploy Portworx on AWS Outposts, a kOps-based EKS cluster, Amazon EKS with AWS Auto Scaling groups (ASGs), and EKS-D.
The following collection of tasks describes how to install Portworx on an Amazon EKS cluster using Portworx Central:
- Configure authentication
- Generate Portworx specification
- Deploy the Portworx Operator
- Deploy the StorageCluster
- Monitor Portworx nodes
- Verify Portworx pod status
- Verify Portworx cluster status
- Verify Portworx pool status
- Verify pxctl cluster provision status
Complete all the tasks to install Portworx.
Configure authentication
Portworx supports two authentication methods on EKS:
- IAM Policy — attach an IAM policy with the required permissions to the worker nodes' instance role or an AWS user account. Portworx uses these node-level credentials at runtime.
- Workload Identity (IRSA) — federated identity using AWS IAM Roles for Service Accounts (IRSA). The
eks-pod-identity-webhook(included by default on EKS) injects a projected service account token and the environment variables required by the AWS SDK into Portworx pods, so no static credentials are stored in the cluster. For an overview, see Workload identity for cloud operations in Portworx.
Portworx Enterprise does not support AWS KMS grants.
Choose the method that matches your security and operational requirements.
- IAM Policy
- Workload Identity
Create an IAM policy
Provide permissions for all instances in the Auto Scaling group by creating an IAM role.
Perform the following steps in the AWS Management Console:
- For non-encrypted volumes
- For encrypted volumes
-
Navigate to the IAM page in the AWS Management Console. Select Policies under the Identity and Access Management (IAM) sidebar section, and then select Create policy in the upper-right corner.

-
Choose the JSON tab, and then paste the following permissions into the editor, providing your own value for
Sidif applicable. You can either use the minimum permissions required or the permissions required for disk encryption.noteThese are the minimum permissions required for storage operations for a Portworx cluster. For the complete set of permissions for all Portworx storage operations, see the credentials reference.
{"Version": "2012-10-17","Statement": [{"Sid": "ec2","Effect": "Allow","Action": ["ec2:AttachVolume","ec2:ModifyVolume","ec2:DetachVolume","ec2:CreateTags","ec2:CreateVolume","ec2:DeleteTags","ec2:DeleteVolume","ec2:DescribeTags","ec2:DescribeVolumeAttribute","ec2:DescribeVolumesModifications","ec2:DescribeVolumeStatus","ec2:DescribeVolumes","ec2:DescribeInstances","autoscaling:DescribeAutoScalingGroups"],"Resource": ["*"]},{"Sid": "VisualEditor0","Effect": "Allow","Action": "ec2:DeleteInternetGateway","Resource": ["arn:aws:iam::*:role/eksctl-*","arn:aws:ec2:*:*:internet-gateway/*"]},{"Sid": "VisualEditor1","Effect": "Allow","Action": "ec2:DeleteInternetGateway","Resource": "arn:aws:iam::*:instance-profile/eksctl-*"},{"Sid": "VisualEditor2","Effect": "Allow","Action": ["iam:CreateInstanceProfile","iam:DeleteInstanceProfile","iam:GetRole","iam:GetInstanceProfile","iam:RemoveRoleFromInstanceProfile","iam:CreateRole","iam:DeleteRole","iam:AttachRolePolicy","iam:PutRolePolicy","iam:AddRoleToInstanceProfile","iam:ListInstanceProfilesForRole","iam:PassRole","iam:CreateServiceLinkedRole","iam:DetachRolePolicy","iam:DeleteRolePolicy","iam:DeleteServiceLinkedRole","iam:GetRolePolicy"],"Resource": ["arn:aws:iam::*:instance-profile/eksctl-*","arn:aws:iam::*:role/eksctl-*"]},{"Sid": "VisualEditor3","Effect": "Allow","Action": ["ec2:AuthorizeSecurityGroupIngress","ec2:DeleteSubnet","ec2:AttachInternetGateway","ec2:DescribeSnapshots","ec2:DeleteSnapshot","ec2:DeleteRouteTable","ec2:AssociateRouteTable","ec2:DescribeInternetGateways","ec2:CreateRoute","ec2:CreateInternetGateway","ec2:RevokeSecurityGroupEgress","autoscaling:DescribeAutoScalingGroups","autoscaling:UpdateAutoScalingGroup","ec2:DeleteInternetGateway","ec2:DescribeKeyPairs","ec2:DescribeRouteTables","ecr:BatchCheckLayerAvailability","ecr:GetLifecyclePolicy","ecr:DescribeImageScanFindings","ec2:ImportKeyPair","ec2:DescribeLaunchTemplates","ec2:CreateTags","ecr:GetDownloadUrlForLayer","ec2:CreateRouteTable","cloudformation:*","ec2:RunInstances","ecr:GetAuthorizationToken","ec2:DetachInternetGateway","ec2:DisassociateRouteTable","ec2:RevokeSecurityGroupIngress","ec2:DescribeImageAttribute","ecr:BatchGetImage","ecr:DescribeImages","ec2:DeleteNatGateway","ec2:DeleteVpc","autoscaling:DeleteAutoScalingGroup","eks:*","ec2:CreateSubnet","ec2:DescribeSubnets","autoscaling:CreateAutoScalingGroup","ec2:DescribeAddresses","ec2:DeleteTags","elasticfilesystem:*","ec2:CreateNatGateway","autoscaling:DescribeLaunchConfigurations","ec2:CreateVpc","ecr:ListTagsForResource","ecr:ListImages","ec2:DescribeVpcAttribute","ec2:DescribeAvailabilityZones","autoscaling:DescribeScalingActivities","ec2:CreateSecurityGroup","sts:DecodeAuthorizationMessage","ec2:CreateSnapshot","ec2:ModifyVpcAttribute","ecr:DescribeRepositories","ec2:ReleaseAddress","ec2:AuthorizeSecurityGroupEgress","ec2:DeleteLaunchTemplate","ec2:DescribeTags","ecr:GetLifecyclePolicyPreview","ec2:DeleteRoute","ec2:DescribeLaunchTemplateVersions","ec2:DescribeNatGateways","ec2:AllocateAddress","ec2:DescribeSecurityGroups","ec2:DescribeImages","autoscaling:CreateLaunchConfiguration","ec2:CreateLaunchTemplate","autoscaling:DeleteLaunchConfiguration","sts:Get*","ec2:DescribeVpcs","ec2:DeleteSecurityGroup","ecr:GetRepositoryPolicy"],"Resource": "*"},{"Sid": "VisualEditor4","Effect": "Allow","Action": "iam:ListInstanceProfiles","Resource": ["arn:aws:iam::*:instance-profile/eksctl-*","arn:aws:iam::*:role/eksctl-*"]}]} -
Name the policy and create it.

-
Navigate to the IAM page in the AWS Management Console. Select Policies under the Identity and Access Management (IAM) sidebar section, and then select Create policy in the upper-right corner.

-
Choose the JSON tab, and then paste the following permissions into the editor, providing your own value for
Sidif applicable. You can either use the minimum permissions required or the permissions required for disk encryption.noteThese are the minimum permissions required for storage operations for a Portworx cluster. For the complete set of permissions for all Portworx storage operations, see the credentials reference.
{"Version": "2012-10-17","Statement": [{"Sid": "kms","Effect": "Allow","Action": ["kms:Encrypt","kms:Decrypt","kms:ReEncrypt*","kms:GenerateDataKey*","kms:DescribeKey"],"Resource": ["arn:aws:kms:us-west-2:383347425723:key/c1f576b7-6369-xxxx-xxxx-xxxxxxxxxxxxxx"]},{"Sid": "ec2","Effect": "Allow","Action": ["ec2:AttachVolume","ec2:ModifyVolume","ec2:DetachVolume","ec2:CreateTags","ec2:CreateVolume","ec2:DeleteTags","ec2:DeleteVolume","ec2:DescribeTags","ec2:DescribeVolumeAttribute","ec2:DescribeVolumesModifications","ec2:DescribeVolumeStatus","ec2:DescribeVolumes","ec2:DescribeInstances","autoscaling:DescribeAutoScalingGroups"],"Resource": ["*"]},{"Sid": "VisualEditor0","Effect": "Allow","Action": "ec2:DeleteInternetGateway","Resource": ["arn:aws:iam::*:role/eksctl-*","arn:aws:ec2:*:*:internet-gateway/*"]},{"Sid": "VisualEditor1","Effect": "Allow","Action": "ec2:DeleteInternetGateway","Resource": "arn:aws:iam::*:instance-profile/eksctl-*"},{"Sid": "VisualEditor2","Effect": "Allow","Action": ["iam:CreateInstanceProfile","iam:DeleteInstanceProfile","iam:GetRole","iam:GetInstanceProfile","iam:RemoveRoleFromInstanceProfile","iam:CreateRole","iam:DeleteRole","iam:AttachRolePolicy","iam:PutRolePolicy","iam:AddRoleToInstanceProfile","iam:ListInstanceProfilesForRole","iam:PassRole","iam:CreateServiceLinkedRole","iam:DetachRolePolicy","iam:DeleteRolePolicy","iam:DeleteServiceLinkedRole","iam:GetRolePolicy"],"Resource": ["arn:aws:iam::*:instance-profile/eksctl-*","arn:aws:iam::*:role/eksctl-*"]},{"Sid": "VisualEditor3","Effect": "Allow","Action": ["ec2:AuthorizeSecurityGroupIngress","ec2:DeleteSubnet","ec2:AttachInternetGateway","ec2:DescribeSnapshots","ec2:DeleteSnapshot","ec2:DeleteRouteTable","ec2:AssociateRouteTable","ec2:DescribeInternetGateways","ec2:CreateRoute","ec2:CreateInternetGateway","ec2:RevokeSecurityGroupEgress","autoscaling:DescribeAutoScalingGroups","autoscaling:UpdateAutoScalingGroup","ec2:DeleteInternetGateway","ec2:DescribeKeyPairs","ec2:DescribeRouteTables","ecr:BatchCheckLayerAvailability","ecr:GetLifecyclePolicy","ecr:DescribeImageScanFindings","ec2:ImportKeyPair","ec2:DescribeLaunchTemplates","ec2:CreateTags","ecr:GetDownloadUrlForLayer","ec2:CreateRouteTable","cloudformation:*","ec2:RunInstances","ecr:GetAuthorizationToken","ec2:DetachInternetGateway","ec2:DisassociateRouteTable","ec2:RevokeSecurityGroupIngress","ec2:DescribeImageAttribute","ecr:BatchGetImage","ecr:DescribeImages","ec2:DeleteNatGateway","ec2:DeleteVpc","autoscaling:DeleteAutoScalingGroup","eks:*","ec2:CreateSubnet","ec2:DescribeSubnets","autoscaling:CreateAutoScalingGroup","ec2:DescribeAddresses","ec2:DeleteTags","elasticfilesystem:*","ec2:CreateNatGateway","autoscaling:DescribeLaunchConfigurations","ec2:CreateVpc","ecr:ListTagsForResource","ecr:ListImages","ec2:DescribeVpcAttribute","ec2:DescribeAvailabilityZones","autoscaling:DescribeScalingActivities","ec2:CreateSecurityGroup","sts:DecodeAuthorizationMessage","ec2:CreateSnapshot","ec2:ModifyVpcAttribute","ecr:DescribeRepositories","ec2:ReleaseAddress","ec2:AuthorizeSecurityGroupEgress","ec2:DeleteLaunchTemplate","ec2:DescribeTags","ecr:GetLifecyclePolicyPreview","ec2:DeleteRoute","ec2:DescribeLaunchTemplateVersions","ec2:DescribeNatGateways","ec2:AllocateAddress","ec2:DescribeSecurityGroups","ec2:DescribeImages","autoscaling:CreateLaunchConfiguration","ec2:CreateLaunchTemplate","autoscaling:DeleteLaunchConfiguration","sts:Get*","ec2:DescribeVpcs","ec2:DeleteSecurityGroup","ecr:GetRepositoryPolicy"],"Resource": "*"},{"Sid": "VisualEditor4","Effect": "Allow","Action": "iam:ListInstanceProfiles","Resource": ["arn:aws:iam::*:instance-profile/eksctl-*","arn:aws:iam::*:role/eksctl-*"]}]} -
Name the policy and create it.

Attach the IAM policy
Attach the previously created policy to your node instance role or user account.
- Attach policy to a node instance role
- Attach policy to your AWS user account
Follow the instructions below to attach the policy to your NodeInstanceRole:
-
From the IAM page, select Roles in the left pane.
-
On the Roles page, search for and select your node group
NodeInstanceRoleusing your cluster name. The following example showseksctl-victorpeksdemo2-nodegroup-NodeInstanceRole-M9QTT58HQ9ZXas the node group instance role.
noteIf there is more than one node group
NodeInstanceRolefor your cluster, attach the policy to thoseNodeInstanceRoles as well. -
Attach the previously created policy by selecting Attach policies from the Add permissions dropdown on the right side of the screen.

-
Under Other permissions policies, search for your policy name. Select your policy, and then select Attach policies to attach it.
The policy you attached appears under Permissions policies if successful.

-
From the IAM page, select Users in the left pane.
-
On the Users page, search for and select your AWS user account.
-
On your user account details page, select Add permissions in the upper-right corner of the Permissions policies section.
-
Select Attach policies directly in the Permissions options section.
-
Use the search bar in the Permissions policies section to find and select your previously created policy, and then select Next.
-
Select Add permissions to attach the policy to your AWS user account.
After the policy is successfully attached, you are navigated back to your user account details page and the policy is listed in the Permissions policies section.
With Workload Identity, Portworx pods assume an AWS IAM role through the cluster's OIDC provider, and the EKS Pod Identity Webhook injects short-lived credentials at runtime. The webhook is included by default on EKS; for EKS-D or other AWS distributions running on EC2, you must deploy it manually. For more information, see Amazon EKS Pod Identity Webhook.
Before installing Portworx, create an IAM role with the required permissions and a trust policy that federates it with the Portworx service accounts. You will provide the role ARN during spec generation.
Prerequisites
See Prerequisites.
Create an IAM role
-
In the AWS Management Console, go to IAM > Policies and create a policy with the permissions required for the AWS services that Portworx uses for CloudSnap and CloudDrive.
{"Version": "2012-10-17","Statement": [{"Sid": "EBSVolumeManagement","Effect": "Allow","Action": ["ec2:CreateVolume","ec2:DeleteVolume","ec2:AttachVolume","ec2:DetachVolume","ec2:DescribeVolumes","ec2:ModifyVolume","ec2:DescribeVolumeStatus","ec2:CreateSnapshot","ec2:DeleteSnapshot","ec2:DescribeSnapshots","ec2:CreateTags","ec2:DeleteTags","ec2:DescribeTags","ec2:DescribeVolumeAttribute","ec2:DescribeVolumesModifications","autoscaling:DescribeAutoScalingGroups"],"Resource": "*"},{"Sid": "InstanceDescription","Effect": "Allow","Action": ["ec2:DescribeInstances"],"Resource": "*"},{"Sid": "S3BucketManagement","Effect": "Allow","Action": ["s3:CreateBucket","s3:ListAllMyBuckets","s3:GetBucketLocation","s3:ListBucket","s3:PutObject","s3:GetObject","s3:DeleteObject"],"Resource": ["*"]}]} -
Create an IAM role and attach the policy you created in the previous step.
-
Edit the role's Trust relationships and replace the trust policy with the following:
{"Version": "2012-10-17","Statement": [{"Effect": "Allow","Principal": {"Federated": "arn:aws:iam::<account-id>:oidc-provider/<oidc-provider-url>"},"Action": "sts:AssumeRoleWithWebIdentity","Condition": {"StringEquals": {"<oidc-provider-url>:aud": "sts.amazonaws.com"},"StringLike": {"<oidc-provider-url>:sub": ["system:serviceaccount:<namespace>:portworx","system:serviceaccount:<namespace>:px-node-wiper"]}}}]}Replace
<account-id>,<oidc-provider-url>, and<namespace>(the namespace where Portworx is installed) with the values from your ROSA cluster.For more information, see Create a role for OpenID Connect federation (console).
-
Note the ARN of the IAM role. You will enter it as the AWS Workload Identity IAM Role ARN when generating the Portworx specification.
Generate Portworx specification
-
Sign in to the Portworx Central console.
The system displays the Welcome to Portworx Central! page. -
In the Portworx Enterprise section, select Generate Cluster Spec.
The system displays the Generate Spec page. -
From the Portworx Version drop-down menu, select the Portworx version to install.
-
From the Platform drop-down menu, select AWS.
-
From the Distribution Name drop-down menu, select Elastic Kubernetes Service (EKS).
-
In the Namespace field, enter the namespace where you plan to install Portworx.
By default, the namespace isportworx. -
(Optional) To customize the configuration options and generate a custom specification, click Customize and perform the following steps:
noteTo continue without customizing the default configuration or generating a custom specification, proceed to Step 8.
- Basic tab:
- Select one of the following:
- To use an existing etcd cluster, do the following:
- Select the Your etcd details option.
- In the field provided, enter the host name or IP and port number. For example,
http://test.com.net:1234.
To add another etcd cluster, click the + icon.noteYou can add up to three etcd clusters.
- Select one of the following authentication methods:
- Disable HTTPS – To use HTTP for etcd communication.
- Certificate Auth – To use HTTPS with an SSL certificate.
For more information, see Secure your etcd communication. - Password Auth – To use HTTPS with username and password authentication.
- To use an internal Portworx-managed key-value store (kvdb), do the following:
- Select the Built-in option.
- TLS for internal KVDB is enabled, by default. If Cert-Manager is already running in your Kubernetes cluster, deselect the Deploy Cert-Manager for TLS certificates option to avoid installation failures.
- Click Next.
- Storage tab:
warning
Do not add volumes of different types when configuring storage devices. For example, do not add both GP2 and GP3 or IO1. This can cause performance issues or errors.
- Select one of the following:
- To enable Portworx to provision drives using a specification, do the following:
- Select the Create Using a Spec option.
- (Optional) To designate PX-StoreV1 as the datastore, select PX-StoreV1. By default, the system selects PX-StoreV2 as the datastore.
important
The selection between PX-StoreV2 and PX-StoreV1 is automatic. The default datastore is determined by a preflight check that runs across the cluster to assess whether it can deploy Portworx with the PX-StoreV2 datastore. If the preflight check passes for all nodes, PX-StoreV2 is selected as the default.
- (Optional) Select the Run on Small Node Configuration checkbox if your cluster nodes have limited resources (for example, 4 CPU cores and 8 GB of memory).
Portworx Enterprise requires 8 CPU cores and 8 GB of memory by default. Enabling this option allows Portworx to run on smaller nodes, but it may reduce overall performance compared to the default configuration.noteThis checkbox is available only when you select PX-StoreV2 as the datastore.
- To add one or more cloud storage drive types for Portworx to use, click + Add Drive and select one of the following types of drives:
- GP2
- GP3
- IO1
note- To select GP2 as the drive type, you must select PX-StoreV1 as the datastore.
- For PX-StoreV2, four drives are recommended for optimal performance.
- Configure the following fields for the drive:
- Size (GB) - Specify the size of the drive in gigabytes.
- IOPS required from EBS volume - Enter the input/output operations per second (IOPS) value for the drive.
note
- IOPS is required when you select IO1 drive type only.
- If you do not specify an IOPS value for GP3, Portworx uses the default value of 3000.
- Throughput for EBS volume - Enter the required data transfer rate for the drive.
note
If you do not specify a Throughput value for Premium SSDv2, Portworx uses the default value of 125.
- Encryption - Choose None to disable encryption or BYOK Encryption to encrypt your ROSA cluster data disk using BYOK encryption.
- Encryption Key - If you choose BYOK Encryption, specify the key to use for BYOK encryption.
For more information, see AWS KMS. - Drive Tags - Add labels in
key:valueformat to organize and identify drives.
This is useful for policies and workload mapping.
For more information, see How to assign custom labels to device pools. - Action - Use the trash icon to remove a drive type from the configuration. You can add multiple drive types by selecting Add Drive Type, remove a drive type by selecting Remove, or add the same drive type with different configurations using + Add Drive.
- Initial Storage Nodes (Optional) - Enter the number of storage nodes that need to be created across zones and node pools.
- From the Default IO Profile dropdown menu, select Auto.
This enables Portworx to automatically choose the best I/O profile based on detected workload patterns. - From the Journal Device dropdown menu, select one of the following:
- None – To use the default journaling setting.
- Auto – To automatically allocate journal devices.
- Custom – To manually enter a journal device path.
Enter the path of the journal device in the Journal Device Path field.
- To enable Portworx to use all available, unused, and unmounted drives on the node, do the following:
- Select the Consume Unused option.
- (Optional) To designate PX-StoreV1 as the datastore, select PX-StoreV1. By default, the system selects PX-StoreV2 as the datastore.
important
The selection between PX-StoreV2 and PX-StoreV1 is automatic. The default datastore is determined by a preflight check that runs across the cluster to assess whether it can deploy Portworx with the PX-StoreV2 datastore. If the preflight check passes for all nodes, PX-StoreV2 is selected as the default.
- (Optional) Select the Run on Small Node Configuration checkbox if your cluster nodes have limited resources (for example, 4 CPU cores and 8 GB of memory).
Portworx requires 8 CPU cores and 8 GB of memory by default. Enabling this option allows Portworx to run on smaller nodes, but it may reduce overall performance compared to the default configuration.noteThis checkbox is available only when you select PX-StoreV2 as the datastore.
- For PX-StoreV2, in the Metadata Path field, enter a pre-provisioned path for storing the Portworx metadata.
The path must be at least 64 GB in size. - From the Journal Device dropdown menu, select one of the following:
- None – To use the default journaling setting.
- Auto – To automatically allocate journal devices.
- Custom – To manually enter a journal device path.
Enter the path of the journal device in the Journal Device Path field.
- Select the Use unmounted disks even if they have a partition or filesystem on it. Portworx will never use a drive or partition that is mounted checkbox to use unmounted disks, even if they contain a partition or filesystem.
Portworx will not use any mounted drive or partition.
- To enable Portworx to use existing drives on a node, do the following:
- Select the Use Existing Drives option.
- (Optional) To designate PX-StoreV1 as the datastore, select PX-StoreV1. By default, the system selects PX-StoreV2 as the datastore.
important
The selection between PX-StoreV2 and PX-StoreV1 is automatic. The default datastore is determined by a preflight check that runs across the cluster to assess whether it can deploy Portworx with the PX-StoreV2 datastore. If the preflight check passes for all nodes, PX-StoreV2 is selected as the default.
- (Optional) Select the Run on Small Node Configuration checkbox if your cluster nodes have limited resources (for example, 4 CPU cores and 8 GB of memory).
Portworx requires 8 CPU cores and 8 GB of memory by default. Enabling this option allows Portworx to run on smaller nodes, but it may reduce overall performance compared to the default configuration.noteThis checkbox is available only when you select PX-StoreV2 as the datastore.
- For PX-StoreV2, in the Metadata Path field, enter a pre-provisioned path for storing the Portworx metadata.
The path must be at least 64 GB in size. - In the Drive/Device field, specify the block drive(s) that Portworx uses for data storage.
- In the Pool Label field, assign a custom label in key:value format to identify and categorize storage pools.
- From the Journal Device dropdown menu, select one of the following:
- None – To use the default journaling setting.
- Auto – To automatically allocate journal devices.
- Custom – To manually enter a journal device path.
Enter the path of the journal device in the Journal Device Path field.
- Click Next.
- Network tab:
- In the Interface(s) section, do the following:
- Enter the Data Network Interface to be used for data traffic.
- Enter the Management Network Interface to be used for management traffic.
- In the Advanced Settings section, do the following:
- Enter the Starting port for Portworx services.
By default, the starting port is9001.
- Enter the Starting port for Portworx services.
- Select Next.
- In the Interface(s) section, do the following:
- Deployment tab:
-
In the Kubernetes Distribution section, under Are you running on either of these?, select Elastic Kubernetes Service (EKS).
-
In the Component Settings section:
- (Optional) Select the Enable Stork checkbox to enable Stork.
- (Optional) Select the Restrict Data Protection RBAC checkbox to restrict RBAC permissions for Stork (if enabled) and Operator.
You will not be able to use Backup and DR capabilities with this restriction.
For more information, see Restrict Data Protection RBAC. - (Optional) Select the Enable Monitoring checkbox to enable monitoring of Portworx components and resources.
- To configure the monitoring stack, select one of the following:
- Portworx Managed - To enable Portworx to install and manage Prometheus and Operator automatically.
Ensure that no other Prometheus Operator instance is already running on the cluster. - User Managed - To configure and manage your own monitoring stack.
- Portworx Managed - To enable Portworx to install and manage Prometheus and Operator automatically.
- Select the Enable Autopilot checkbox to enable Portworx Autopilot. For User Managed monitoring stack, Portworx supports the following metrics providers that Autopilot will use to fetch metrics for rule evaluation and automated actions.
- Prometheus - Provide a valid Prometheus URL
- Datadog - Provide a valid Datadog URL, Secret Name and Secret Namespace. To create a Secret, refer to enable Datadog.
For more information on Autopilot, see Expanding your Storage Pool with Autopilot.
noteThis checkbox is available only when you select the Enable Monitoring checkbox.
- To configure the monitoring stack, select one of the following:
- (Optional) Select the Enable Telemetry checkbox to enable telemetry in the StorageCluster spec.
For information, see Portworx Telemetry. - Enter the prefix for the Portworx cluster name in the Cluster Name Prefix field.
- Select the Secrets Store Type from the dropdown menu to store and manage secure information for features such as CloudSnaps and Encryption.
- In the Identity and Access Management (IAM) section, select the Enable Workload Identity (WLI) checkbox to use a federated identity with short-lived tokens injected per-pod by the
eks-pod-identity-webhook.
Workload Identity Federation allows the Portworx Operator to configure Portworx components to securely authenticate with cloud services, without storing static cloud credentials. For more information, see Workload identity for cloud operations in Portworx.
When you enable Enable Workload Identity (WLI):- Select the Enable for Stork (for data protection using Portworx DR or Backup) checkbox to enable workload identity for Stork.
You must select this checkbox to use Portworx Backup or Portworx DR. - Under Configure Workload Identity Settings, the Cloud Provider (
AWS) and Key (eks.amazonaws.com/role-arn) fields are pre-populated. In the AWS Role ARN field, enter the ARN of the IAM role you created in the Configure Authentication section.
- Select the Enable for Stork (for data protection using Portworx DR or Backup) checkbox to enable workload identity for Stork.
-
In the Environment Variables section, enter name-value pairs in the respective fields.
- For a disaggregated installation, set node labels and set the
ENABLE_ASG_STORAGE_PARTITIONINGenvironment variable totrue. For more information, see Deployment planning. - For restricting Portworx services from listening on all network interfaces, set
PX_DISABLE_WILDCARD_LISTENERSto"true". By default, Portworx services listen on0.0.0.0(all interfaces). When this environment variable is set to true, each service listens only on its management IP, data IP or local loopbacks as required. If you do not setPX_DISABLE_WILDCARD_LISTENERSto"true"during spec generation, you can add it later to the StorageCluster spec as an environment variable.note- When you update
PX_DISABLE_WILDCARD_LISTENERSin StorageCluster, it triggers a rolling update of the cluster. This causes Portworx to restart on each node and it comes up with the new network configuration. We recommend making this change during a planned maintenance window. - You cannot switch the IP address family (IPv4 to IPv6 or IPv6 to IPv4) using
PX_PREFER_IPV6_NETWORK_IPwhilePX_DISABLE_WILDCARD_LISTENERSis set to"true". To switch the IP address family, first disablePX_DISABLE_WILDCARD_LISTENERS, switch the IP family, and then re-enablePX_DISABLE_WILDCARD_LISTENERS.
- When you update
- For a disaggregated installation, set node labels and set the
-
In the Registry and Image Settings section:
- Enter the Custom Container Registry Location to download the Docker images.
- Enter the Kubernetes Docker Registry Secret that serves as the authentication to access the custom container registry.
- From the Image Pull Policy dropdown menu, select Default, Always, IfNotPresent, or Never.
This policy influences how images are managed on the node and when updates are applied.
-
In Security Settings, select the Enable Authorization checkbox to enable Role-Based Access Control (RBAC) and secure access to storage resources in your cluster.
-
Click Finish.
-
In the summary page, enter a name for the specification in the Spec Name field, and tags in the Spec Tags field.
-
Click Download .yaml to download the yaml file with the customized specification or Save Spec to save the specification.
-
- Click Save & Download to generate the specification.
Deploy the Portworx Operator
Use the operator specification you generated in the Generate the Portworx specification section, and deploy the Portworx Operator by running the following command.
kubectl apply -f 'https://install.portworx.com/<version-number>?comp=pxoperator'
serviceaccount/portworx-operator created
podsecuritypolicy.policy/px-operator created
clusterrole.rbac.authorization.k8s.io/portworx-operator created
clusterrolebinding.rbac.authorization.k8s.io/portworx-operator created
deployment.apps/portworx-operator created