Implement IaaS solutions, Containers Flashcards
What is ACR Tasks
Basic Answer: Using Dockerfile and additional yaml definition files to automate the process of creation, deployment and push to azure registry. Can be used on shell, therefore good for Build Jobs as well.
From Docs:
ACR Tasks is a suite of features within Azure Container Registry that provides streamlined and efficient Docker container image builds in Azure.
What is meant by Fabric Clusters
A Service Fabric cluster is a network-connected set of virtual or physical machines into which your microservices are deployed and managed. A machine or VM that is part of a cluster is called a cluster node. Clusters can scale to thousands of nodes. If you add new nodes to the cluster, Service Fabric rebalances the service partition replicas and instances across the increased number of nodes.
How to make a container from an app and then push to Azure
1) On Dev Machine docker build to create a new image from dockerfile, use -t to tag it
2) Create container Registry when not existing (az acr create)
3) Sign into acr with az acr login
4) Tag the image within the loginServer
5) Use docker push from 4)
https: //docs.microsoft.com/en-us/azure/service-fabric/service-fabric-tutorial-create-container-images?WT.mc_id=thomasmaurer-blog-thmaure
CLI Command to Create Azure Container Registry
az acr create –resource-group –name –sku Basic –admin-enabled true
What does command ‘yo azuresfcontainer’ do?
When installed correctly, yo stands for the command line tools coming with Yeoman. Microsoft has written a generator for Yeoman that creates a service fabric application template.
What is the general process of creating a Service Fabric form an image?
1) Installing Yeoman
2) Run “yo azuresfcontainer”
3) Type in some config
4) Specify the image tag you want to use
5) Specify instance count, start with 1 usually
In Container Context, what is ServiceManifest.xml used for
Like Similar xml syntax to configure Endpoints of services within a container, like scheme and port and protocol
https://docs.microsoft.com/en-us/azure/service-fabric/service-fabric-tutorial-package-containers
In container context, what is ApplicationManifest.xml used for
In order to expose the containers in the cluster, we also need to create a port binding in the ‘ApplicationManifest.xml’. The PortBinding policy references the Endpoints we defined in the ServiceManifest.xml files. Incoming requests to these endpoints get mapped to the container ports that are opened and bounded here.
What is required to deploy a Application so that it can run as a Service Fabric?
To deploy the application to Azure, you need a Service Fabric cluster to run the application. Each instance within the cluster is called node.
Syntax to select a service cluster via shell?
Command requires Service Fabric CLI
sfctl cluster select –endpoint https://containertestcluster.eastus.cloudapp.azure.com:19080 –pem containertestcluster22019013100.pem –no-verify
What is Azure Container Instances
Basically a host for container.
From Docs:
Azure Container Instances enables deployment of Docker containers onto Azure infrastructure without provisioning any virtual machines or adopting a higher-level service.
What is meant by container replication?
Basically use an image/tag of container in different azure regions or mulitiple regions.
To copy a complete container registry:
az acr replication create –registry –location
True or false? Container Replication View can be looked up in Azure Portal
True,From within the Azure portal, selecting Replications for an Azure Container Registry displays a map that details current replications. Container images can be replicated to additional regions by selecting the regions on the map.
True of False? Container replication is possible by using the Portal and CLI?
True
Which of the following is not a benefit of using Azure Container Registry?
- Replicate container images to multiple Azure datacenters.
- Pull container images using any Docker container-related technology.
- Allow public access to container images for pull operations.
- Build container images without the need for locally installed Docker tools.
Allow public access to container images for pull operations.
Azure Container Registry is a private registry. Images cannot be accessed without authentication