Configure EKS Pod Identity for ECR Registries
Palette supports EKS Pod Identity for Amazon Elastic Container Registry (ECR) authentication. The EKS Pod Identity Agent generates authentication tokens using temporary, automatically rotated credentials, eliminating the need for static AWS access keys.
Pod Identity for ECR authentication is only supported when the registry is hosted in the same AWS account as the EKS management cluster. Use static or dynamic access credentials for registries in different AWS accounts. Refer to the Register and Manage AWS Accounts guide for more information.
Prerequisites
-
Self-hosted Palette or Palette VerteX deployed on an Amazon EKS cluster with Kubernetes version 1.24 or later.
- Ensure that you have EKS Pod Identity configured on your cluster.
-
Access to the Amazon EKS cluster's kubeconfig file. You must be able to use
kubectlto perform validation steps on the cluster. -
A Palette account with tenant admin access.
-
AWS CLI must be installed and configured with the necessary permissions to access and update pod identity associations for your EKS cluster.
Enablement
-
Execute the following command to list the pod identity associations in your EKS cluster. Replace the
<eks-cluster-name>with your cluster name and<region>with your AWS region.aws eks list-pod-identity-associations \
--cluster-name <eks-cluster-name> \
--region <region> \
--output tableMake a note of the
RoleArncorresponding to thespectro-hubbleservice account. You only need the name of the IAM role, which is the last part of the ARN after the final slash (/). For example, if yourRoleArnisarn:aws:iam::123456789012:role/SpectroCloudHubbleRole, the role name isSpectroCloudHubbleRole.Example Output----------------------------------------------------------------------------------------------------------------------------------
| ListPodIdentityAssociations |
+-------------------------------+-------------------------+------------------------------- +--------------------------------------+
| AssociationId | Namespace | ServiceAccount | RoleArn |
+-------------------------------+-------------------------+------------------------------- +--------------------------------------+
| a1b2c3d4-5678-90ab-cdef-11111 | kube-system | aws-node | arn:aws:iam::123456789012:role/AmazonEKS_CNI_Role |
| b2c3d4e5-6789-01bc-def0-22222 | hubble-system | spectro-hubble | arn:aws:iam::123456789012:role/SpectroCloudHubbleRole |
+-------------------------------+-------------------------+------------------------------- +--------------------------------------+ -
The IAM role used for the
spectro-hubbleEKS Pod Identity association needs additional permissions to enable Palette to generate ECR authentication token, validate registries, and synchronize packs.Execute the following command to create the
ecr-permissions-policy.jsonfile.cat > ecr-permissions-policy.json << 'EOF'
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "ECRReadAndToken",
"Effect": "Allow",
"Action": [
"ecr:GetAuthorizationToken",
"ecr:BatchCheckLayerAvailability",
"ecr:GetDownloadUrlForLayer",
"ecr:BatchGetImage",
"ecr:DescribeRepositories",
"ecr:DescribeImages",
"ecr:ListImages",
"ecr:GetRepositoryPolicy",
"ecr:GetLifecyclePolicy"
],
"Resource": "*"
}
]
}
EOF -
Execute the following command to add the permissions defined in the
ecr-permissions-policy.jsonfile to yourspectro-hubbleEKS Pod Identity association. Replace<hubble-role-name>with the role name identified in Step 1 (for example,SpectroCloudHubbleRole).aws iam put-role-policy \
--role-name <hubble-role-name> \
--policy-name SpectroEcrReadAccess \
--policy-document file://ecr-permissions-policy.json -
The Spectro Manifest (Specman) service requires its own pod identity association to synchronize manifests directly from ECR using OCI Registry As Storage (ORAS). Execute the following command to use the same IAM role as the
spectro-hubbleassociation.- Replace
<eks-cluster-name>with the name of your Amazon EKS Cluster. - Replace
<aws-account-id>with your AWS account ID. - Replace
<hubble-role-name>with the role name identified in Step 1 (for example,SpectroCloudHubbleRole). - Replace
<region>with your AWS region.
aws eks create-pod-identity-association \
--cluster-name <eks-cluster-name> \
--namespace hubble-system \
--service-account spectro-specman \
--role-arn arn:aws:iam::<aws-account-id>:role/<hubble-role-name> \
--region <region> - Replace
-
Open a terminal session and ensure you have access to the kubeconfig file for the Amazon EKS cluster where Palette or Palette VerteX is deployed. Set the
KUBECONFIGenvironment variable to point to the file.export KUBECONFIG=/path/to/kubeconfig/file -
Issue the following command to restart the Specman service in order to apply all updates.
kubectl rollout restart statefulset specman --namespace hubble-system
kubectl rollout status statefulset specman --namespace hubble-systemExample Outputstatefulset.apps/specman restarted
Waiting for 3 pods to be ready...
partitioned roll out complete: 3 new pods have been updated... -
Issue the following commands to verify that EKS Pod Identity has set the required environment variables for the Hubble and Specman services.
kubectl get pods --namespace hubble-system --selector component=cloud \
--output jsonpath='{.items[0].spec.containers[0].env[*].name}' | tr ' ' '\n' | grep AWS_CONTAINERkubectl get pod specman-0 --namespace hubble-system \
--output jsonpath='{.spec.containers[0].env[*].name}' | tr ' ' '\n' | grep AWS_CONTAINERBoth the
AWS_CONTAINER_CREDENTIALS_FULL_URIandAWS_CONTAINER_AUTHORIZATION_TOKEN_FILEenvironment variables should be present in the output of both commands, indicating that Amazon EKS has injected the necessary configuration for EKS Pod Identity. -
Edit the
values.yamlfile for your self-hosted Palette or VerteX installation. Set the following fields and values.config:
ociPackEcrRegistry:
accessKey: ""
secretKey: ""
credentialType: "pod-identity" -
Issue the following command to apply changes. Replace the
<version>with the Palette release version installed on your Palette or VerteX environment. If you are unsure, you can retrieve the version using thehelm list --namespace hubble-systemcommand.helm upgrade palette spectro-mgmt-plane-<version>.tgz \
--values values.yaml --namespace hubble-systemExample OutputRelease "palette" has been upgraded. Happy Helming!
NAME: palette
LAST DEPLOYED: Tue Apr 28 12:34:56 2026
NAMESPACE: hubble-system
STATUS: deployed
REVISION: 5
TEST SUITE: None -
Issue the following command to restart the
cloudandspecmanservices in order to apply all updates.kubectl rollout restart deployment cloud --namespace hubble-system
kubectl rollout restart statefulset specman --namespace hubble-systemExample Outputdeployment.apps/cloud restarted
statefulset.apps/specman restarted
Validation
-
Log in to Palette as a tenant admin.
-
Navigate to Tenant Settings > Registries. The system ECR registry should show a valid timestamp in the Last Synced column. Registry packs are available for cluster profile creation.
-
Open a terminal session and ensure you have access to the kubeconfig file for the Amazon EKS cluster where Palette or Palette VerteX is deployed. Set the
KUBECONFIGenvironment variable to point to the file.export KUBECONFIG=/path/to/kubeconfig/file -
Execute the following command to view the log lines of the Specman service. Ensure that there are no errors.
kubectl logs specman-0 --namespace hubble-system --tail=10