In this section, we would build the container. Go to the google-cloud-kubernetes-secure-e2e/microservice folder and execute the following command:
- Build the docker container
> sudo docker build -t kube-e2e-solution .
- Run the container
> sudo docker run -p 49180:8080 -d kube-e2e-solution
- Execute the service
> curl -i http://localhost:49180/healthz
You should see a 200-status message as shown below.
Figure 14 – Output of curl invocation command
