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/installation/gitops/hybrid-gitops-helm-installation.md
+6-7Lines changed: 6 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -38,7 +38,7 @@ Choose the installation option that best aligns with your specific requirements
38
38
#####GitOps Runtime installation
39
39
40
40
41
-
***First-time GitOps Runtime installation**
41
+
***First-time GitOps Runtime installation**
42
42
If this is your first time installing a GitOps Runtime in your Codefresh account, follow these steps:
43
43
44
44
*[Complete prerequisites](#preparing-for-hybrid-gitops-runtime-installation): Before starting the installation, complete pre-requisites.
@@ -47,7 +47,7 @@ Choose the installation option that best aligns with your specific requirements
47
47
48
48
49
49
50
-
***Additional GitOps Runtimeinstallation**
50
+
***Additional GitOps Runtimeinstallations**
51
51
If you have already installed a GitOps Runtime in your account and want to install additional Runtimes on different clusters within the same account, you can continue with a[simplified installation](#install-additional-gitops-runtimes-in-account) from the Codefresh UI, or use[Terraform](/install-gitops-runtime-via-terraform).
52
52
When installing additional GitOps Runtimes, Git provider, Shared Configuration Repository, and the repository for the Helm chart, for example, are not required, as they have been already set up for your account.
53
53
@@ -184,7 +184,7 @@ If the chart's minor appversion is lower than the version used by Codefresh, you
184
184
%}
185
185
186
186
{:start="4"}
187
-
1. Ifthe minor appversion you have differs from that used by Codefresh, do one of the following:
187
+
1. Ifyour minor appversion differs from that used by Codefresh, do one of the following:
188
188
* Lower version: Upgrade to the required minor appversion.
189
189
* Higher version: If not available in Codefresh forks, please contact Codefresh Support.
190
190
@@ -222,7 +222,7 @@ The Codefresh `values.yaml` located [here](https://github.com/codefresh-io/gitop
222
222
###Step 1: Select Hybrid Runtime install option
223
223
224
224
1. In the Welcome page, select**+ Install Runtime**.
225
-
1. Select**Hybrid Runtime**.
225
+
1. Select**Hybrid Runtime**, and click**Add**.
226
226
227
227
{% include
228
228
image.html
@@ -329,7 +329,7 @@ max-width="50%"
329
329
{:start="2"}
330
330
1. If needed, select**Customize runtime values**, and define the**Runtime Name** and**Namespace**.
331
331
The default names are`codefresh` for both.
332
-
1. Copy and run the command to install the runtime Helm chart:
332
+
1. Copy and run the command to install the runtime Helm chart:
333
333
The commands differ depending on the access mode. Ingress-based or service-mesh-based access modes for the Runtime require additional flags.<br>
334
334
Unless otherwise indicated, values are automatically populated by Codefresh. If you're using a terminal, remember to copy the values from the UI beforehand.<br>
335
335
@@ -445,8 +445,7 @@ Git credentials include authorizing access to Git repositories through OAuth2 or
445
445
OAuth2 authorization is possible if your admin has registered an OAuth Application for Codefresh. See[OAuth2 setup for GitOps]({{site.baseurl}}/docs/administration/account-user-management/oauth-setup/).
446
446
447
447
**Git access token authorization**
448
-
Git access token authentication requires you to generate an access token in your Git provider account for the GitOps Runtime with the required scopes. For detailed information on Git Runtime token, including using tokens with custom scopes, review[GitOps Runtime token scopes]({{site.baseurl}}/docs/security/git-tokens/#git-runtime-token-scopes).
449
-
448
+
Git access token authentication requires you to generate an access token in your Git provider account for the GitOps Runtime with the required scopes. For detailed information on Git Runtime token, including using tokens with custom scopes, review[GitOps Runtime token scopes]({{site.baseurl}}/docs/reference/git-tokens/#git-runtime-token-scopes).
450
449
451
450
**SSH access to Git**
452
451
By default, Git repositories use the HTTPS protocol. You can also use SSH to connect Git repositories by entering the SSH private key.
Copy file name to clipboardExpand all lines: _docs/quick-start/gitops-quick-start/install-hosted.md
+12-14Lines changed: 12 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,26 +6,22 @@ sub-group: gitops-quick-start
6
6
toc:true
7
7
---
8
8
9
-
If you have Hosted GitOps, set up your hostedruntime environment:
9
+
If you have Hosted GitOps, set up your hostedRuntime environment:
10
10
11
-
1. Provision the Hosted GitOps Runtime with a single click
12
-
1. Authorize access through your OAuth token to the organization where Codefresh creates the Git runtime repo and the shared configuration repo
13
-
1. Connect to an external K8s cluster with access to the internet, to which you can deploy applications
14
-
1. Install Argo Rollouts on the cluster
11
+
1. Provision the Hosted GitOps Runtime with a single click.
12
+
1. Authorize access through your OAuth token to the organization where Codefresh creates the Git runtime repo and the[Shared Configuration Repo]({{site.baseurl}}/docs/installation/gitops/shared-configuration/).
13
+
1. Connect to an external K8s cluster with access to the internet, to which you can deploy applications.
14
+
This is important as you cannot deploy to the in-cluster with the Hosted GitOps Runtime.
15
+
1. Install Argo Rollouts on the cluster.
15
16
16
17
Read our[blog on Hosted GitOps](https://codefresh.io/blog/codefresh-upends-continuous-delivery-with-hosted-gitops-platform-featuring-dora-dashboards-and-first-class-integrations-for-ci/).
17
18
For detailed information on each of the steps below, see[Set up a Hosted GitOps Runtime environment]({{site.baseurl}}/docs/installation/gitops/hosted-runtime/).
18
19
19
20
##Before you begin
20
21
21
-
Verify the following:
22
-
* If you have hybrid runtimes installed, make sure you have latest version of the CLI
23
-
* Check version:
24
-
`cf version`
25
-
To compare with the latest version from Codefresh,[click here](https://github.com/codefresh-io/cli-v2/releases){:target="\_blank"}.
26
-
*[Download the CLI]({{site.baseurl}}/docs/installation/gitops/upgrade-gitops-cli/).
27
-
* Kubernetes cluster with access to the internet
28
-
* OAuth token
22
+
Verify that you have:
23
+
* A Kubernetes cluster with access to the internet
24
+
* An OAuth token
29
25
30
26
##How to
31
27
1. In the Codefresh UI, go to Codefresh[Home Dashboard](https://g.codefresh.io/2.0/?time=LAST_7_DAYS){:target="\_blank"}.
@@ -55,7 +51,7 @@ max-width="80%"
55
51
%}
56
52
57
53
{:start="3"}
58
-
1. Select the Git organization for the runtime installation andshared configuration repos:
54
+
1. Select the Git organization for the runtime installation andthe Shared Configuration Repo:
59
55
* Click**Connect**.
60
56
* Click**Authorize Access** and enter your OAuth token.
61
57
* Select the**Git Organization for which to create the repos**.
@@ -105,6 +101,8 @@ max-width="70%"
105
101
max-width="50%"
106
102
%}
107
103
104
+
You are now ready to create and deploy an Argo CD application.
105
+
108
106
##What to do next
109
107
[Create resources for codefresh-guestbook application]({{site.baseurl}}/docs/quick-start/gitops-quick-start/create-app-specs/)
Copy file name to clipboardExpand all lines: _docs/quick-start/gitops-quick-start/runtime.md
+19-18Lines changed: 19 additions & 18 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@ toc: true
9
9
10
10
11
11
Get up and running with Codefresh by installing the Hybrid Runtime for GitOps via Helm.
12
-
The Runtime is installed through a Helm chart. The Codefresh`values.yaml` is located[here](https://github.com/codefresh-io/gitops-runtime-helm/blob/main/charts/gitops-runtime/){:target="\_blank"}. It contains all the arguments that can be configured, including optional ones.
12
+
The Runtime is installed through a Helm chart. The Codefresh`values.yaml` is located[here](https://github.com/codefresh-io/gitops-runtime-helm/blob/main/charts/gitops-runtime/){:target="\_blank"}. It contains all the arguments that can be configured, including optional ones, with descriptions of each.
Hybrid GitOps Runtimessupports tunnel-based, ingress-based, and service-mesh-based access modes.
48
-
For the quick start, we'll use the tunnel-based mode which is the default access mode,notrequiring an ingress controller.
46
+
###Tunnel-basedRuntime
47
+
Hybrid GitOps Runtimessupport tunnel-based, ingress-based, and service-mesh-based access modes.
48
+
For the quick start, we'll use the tunnel-based mode which is the default access mode that doesnotrequire an ingress controller.
49
49
For details on these access modes, review[GitOps Runtime architecture]({{site.baseurl}}/docs/installation/runtime-architecture/#gitops-runtime-architecture).
50
50
51
51
###GitHub as Git provider
52
52
Hybrid GitOps Runtimes require a Git Runtime token for authentication to the Git installation repository based on your Git provider, and a Git user token to authenticate Git-based actions for the Runtime.
53
53
The quick start uses GitHub as the Git provider. For other Git providers and token requirements, see[Git providers and Git runtime tokens]({{site.baseurl}}/docs/security/git-tokens/#git-runtime-token-scopes).
54
54
55
-
Have your GitHub Runtime tokenready for Runtime installationwith a valid expiration date and access permissions:
55
+
Have your GitHub Runtime token with a valid expiration date and access permissions ready for Runtime installation:
56
56
* Expiration: Either the default of 30 days or any duration you consider logical.
57
57
* Access scopes: Set to`repo` and`admin-repo.hook`
58
58
@@ -75,13 +75,14 @@ Read up on the [Shared Configuration Repository]({{site.baseurl}}/docs/installat
75
75
76
76
##Install Hybrid GitOps Runtime
77
77
78
-
**Before you begin**
78
+
#####Before you begin
79
79
* Make sure your cluster does not have[Argo project components & CRDs](#argo-project-components--crds)
80
80
81
-
**How to**
81
+
#####How to
82
82
83
83
1. In the Welcome page, select**+ Install Runtime**.
84
84
1. From Runtimes in the sidebar, select**GitOps Runtimes**.
85
+
1. Click**Hybrid Runtimes**, and then click**Add**.
85
86
1. Set up your Git provider account:
86
87
1. If not GitHub, select the Git provider.
87
88
1. Define the provider's API URL.
@@ -90,32 +91,32 @@ Read up on the [Shared Configuration Repository]({{site.baseurl}}/docs/installat
90
91
1. Install the Hybrid GitOps Runtime:
91
92
1. Click**Generate** to create a new API key.
92
93
1. Retain the default values for the GitOps Runtime name and namespace,`codefresh`.
93
-
1. Copy the command in_Step 3_ and run it to add the repository in which to store the Helm chart. You don't need to change anything in the command.
94
-
1. Copy the command in_Step 4_ and run it to install the Helm chart for the Hybrid GitOps Runtime:
94
+
1. Copy the command in_Step 3_ and run it to install the Helm chart for the Hybrid GitOps Runtime:
95
95
where:
96
96
*`cf-gitops-runtime` is the default name of the Helm release, which you can change if needed.
97
97
*`codefresh` is the default namespace in which to install the Hybrid GitOps runtime.
98
98
*`<codefresh-account-id>` is mandatory for_tunnel-based Hybrid GitOps Runtimes_, and is automatically populated by Codefresh in the command.
99
99
*`<codefresh-token>` is the API key you generated, and is automatically populated in the command.
100
-
*`codefresh` is the default name of theruntime.
101
-
*`<cf-gitops-runtime/gitops-runtime>` is the name of the repo and must be identical to the one specified in_Step 3_, and is by default,`cf-gitops-runtime`.`gitops-runtime` is the name of the Helm chart predefined by Codefresh, and cannot be changed.
100
+
*`codefresh` is the default name of theRuntime.
101
+
*`oci://quay.io/codefresh/gitops-runtime` is the name of the Helm chart, predefined by Codefresh, and cannot be changed.
1. Wait for a few minutes, and then click**Close**.
113
+
{:start="6"}
114
+
1. Wait for a few minutes, and then click**Close**.
115
115
You are taken to the List View for GitOps Runtimes where you can see the Hybrid GitOps Runtime you added with a green dot indicating that it is online, and the Type column for the Runtime displaying Helm.
116
-
1. Optional. Complete the installation by clicking**Configure as Argo Application**.
117
-
There is no need for any action from you, as Codefresh takes care of the configuration.
118
-
By configuring the Hybrid GitOps Runtime as an Argo Application, you can ensure that GitOps is the single source of truth for the Runtime and view and monitor Runtime components.
116
+
1. Complete the installation by clicking**Configure as Argo Application**.
117
+
There is no need for any further action from you, as Codefresh takes care of the configuration.
118
+
By configuring the Hybrid GitOps Runtime as an Argo Application, you can ensure that GitOps is the single source of truth for the Runtime, and view and monitor Runtime components.
119
+
119
120
120
121
You are now ready to create and deploy a GitOps application in Codefresh.
Copy file name to clipboardExpand all lines: _docs/quick-start/gitops-quick-start/verify-requirements.md
+4-16Lines changed: 4 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,26 +10,14 @@ Hybrid GitOps Runtimes are installed via Helm charts.
10
10
11
11
12
12
##New installation
13
-
If this is your first time installing GitOps in Codefresh, review and confirm that your deployment environment conforms to the minimum requirements for Hybrid GitOps installation. Check the[system requirements]({{site.baseurl}}/docs/installation/gitops/hybrid-gitops/#minimum-system-requirements).
13
+
If this is your first time installing GitOps in Codefresh, review and confirm that your deployment environment conforms to the minimum requirements for Hybrid GitOps installation. Check the[system requirements]({{site.baseurl}}/docs/installation/gitops/hybrid-gitops-helm-installation/#minimum-system-requirements).
14
14
15
15
16
16
##Existing CLI-based Hybrid GitOps installation
17
-
If you already have a CLI-based Hybrid GitOps Runtime installed on your cluster, you have two options:
18
-
1. To install on the same cluster, first uninstall the existing CLI-based Hybrid GitOps Runtime.
19
-
This is the recommended option.
20
-
1. Install on a different cluster, verifying that you meet the minimum requirements.
17
+
If you already have a CLI-based Hybrid GitOps Runtime installed on your cluster, you_must migrate your CLI-based Runtime to the Helm-based Runtime_.
18
+
Read and follow the guidelines in[Migrating GitOps Runtimes from CLI to Helm]({{site.baseurl}}/docs/installation/gitops/migrate-cli-runtimes-helm/).
21
19
22
-
##Uninstallation tips for existing CLI-based Hybrid GitOps Runtimes
23
-
* Before you run uninstall an existing CLI-based Hybrid GitOps Runtime from the Codefresh UI, or run`cf runtime <name> uninstall` from the CLI,_delete_ all Codefresh-related namespaces.
24
-
* If a namespace is frozen in the`Terminating` status, it could be because the namespace has resources with`finalizers` that are preventing deletion.
25
-
Here's how you can remove`finalizers` using`k9s`:
26
-
* In the`applications` view, do the following for each application:
27
-
* Hit`e` to edit the YAML.
28
-
* Scroll down to the section entitled`finalizers`.
29
-
* Move cursor to the line with the finalizer definition, and then hit`dd` to delete the line.
30
-
* Delete also the`finalizers` key.
31
-
* To save and exit, hit`escape``wq:``enter`.
32
-
* Try deleting the namespace again.
20
+
33
21
34
22
##What to do next
35
23
[Install a Hybrid GitOps Runtime]({{site.baseurl}}/docs/quick-start/gitops-quick-start/runtime/)