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/deployments/gitops/gitops-environments.md
+52-7Lines changed: 52 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,4 @@
1
-
---
1
+
##---
2
2
title: "GitOps Environments"
3
3
description: ""
4
4
group: deployments
@@ -14,26 +14,71 @@ Codefresh has several dashboards each providing different views on different asp
14
14
The GitOps Environments dashboard combines a view of applications in the context of their environments allowing you to track applications as they move across your software development lifecycles.
15
15
16
16
What is an environment
17
-
What is special about the Gitops environment?
17
+
An Environment is a logical entity in Codefresh that consolidates deployment information for all the Argo CD applications linked to it. Allow you to see at any moment in time what's deployed where
18
+
19
+
What can you see in an environment
20
+
1. Argo CD applications that are part of the environment
21
+
1. The phase of the application's deployment lifecycle
22
+
1. Git information
23
+
24
+
25
+
Characteristics of an environment
18
26
19
-
K8s entity - full managable
27
+
1. Account-level entity: Environments are created and managed for an account. they hav visibility into all the Runtimes and Runtime clusters in the account.
28
+
1. Types of environments: There are two broad categories
29
+
1. Aro CD Applications: The main purpose of an environment is to show the Argo CD applications in that environment along with their current health and sync status, and Git information. This is only possible when you link an application to an environment.
30
+
1. Destinations:
31
+
1. Deployment destinations:
20
32
33
+
Environment views
34
+
35
+
Applications in environments
36
+
1. Same application can be assigned to more than one environments
37
+
1.
38
+
39
+
Create an environment entity
40
+
View environment dashboard
21
41
22
-
Allow you to see at any moment in time what's deployed where
23
42
Simple drag-n-drop for left-right-shift environments
24
43
25
44
Environments, products, applications
26
45
Codefresh allows you to define a unique relationship between applications and the environments they are deployed to or deployed in through the concept of Products.
27
46
47
+
Environments aggregates Argo CD applications based on a common dennominator and visualizes their based on deployment destinations.
28
48
49
+
Instead of switching between each Argo CD Application to see where it is deployed, associating application with environw
29
50
30
-
##Create environments
31
-
Create a GitOps environment corresponding to any stage in your development and deployment cycle. Define the configuration of the environment through a unique name, it's usage designation, tags, and single or multiple cluster-namespace pairs. The configuration defines the environment as an entitry The environment is automatically populated with the GitOps applications deployed on the clusters and namespaces, matching the tags defined if any.
51
+
##Working with GitOps environments
32
52
53
+
Once you create an environment, it is added to and displayed in the Environments page.
54
+
The Environments page is a dashboard that consolidates all the information on defined environments, the applications that belong to each environment, and the health and sync status of the applications.
55
+
When you visit the environment screen you can see consolidated information on what your environment is doing. Codefresh will pull live data from the cluster to populate the status bar of each environment entry and will automatically show the status of the last 3 builds that affected this environment.
56
+
57
+
58
+
Filters
59
+
60
+
Environments
61
+
62
+
Applications
63
+
Toggle between detailed and Compact view for applications.
64
+
* Health status
65
+
* Product name: If the application has been assigned to a product, the product name is displayed next to the health status. A product name that is identical to the app name indicates that Codefresh has auto-assigned the application to the product.
66
+
* Application type, name, and sycn status:
67
+
* Detailed view only: CI/CD information on the application
68
+
* Cluster and namespace where application is deployed
69
+
* Context menu: Every application has a context menu with the same options that you have for the application in the GitOps Apps dashboard giving you quick access to freqeuntly-
70
+
* Favorite: Click to tag application as
71
+
72
+
###
73
+
74
+
##Create environments
75
+
Create a GitOps environment corresponding to any stage in your development and deployment lifecycle.
76
+
Define the configuration of the environment through a unique name, it's intended usage, Argo CD applications thand destination single or multiple cluster-namespace pairs. The configuration defines the environment as an entitry The environment is automatically populated with the GitOps applications deployed on the clusters and namespaces, matching the tags defined if any.
33
77
78
+
**Before yp
34
79
1. In the Codefresh UI, from the Ops in the sidebar, select**Environments**, and then click**Add Environment**.
35
80
1. Define the following:
36
-
1. Name: A unique name for your environment, which is meaningful in the context of your development and deployment cycle.
81
+
1.**Name**: A unique name for your environment, which is meaningful in the context of your development and deployment cycle.
37
82
1.**Kind**: The purpose of this environment, and can be either**Production** where the live versions of the applications are deployed, or**Non-production** where development, testing, staging versions are deployed.
38
83
1.**Tags**: Any metadata providing additional context and information about the environment, used for filtering and organization purposes.
39
84
1.**Clusters and Namespaces**: Single or multiple cluster-namespace pairs to associate with the configuration for this environment. Adding a cluster with one or more namespaces populates the environment with all the applications deployed on it. When selecting namespaces in a cluster, use * as a wildcard for pattern-based matching. For example, you can use`prod-*` to add all namespaces with names starting with`prod-`.