Skip to main content

Privacera Documentation

Unable to initialize the Discovery Kubernetes pod

Problem: During Privacera Manager update or installation, newly created Discovery Kubernetes pods do not initialize.

Cause: A Kubernetes deployment strategy issue in the Discovery deployment file.

Solution:

  1. Scale the Discovery deployment to 0.

    kubectl -n <NAME_SPACE> scale deploy discovery --replicas=0            
  2. Update the strategy in Discovery deployment file.

    cd ~/privacera/privacera-manager
    sed -i 's/Strategy/strategy/g' ansible/privacera-docker/roles/templates/discovery/kubernetes/discovery-deployment.yml
    sed -i 's/Strategy/strategy/g' output/kubernetes/helm/discovery/templates/discovery-deployment.yml            
  3. Apply the changes manually.

    kubectl apply -f output/kubernetes/helm/discovery/templates/discovery-deployment.yml -n <NAME_SPACE>                        
  4. Scale back the Discovery deployment to 1 or run the update.

    kubectl -n <NAME_SPACE> scale deploy discovery --replicas=1            

    Or

    cd ~/privacera/privacera-manager
    ./privacera-manager.sh update