AZURE HEROES
  • Home-Updates
  • Blog
    • Azure Blog
    • Azure Heroes Events >
      • Azure Heroes Sessions #1
      • Azure Heroes Sessions #2
      • Azure Heroes Sessions #3
      • Azure Heroes Sessions #4
      • Azure Heroes Sessions #5
      • Azure Heroes Sessions #6
      • Azure Heroes Sessions #7
  • Who We Are!
  • eBooks
  • Azure All In One!
    • Azure Disk & Storage
    • Azure Network
    • Azure VPN
    • Azure VMs
  • Free Azure Support!
  • Contact Us
  • Events
    • Beginners Event
    • Developers Event
    • Special Event
    • Azure Workshop #4
    • Azure Workshop #5
    • Azure Workshop #6
    • Azure Workshop #7
    • Azure Workshop #8
    • Upcoming Events
  • Registration Form
  • Privacy Policy
  • Home-Updates
  • Blog
    • Azure Blog
    • Azure Heroes Events >
      • Azure Heroes Sessions #1
      • Azure Heroes Sessions #2
      • Azure Heroes Sessions #3
      • Azure Heroes Sessions #4
      • Azure Heroes Sessions #5
      • Azure Heroes Sessions #6
      • Azure Heroes Sessions #7
  • Who We Are!
  • eBooks
  • Azure All In One!
    • Azure Disk & Storage
    • Azure Network
    • Azure VPN
    • Azure VMs
  • Free Azure Support!
  • Contact Us
  • Events
    • Beginners Event
    • Developers Event
    • Special Event
    • Azure Workshop #4
    • Azure Workshop #5
    • Azure Workshop #6
    • Azure Workshop #7
    • Azure Workshop #8
    • Upcoming Events
  • Registration Form
  • Privacy Policy

GitOps, Argo, and Azure Kubernetes Service - Part 2

6/22/2022

1 Comment

 
In this post on ArgoCD I am going to walk through deploying an app from ArgoCD to AKS.

First of all, you can deploy an app from the Argo CD web UI or CLI. Ready your application in a Git-based repository. It does not matter what source control system you use for your repository as long as it is Git-based. in our case we will use Azure DevOps to deploy an app. we need to point to a Git repository of either K8s manifest, Helm, or Kustomize. In this blog post I am going to keep it simple and use the simple nginx  application
Picture
Demo Steps:
1- First step, we need to connect ArgoCD wtih Azure Devops
2- In the Argo CD web UI go to Settings> Repositories > CONNECT REPO USING HTTPS
Picture
Picture
3- Enter Git details
Picture
You have to get the credentials from Azure devops as the following - Read more -
Picture
4- Click on Connect
Picture
5- Click on context icon > Create Application
Picture
5- Enter Application details as the following
Picture
Automatic Pruning: By default (and as a safety mechanism), automated sync will not delete resources when Argo CD detects the resource is no longer defined in Git
Self-Healing: By default, changes that are made to the live cluster will not trigger automated sync
Picture
instead, you can update/create the application though manifest file/CLI
Picture
6- Click on Create
Picture
7- The Application got created  and synced now
Picture
Picture
8- Done :)
Picture
Now, you can fully manage the application from Argo web portal or Argo CLI, you can check the logs, execute command on the pod, delete, scale,,,etc

As you can see from the snippet below, we can view and edit the deployment manifest file
Picture
Note: since we have enabled Automatic Pruning ANY CHANGES MADE AND NOT DEFINED IN GIT WILL BE DELETED/IGNORED
Consider this if you have enabled auto scale on the deployment!

so, let's made the changes from the repos, I will scale it from 4 to 8
Picture
Picture
ArgoCd triggered the changes and it will apply the changes directly.

let's check the logs of the pod
Picture
That wraps things up for this post. Check back soon for more posts on Argo CD, GitOps, Kubernetes, and Azure topics
1 Comment
Matthew Acevedo link
10/12/2022 09:26:26 pm

Really investment group change major feeling occur. Town five itself receive determine sort person. Employee seat stand wait radio result never. I group list billion pull build.

Reply



Leave a Reply.

    Author

    Mohammad Al Rousan is a Microsoft MVP (Azure), Microsoft Certified Solution Expert (MCSE) in Cloud Platform & Azure DevOps & Infrastructure, An active community blogger and speaker. Al Rousan has over 8 years of professional experience in IT Infrastructure and very passionate about Microsoft technologies and products.

    Picture
    Picture
    Top 10 Microsoft Azure Blogs

    Archives

    November 2022
    October 2022
    July 2022
    June 2022
    May 2022
    April 2022
    March 2022
    February 2022
    January 2022
    December 2021
    November 2021
    May 2021
    February 2021
    December 2020
    November 2020
    October 2020
    September 2020
    August 2020
    June 2020
    April 2020
    January 2020
    July 2019
    June 2019
    May 2019
    February 2019
    January 2019

    Categories

    All
    AKS
    Azure
    Beginner
    CDN
    DevOps
    End Of Support
    Fundamentals
    Guide
    Hybrid
    License
    Migration
    Network
    Security
    SQL
    Storage
    Virtual Machines
    WAF

    RSS Feed

    Follow
    Free counters!
Powered by Create your own unique website with customizable templates.