Deploying Diffblue Cover to Kubernetes

This page shows you how to deploy Diffblue Cover to an existing Kubernetes cluster and how to set up a new cluster.

Deploying Diffblue Cover to an existing cluster

  1. Extract the files from the distribution package:

     tar -xvf diffblue.tar.gz
    
  2. Copy the Diffblue Cover images locally:

     docker load -i docker.tar.gz
    
  3. Set the REPO_NAME environment variable. We use the REPO_NAME variable for the Docker repository that your Kubernetes cluster uses. For example:

     export REPO_NAME="123456123456.dkr.ecr.us-east-1.amazonaws.com"
    
  4. Tag the images:

     for image in front-end application-server deeptest-worker keymaker; do docker tag "eu.gcr.io/diffblue-cr/${image}:latest" "${REPO_NAME}/${image}:latest"; done
    
  5. Push the images to your repository:

     for image in front-end application-server deeptest-worker keymaker; do docker push "${REPO_NAME}/${image}:latest"; done
    
  6. Modify the Kubernetes manifests with details of your repository.

    On a Mac:

     sed -i '' "s;type: NodePort;type: LoadBalancer;g" kubernetes/manifests/20-service-front-end.yaml
     for manifest in kubernetes/manifests/*; do sed -i '' "s;image: eu.gcr.io/diffblue-cr/;image: ${REPO_NAME}/;g" $manifest; done
    

    On Linux:

     sed -i "s;type: NodePort;type: LoadBalancer;g" kubernetes/manifests/20-service-front-end.yaml
     for manifest in kubernetes/manifests/*; do sed -i "s;image: eu.gcr.io/diffblue-cr/;image: ${REPO_NAME}/;g" $manifest; done
    
  7. Apply the Kubernetes manifests to your cluster:

     for manifest in kubernetes/manifests/*; do kubectl apply -f $manifest; done
    
  8. View all the pods and nodes:

     kubectl get pods -o wide -n diffblue
    
  9. Get the front-end external/public IP address:

     kubectl get services front-end -n diffblue
    
  10. To run Diffblue Cover, open a browser tab and go to that IP address.

Creating a new cluster

Check the minimum requirements for Diffblue Cover.

results matching ""

    No results matching ""