Finally, it is time for the big show! We will now deploy our voting application using a standard Kubernetes Deployment and, in the next section, we will expose it to the external users using the LoadBalancer service. First, we need to briefly summarize what is required for the proper Deployment of our application, as follow:
- A packtpubkubernetesonwindows/voting-application:1.0.0 Docker image will be used for deploying the application. If you have pushed the image to your own image repository, you need to change the manifest file accordingly. We specify a 1.0.0 tag explicitly as we want to avoid pulling an unexpected container image version. You can read more about the best practices for container images in the documentation at https://kubernetes.io/docs/concepts/configuration/overview/#container-images.
- The application requires a CONNECTIONSTRING_VotingApplication...