You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: _docs/ci-cd-guides/gitops-deployments.md
+28-9Lines changed: 28 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
---
2
-
title: "GitOps deployments"
2
+
title: "GitOps Deployments"
3
3
description: "Learn how to deploy with Codefresh and ArgoCD"
4
4
group: ci-cd-guides
5
5
toc: true
@@ -35,7 +35,7 @@ Codefresh has native support for GitOps including a graphical dashboard for hand
35
35
36
36
This guide will explain how you can use GitOps for your own applications.
37
37
38
-
## Setting up your Git repositories
38
+
## Setting up your Git Repositories
39
39
40
40
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).
41
41
@@ -94,7 +94,7 @@ Once you connect your application you will see it under in the GitOps applicatio
94
94
95
95
96
96
97
-
## Creating a basic CI pipeline for GitOps
97
+
## Creating aBbasic CI Pipeline for GitOps
98
98
99
99
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.
100
100
@@ -189,7 +189,7 @@ You can see the associated metadata in your [Docker image dashboard](https://g.c
189
189
190
190
Codefresh is using this information to fill the deployment history in the GitOps dashboard.
191
191
192
-
## Creating a basic CD pipeline for GitOps
192
+
## Creating a Basic CD Pipeline for GitOps
193
193
194
194
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/):
195
195
@@ -281,7 +281,7 @@ The name of the application should be the same name as the ArgoCD Application.
281
281
282
282
Once the pipeline has finished running the sync status will updated in your GitOps dashboard to reflect the current state.
283
283
284
-
## Working with the GitOps dashboard
284
+
## Working with the GitOps Dashboard
285
285
286
286
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.
287
287
@@ -340,7 +340,7 @@ For each deployment you can also see a before/after view of the pods/replicas th
340
340
max-width="100%"
341
341
%}
342
342
343
-
### Filtering the deployment history
343
+
### Filtering the Deployment History
344
344
345
345
You can add filters on the deployment history by using the multi-select field on the top left of the screen.
346
346
@@ -363,7 +363,7 @@ You can add filters on the deployment history by using the multi-select field on
363
363
364
364
365
365
366
-
### Searching the deployment history
366
+
### Searching the Deployment History
367
367
368
368
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.
369
369
@@ -404,8 +404,27 @@ Some examples are:
404
404
405
405
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).
406
406
407
+
## Current State of Application
407
408
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
409
428
410
429
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.
411
430
@@ -422,7 +441,7 @@ The Rollback simply informs the cluster to use a different git hash for the sync
422
441
423
442
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.
424
443
425
-
## Performing automatic Git commits
444
+
## Performing Automatic Git Commits
426
445
427
446
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.
0 commit comments