1. Нам важно Ваше мнение!
    и обсуждайте вместе! Нажимайте "мне нравится" и рекомендуйте друзьям ;)
    Понравилось тема? Напишите в ней свой отзыв.
    Считаете что тема не достаточно полно раскрыта? Расскажите свою точку зрения!
    С Вашей помощью сделаем форум еще лучше!

Atlanta : azure devops automation - Eduard Kabrinskiy

Тема в разделе 'Горячие новости для тех кто следит за собой', создана пользователем NorthLasVegasEn, 19 май 2021.

  1. Кабринский Эдуард - Azure devops kubernetes - Eduard Kabrinskiy


    <h1>Azure devops kubernetes</h1>
    <p>[youtube]</p>
    Azure devops kubernetes <a href="http://remmont.com">Current news stories</a> Azure devops kubernetes
    <h1>Set Up and Deploy to Kubernetes Using Azure DevOps (CI/CD)</h1>
    <h3>Build Docker images, push to a container registry, and deploy into Kubernetes.</h3>
    <p>Join the DZone community and get the full member experience.</p>
    <p>This article demonstrates how to build docker images, push to a container registry, and deploy that registry into Kubernetes.</p>
    <h2><strong>Prerequisites</strong></h2>
    <p>Azure Subscription credentials, Create an Azure container registry (ACR).</p>
    <p>AKS Managed cluster.</p>
    <h2><strong>Create an Azure Container Registry (ACR) Using CLI</strong></h2>
    <p>The Azure container registry is a private Docker registry in Azure that stores Docker container images and uses Docker commands to push a container image into a registry. In the end, it pulls and runs the image from the registry. In order to use this tool, you need to:</p>
    <p>Install Azure command-line interface.</p>
    <p>Check the version of azure-CLI version with the following command.</p>
    <p>
    Use the following command to set the subscription id or name of the subscription. </p>
    <p>Create a resource group.</p>
    <p>
    Create a container registry by using the following command: </p>
    <p>This command gives output in a JSON format and takes note of the login server name, which is a container registry name.</p>
    <p>Before pulling and pushing images into the ACR, you need to log in to ACR by using the following command.</p>
    <h2><strong>Continuous Integration (CI)</strong></h2>
    <p>Use the <strong>azure-pipelines.yml</strong>, shown in full at the end of this post at the root of your repository and adjust variables to work for your needs. This <strong>.yaml</strong> file will create a build pipeline for your project. Modify this file and commit it back to your repository so that your build/deploy processes are also treated as code.</p>
    <p>Follow all instructions in "Introduction to Azure Pipelines" to create a build pipeline to build docker images for .NET or NodeJS applications.</p>
    <h3><strong>Steps</strong></h3>
    <ul>
    <li>Azure pipelines have an option to build and deploy using Microsoft-hosted agents. Each time you build or release a pipeline, you get a fresh virtual machine (VM) for the build.</li>
    <li>If Microsoft-hosted agents don't work, use a self-hosted agent that will act as a system host.</li>
    </ul>
    <p>Build, push, or run a container Docker application. The task can be used with Docker or Azure Container registry.</p>
    <h4><strong>Build Container Image Using docker-compose.yaml</strong></h4>
    <p>This task will build the Docker image from the docker-compose file mentioned the ACR and subscription details.</p>
    <p><ul>
    <li>Push a container image to Azure container registry(ACR)</li>
    </ul>
    </p>
    <p>Use of this task in the build pipeline to publish the build artifacts to the Azure pipelines file share. Artifacts of the build store it in the Azure DevOps server.</p>
    <h4><strong>Release Pipeline (CD)</strong></h4>
    <p>Before creating a release pipeline, you need to create an AKS (Azure Kubernetes Cluster) manually by using Azure CLI or Azure Portal. AKS is a managed Kubernetes cluster used to quickly deploy and manage the cluster.</p>
    <h4><strong>Create a Kubernetes Cluster</strong></h4>
    <p>Use the following command to create an AKS cluster with one node.</p>
    <p><ul>
    <li>Manage kubernetes cluster with the kubectl command line; this will communicate with the kubernetes API cluster.</li>
    <li>Use the following command to download credentials and configure the Kubernetes CLI.</li>
    </ul>
    </p>
    <p>
    Verify the connection to the cluster; use the kubectl <strong>get</strong> command to list the nodes </p>
    <p>
    Make sure that status is <strong>Ready</strong></p>
    <h2><strong>Run the Application</strong></h2>
    <p>Kubernetes describes a desired state of the cluster and what container images to run. A manifest is used to create all objects needed; it can create a deployment, service, ingress, config map. Create a namespace with the following command.</p>
    <p>Create a file name with <strong>azure-svc.yaml, azure-dep.yaml</strong> and load balancer for service to expose the outside world. The Yaml definition will use these manifest files to deploy objects into a cluster.</p>
    <p>Deploy the application in AKS by using <strong>Kubectl</strong> to apply the following task.</p>
    <p style="clear: both">Verify each task logs for Build (CI) and Release pipeline(CD) . <img style="float: left; margin: 0 10px 5px 0;" src="https://dzone.com/storage/temp/12298348-testapp.png" /></p>
    <h2>Azure devops kubernetes</h2>

    <h3>Azure devops kubernetes</h3>
    <p>[youtube]</p>
    Azure devops kubernetes <a href="http://remmont.com">The news</a> Azure devops kubernetes
    <h4>Azure devops kubernetes</h4>
    In this article, we discuss how to set up and deploy to build Docker images, push to a container registry, and deploy that registry into Kubernetes with Azure DevOps.
    <h5>Azure devops kubernetes</h5>
    Azure devops kubernetes <a href="http://remmont.com">Azure devops kubernetes</a> Azure devops kubernetes
    SOURCE: <h6>Azure devops kubernetes</h6> <a href="https://dev-ops.engineer/">Azure devops kubernetes</a> Azure devops kubernetes
    #tags#[replace: -,-Azure devops kubernetes] Azure devops kubernetes#tags#

    Эдуард Кабринский
    new

Поделиться этой страницей