March 2020
Beginner
592 pages
14h 14m
English
To deploy the application, we can use the kubectl apply command:
bash-5.0# kubectl apply -f animals.yaml
The output of the preceding command should look similar to this:
deployment.apps/web createdservice/web createddeployment.apps/db createdservice/db created
Now, we want to test the application. Remember that we had created a service of type LoadBalancer for the web component. This service exposes the application to the internet. This process can take a moment, as AKS, among other tasks, needs to assign a public IP address to this service. We can observe this with the following command:
bash-5.0# kubectl get service web --watch
Please note the --watch parameter in the preceding command. ...
Read now
Unlock full access