Skip to main content

Privacera Documentation

6.5 Platform Installation fails with invalid apiVersion

Error message:

error: exec plugin: invalid apiVersion ""

Problem: This error occurs when the AWS CLI version is incompatible with your current AWS EKS version. AWS CLI has been upgraded to Version 2 in PM Image version rel_6.5 so the kubeconfig file should have apiVersionv1beta1notv1alpha1.

Check version: AWS CLI Version in PM can be checked by running the following commands:

cd ~/privacera/privacera-manager
./ shell aws --version

There are two possible ways to upgrade the versions:

Solution 1:
  1. Upgrade AWS CLI in the Client/Edge Node to Version2.

  2. Update the kubeconfig file, with the following command:

    aws eks update-kubeconfig --name <Cluster_Name> --region <Cluster_Region>

    This will update the apiVersion to in the kubeconfig file.

Solution 2:
  1. Create kube folder under credentials:

    cd ~/privacera/privacera-manager 
    mkdir -p credentials/kube
  2. Copy kube-config file from home:

    cp ~/.kube/config credentials/kube
  3. In the the kube-config file in credentials folder, replace v1alpha1 with v1beta1.

    vi credentials/kube/config
  4. Update PM:

    cd ~/privacera/privacera-manager
    ./ update