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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
* Set up integrations with the Git provider for the Hosted GitOps Runtime
##Prerequisites
* Set up integrations with the Git provider for the Hosted GitOps Runtime:
* GitHub
* Bitbucket Cloud
* Gerrit
Expand DownExpand Up
@@ -78,33 +78,28 @@ max-width="80%"
* In the Codefresh UI, click the **Settings** icon on the toolbar.
* From Runtimes in the sidebar, select [**GitOps Runtimes**](https://g.codefresh.io/2.0/account-settings/runtimes){:target="\_blank"}, and click **+ Add Runtime**.
* Select **Hosted Runtime** and click **Add**.
{{site.data.callout.callout_tip}}
**TIP**
An account can be provisioned with a single Hosted GitOps Runtime. If you have already provisioned a Hosted GitOps Runtime for your account, the Hosted GitOps Runtime option is disabled.
{{site.data.callout.end}}
* Continue from _step 3_.
{:start="3"}
1. When complete, to view the components for the Hosted GitOps Runtime, click **View Runtime**.
You are directed to the Runtime Components tab.
1. Optional. When complete, click **View Runtime**.
* You can see that there are two steps to complete setup for the Hosted GitOps Runtime.
* The Runtime Components tab is empty as the Runtime components are hosted and managed by Codefresh.
When Argo Rollouts is deployed on target clusters, the Runtime Components tab displays rollout reporters whose manifests are stored in the customer's Shared Configuration Repository created for the Runtime (described in Step 2).
* The Git Sources and the Managed Clusters tabs are also empty as they will be set up in the next steps.
caption="Hosted GitOps Runtime after installation"
max-width="70%"
%}
{{site.data.callout.callout_tip}}
**TIP**
You can see that there are two steps to complete Hosted GitOps setup.
The Git Sources and the Managed Clusters are empty as they will be set up in the next steps.
{{site.data.callout.end}}
If you navigate to **Runtimes > List View**, you can identify the Hosted GitOps Runtime through the Type column (Hosted),the Cluster/Namespace column (Codefresh), and the Module column (CD Ops).
If you navigate to **Runtimes > List View**, you can identify the Hosted GitOps Runtime through the Type column (Hosted) andthe Cluster/Namespace column (Codefresh).
{% include
image.html
Expand All
@@ -116,35 +111,7 @@ caption="Hosted GitOps Runtime in List view"
Your Hosted GitOps Runtime may fail to install with an error as in the image below. We are closely moinitoring the Hosted GitOps Runtime installation process and activley working to prevent and iron out all installation errors. Follow the instructions to uninstall and reinstall the Hosted GitOps Runtime.
{% include
image.html
lightbox="true"
file="/images/runtime/hosted-runtime-error.png"
url="/images/runtime/hosted-runtime-error.png"
alt="Hosted runtime installation error"
caption="Hosted runtime installation error"
max-width="70%"
%}
1. Download the CLI
* If you have installed the Codefresh CLI already, make sure you have the latest version:
`cf version`
To compare with the latest version from Codefresh, [click here](https://github.com/codefresh-io/cli-v2/releases){:target="\_blank"}.
* [Download the CLI]({{site.baseurl}}/docs/clients/csdp-cli/).
1. Uninstall the failed Hosted GitOps Runtime:
`cf runtime uninstall codefresh-hosted --force`
where:
`hosted-codefresh` is the name of your Hosted GitOps Runtime, automatically assigned by Codefresh.
1. In the Codefresh UI, return to Codefresh [Home](https://g.codefresh.io/2.0/?time=LAST_7_DAYS){:target="\_blank"}.
1. Refresh the page and start with [Step 1: Install Hosted GitOps Runtime](#step-1-install-hosted-gitops-runtime).
-->
## Step 2: Connect Git provider
Connect your Hosted GitOps Runtime to a Git provider for Codefresh to create the required Git repos.
Expand All
@@ -166,7 +133,7 @@ max-width="80%"
%}
Once you authorize access, Codefresh creates two Git repositories, one to store the configuration settings for GitOps Runtimes, and the other to store the Runtime's application settings:
Once you authorize access, Codefresh creates two Git repositories, one to store the configuration settings for GitOps Runtimes, and the other to store the Runtime's application settings as a Git Source:
* Shared Configuration Repository
The Shared Configuration Repository is a centralized Git repository that stores configuration settings for the Hosted GitOps Runtime. Additional Hybrid runtimes provisioned for the account can point to this repo to retrieve and reuse the configuration.
Read about [Shared Configuration Repositories]({{site.baseurl}}/docs/installation/gitops/shared-configuration/).
Expand All
@@ -176,11 +143,11 @@ Once you authorize access, Codefresh creates two Git repositories, one to store
Codefresh creates a Git Source application repo for every Hosted GitOps Runtime.
Read about [Git sources]({{site.baseurl}}/docs/installation/gitops/git-sources/).
### Before you begin
##### Before you begin
Make sure you have the credentials for the Git provider handy
### How to
##### How to
1. From the list, select the Git provider.
1. Enter the credentials for the selected Git provider:
Expand DownExpand Up
@@ -240,7 +207,7 @@ max-width="70%"
1. Optional. To see your tokens, click **View Tokens**.
If you return to the Runtimes page and select the Git Source tab, you will now see the Git Source that Codefresh created.
The Sync State may be Unknown for a few moments untilit is synced to the Codefresh cluster.
The Sync State may be Unknown for a few moments untilthe Git Source is synced to the Codefresh cluster.
{% include
image.html
Expand DownExpand Up
@@ -269,10 +236,10 @@ caption="Step 3: Connect a K8s cluster for Hosted GitOps Runtime"
max-width="70%"
%}
**Before you begin**
#####Before you begin
* Make sure your cluster has internet access
**How to**
#####How to
1. Click **Connect**.
1. In the Add Managed Cluster panel, copy the command `cf cluster add`, and run it in the terminal.
1. When prompted to select the `kube-context`, select from the list of available clusters as defined in `kubeconfig`.
Sorry, this file is invalid so it cannot be displayed.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.