Skip to content

Kubernetes Manifest

aaboyle878 edited this page Jan 7, 2024 · 1 revision

As our app will be hosted using AKS with the resources mentioned above which have been provisioned using terraform we now had to create the manifest/config/YAML file for the cluster. This is to specify that we want to run our containerised app on the pods within the cluster and what ports we wish to expose for internal traffic management, the design of the application-manifest file is the following:

  • Service ClusterIP We created the ClusterIP service as part of the deployment to determine how we would handle internal traffic within the cluster and so we have used TCP with a mapping from port 5000 (this will be port users access the application via as it is the port exposed by the container) to port 80. To ensure that the service links to the correct deployment metadata labels have been added.

  • Deployment For the deployment we have specified the image we wish to run within the clusters pods along side the number of replicas we which to have to ensure availablitiy of the application. In the deployment manifest we have also specified which container ports we wish to be exposed in this case it is port 5000 along with how we wish to handle updating the containers within the cluster should the need arise, for this we have chose to replace the containers one at time ensuring that there is alway one pod running within the cluster so the app is always available for users.

Clone this wiki locally