Skip to content

Commit e8a9059

Browse files
added current state of app section
1 parent 059d0e8 commit e8a9059

File tree

4 files changed

+31
-12
lines changed

4 files changed

+31
-12
lines changed

_data/nav.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@
119119
pages:
120120
- title: "Build your app"
121121
url: "/packaging-compilation"
122-
- title: "Building Docker images"
122+
- title: "Building Docker Images"
123123
url: "/building-docker-images"
124124
- title: "Working with Docker registries"
125125
url: "/working-with-docker-registries"
@@ -129,9 +129,9 @@
129129
url: "/microservices"
130130
- title: "Production and Staging deployments"
131131
url: "/environment-deployments"
132-
- title: "Preview environments"
132+
- title: "Preview Environments"
133133
url: "/preview-environments"
134-
- title: "GitOps deployments"
134+
- title: "GitOps Deployments"
135135
url: "/gitops-deployments"
136136
- title: "Progressive Delivery"
137137
url: "/progressive-delivery"

_docs/ci-cd-guides/gitops-deployments.md

Lines changed: 28 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: "GitOps deployments"
2+
title: "GitOps Deployments"
33
description: "Learn how to deploy with Codefresh and ArgoCD"
44
group: ci-cd-guides
55
toc: true
@@ -35,7 +35,7 @@ Codefresh has native support for GitOps including a graphical dashboard for hand
3535

3636
This guide will explain how you can use GitOps for your own applications.
3737

38-
## Setting up your Git repositories
38+
## Setting up your Git Repositories
3939

4040
One of the central ideas around GitOps is the usage of Git for ALL project resources. Even though developers are familiar with using Git for the source code of the application, adopting GitOps means that you need to store in Git every other resource of the application (and not just the source code).
4141

@@ -94,7 +94,7 @@ Once you connect your application you will see it under in the GitOps applicatio
9494

9595

9696

97-
## Creating a basic CI pipeline for GitOps
97+
## Creating aBbasic CI Pipeline for GitOps
9898

9999
Creating a CI pipeline for GitOps is no different than a [standard pipeline]({{site.baseurl}}/docs/configure-ci-cd-pipeline/pipelines/) that [packages your Docker images]({{site.baseurl}}/docs/ci-cd-guides/building-docker-images/), runs [tests]({{site.baseurl}}/docs/testing/unit-tests/), performs [security scans]({{site.baseurl}}/docs/testing/security-scanning/) etc.
100100

@@ -189,7 +189,7 @@ You can see the associated metadata in your [Docker image dashboard](https://g.c
189189

190190
Codefresh is using this information to fill the deployment history in the GitOps dashboard.
191191

192-
## Creating a basic CD pipeline for GitOps
192+
## Creating a Basic CD Pipeline for GitOps
193193

194194
To create a CD pipeline in Codefresh that is responsible for GitOps deployments you must first disable the auto-sync behavior of ArgoCD. You can disable auto-sync either from the GUI or via the [command line](https://argoproj.github.io/argo-cd/user-guide/auto_sync/):
195195

@@ -281,7 +281,7 @@ The name of the application should be the same name as the ArgoCD Application.
281281

282282
Once the pipeline has finished running the sync status will updated in your GitOps dashboard to reflect the current state.
283283

284-
## Working with the GitOps dashboard
284+
## Working with the GitOps Dashboard
285285

286286
After you create an ArgoCD application, you can click on it in the [GitOps environment overview](https://g.codefresh.io/gitops) and see the respective GitOps screen.
287287

@@ -340,7 +340,7 @@ For each deployment you can also see a before/after view of the pods/replicas th
340340
max-width="100%"
341341
%}
342342

343-
### Filtering the deployment history
343+
### Filtering the Deployment History
344344

345345
You can add filters on the deployment history by using the multi-select field on the top left of the screen.
346346

@@ -363,7 +363,7 @@ You can add filters on the deployment history by using the multi-select field on
363363

364364

365365

366-
### Searching the deployment history
366+
### Searching the Deployment History
367367

368368
For advanced filtering options, the search field on the top right allows you to view only the subset of deployments that match your custom criteria.
369369

@@ -404,8 +404,27 @@ Some examples are:
404404

405405
Using the search field allows you to quickly find a specific Git commit in the history of the application (and even rollback the deployment as explained in the next sections).
406406

407+
## Current State of Application
407408

408-
## Rolling back Git versions
409+
The current state tab shows a hierarchical view of your cluster resource for your application.
410+
411+
{% include image.html
412+
lightbox="true"
413+
file="/images/guides/gitops/currentstate.png"
414+
url="/images/guides/gitops/currentstate.png"
415+
alt="Current State tab"
416+
caption="Current State tab"
417+
max-width="80%"
418+
%}
419+
420+
At the top of the screen you have several filters available:
421+
422+
* Kind - choose a specific type of Kubernetes resource
423+
* Health - status of the resource
424+
* Sync state - GitOps status of the resource
425+
* Free search - search any resource by name
426+
427+
## Rolling Back Git Versions
409428

410429
In the GitOps dashboard you will also see a complete history of all past deployments as recorded in Git. You can select any of the previous version and rollback your application to the respective version.
411430

@@ -422,7 +441,7 @@ The Rollback simply informs the cluster to use a different git hash for the sync
422441

423442
This rollback behavior is best used as an emergency measure after a failed deployment where you want to bring the cluster back to a previous state in a temporary manner. If you wish to keep the current rollback statue as a permanent status it is best to use the standard `git reset/revert` commands and change the GitOps repository to its desired state.
424443

425-
## Performing automatic Git commits
444+
## Performing Automatic Git Commits
426445

427446
Usually the Pull Requests that take part in a GitOps workflow are created and approved in a manual way (after code review). You have the option however to fully automate the whole process and rather than opening a Pull Request on both the application repository and the manifest repository, commit automatically the manifest changes inside the pipeline that creates the artifact.
428447

images/currentstate.png

76.3 KB
Loading

images/guides/gitops/currentstate.png

76.3 KB
Loading

0 commit comments

Comments
 (0)