Your company has an Azure Kubernetes Service (AKS) cluster that you manage from an Azure AD-joined device.
The cluster is located in a resource group.
Developers have created an application named MyApp.
MyApp was packaged into a container image.
You need to deploy the YAML manifest file for the application.
Solution: You install the docker client on the device and run the docker run -it microsoft/azure-cli:0.10.17 command.
Does this meet the goal?
Click on the arrows to vote for the correct answer
A. B.B.
No, this solution does not meet the goal.
The question mentions that the company has an Azure Kubernetes Service (AKS) cluster and that the application was packaged into a container image. To deploy the YAML manifest file for the application, you need to use the Kubernetes command-line tool kubectl
to interact with the Kubernetes API server.
The suggested solution installs the Docker client and runs the docker run
command with the Microsoft Azure CLI container image, which is not the appropriate approach for deploying a YAML manifest file to AKS. This approach is more suitable for building and pushing container images to Azure Container Registry.
To deploy a YAML manifest file to AKS, you need to follow these general steps:
kubectl
command-line tool.kubectl
.kubectl
.Here's an example command to apply a YAML manifest file named myapp.yaml
to an AKS cluster named myakscluster
:
csskubectl apply -f myapp.yaml --kubeconfig=/path/to/kubeconfig --context=myakscluster
In this command, you specify the path to the YAML manifest file using the -f
flag, and provide the path to the Kubernetes configuration file using the --kubeconfig
flag. You also specify the context for the AKS cluster using the --context
flag.