Git Product home page Git Product logo

argo101's Introduction

Hands-On

0. Prerequisites.

  • A GitHub account.
  • An Argo CD Instance. (If attending the Webinar we will provide one for you to use.)

1. Fork The Example Repo.

2. In your forked Repo enable GitHub Actions.

  • Click "Actions" in the top bar at GitHub.com in your repo.
  • Enable GitHub Actions workflows to be executed.

3. In our CI steps, we're going to update the image version.

  • Click into the GitHub Actions YAML file here: GitHub Actions CI Steps
  • Adjust the env version to 1.21.6
  • Commit the changes on GitHub.
  • Once the GitHub Actions build completes, you can verify the changes were made to your staging environment YAML here: Staging Environment Kustomization

4. Next Open the Argo CD UI & Add your application.

  • Open the Webinar Argo CD UI here: Argo CD UI for Argo 101 Webinar | Or use your own Argo CD instance.
  • If you're attending the webinar, then continue to the next step as you won't need to login to Argo CD. If not then you will need to login to Argo CD.
  • Click "+ New App" (Top Left), then configure the following settings.

Application Name: Your GitHub Username
Project: Default
Sync Policy: Manual
Source Repo: Paste the link to your forked repo. (e.g. https://github.com/dhpup/argo101)
Source Path: In the dropdown select nginx/env/stage
Destination: https://kubernetes.default.svc
Namespace: default

  • Click "Sync" in the Argo CD UI to deploy your application.

5. Deploy a new artifact version.

  • Click into the GitHub Actions YAML file here: GitHub Actions CI Steps
  • Adjust the env version to 1.21.622
  • Commit the changes to GitHub.
  • Wait for GitHub Action to complete.
  • Argo CD will detect the drift.
  • Click "Sync" to deploy this new version.

6. Troubleshooting the deployment.

  • Once you sync the new artifact, you will notice your application is in an unhealthy state.
  • Follow the red statuses on Argo CD and you can figure out why.
  • Click into the unhealthy pod then check the events and logs.
  • Rollback the deployment.

argo101's People

Contributors

dhpup avatar tehchub avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.