# Skillcourt deployment on Kubernetes through Azure Kubernetes Service

In order to automate the deployment of the skillcourt website and database we will be using AKS.

Go to https://docs.microsoft.com/en-us/azure/aks/kubernetes-walkthrough and follow the instructions.


Skip the "Run the application" section in the link above and do the following.

Copy the skillcourt.yaml file in this directory onto the azure shell in a file of the same name.  
Utilize nano in the azure shell to open a simple editor.  

Run the following commands once the shell file has been saved.  

    kubectl create -f skillcourt.yaml  

This will launch two deployments, a persistent volume and two services to access the web server and db.  

Now run the following command to get your service endpoints.  

    kubectl get svc  

Look at the external ips and port numbers of each service  

    skillcourt-web-svc being for the website  
    skillcourt-db-svc being for the database  

Access the website through your browser with the external ip