1.3 - Containerized Solutions Flashcards
Your company has deployed an Azure Kubernetes cluster named “cloudcluster”. The cluster is part of a resource group named “cloudgrp”. You have to deploy an application to the cluster using a deployment file named “appdeploy.yml”. Which of the following command would you use to deploy the application to the cluster?
kubectl apply -f appdeploy.yml
You have to use the kubectl command to work with a Kubernetes cluster.
You have to deploy an Azure Kubernetes cluster using the Azure command line interface. You have to complete the below snippet for this purpose. The details of the cluster are given below
a) Resource Group name – azuredemo
b) Cluster name – stagingcluster
c) Initial number of nodes in the cluster – 3
d) Monitoring should be enabled
e) Service Principal needs to be in place for the cluster
Fill Area 1, 2 and 3 in the picture
Area 1: aks create
Here we have to issue the “az aks create” command to create the cluster
Area 2: –node-count
Here we have to specify the number of initial nodes in the cluster to 3
Area 3: –enable-addons monitoring
What is the standard VM size that Azure wants to use when you create an AKS cluster?
Standard DS2
How many nodes does Microsoft recommend are minimum for an AKS cluster for resiliency? What is the minimum number of AKS nodes you can create using the Azure Portal?
3
How many vCPUs does a 5-node AKS cluster running using DS2 v2 instances have?
10 (DS2 is a 2 vCPU instance, and 5 of them make 10 vCPUs)
What is the name of the command line tool used to communicate with an AKS cluster?
kubectl
What does the command “kubectl apply -f azure-vote.yaml” do?
Executes the YAML file and deploys the code to the cluster
How do you instantiate the AKS Dashboard?
To start the Kubernetes dashboard, use the az aks browse command
Why do you need to install Docker on your local machine?
In order to create, develop and package docker images that can be pushed to the AKS cluster. You need docker on your local to create your own container images