Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Gitops helm install#595

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
NimRegev merged 22 commits intomasterfromgitops-helm-install
Mar 14, 2023
Merged
Show file tree
Hide file tree
Changes fromall commits
Commits
Show all changes
22 commits
Select commitHold shift + click to select a range
e628df2
Add topic for helm hybrid gitops install
NimRegevFeb 28, 2023
8e8144f
Update hybrid-gitops-helm-installation.md
NimRegevFeb 28, 2023
c5c7379
Update hybrid-gitops-helm-installation.md
NimRegevFeb 28, 2023
c055bda
Update nav.yml
NimRegevFeb 28, 2023
a09031e
Update nav.yml
NimRegevFeb 28, 2023
94cc1c0
Update hybrid-gitops-helm-installation.md
NimRegevFeb 28, 2023
ac595e3
Update hybrid-gitops-helm-installation.md
NimRegevMar 2, 2023
65ea8aa
Update hybrid-gitops-helm-installation.md
NimRegevMar 2, 2023
0597930
Update hybrid-gitops-helm-installation.md
NimRegevMar 5, 2023
a9e13b5
Update hybrid-gitops-helm-installation.md
NimRegevMar 5, 2023
2dd9070
Update hybrid-gitops-helm-installation.md
NimRegevMar 5, 2023
d98ab94
Update hybrid-gitops-helm-installation.md
NimRegevMar 5, 2023
a0799d3
Update hybrid-gitops-helm-installation.md
NimRegevMar 5, 2023
c81ce66
Update hybrid-gitops-helm-installation.md
NimRegevMar 5, 2023
2cd39cf
Update hybrid-gitops-helm-installation.md
NimRegevMar 6, 2023
81e027b
Update hybrid-gitops-helm-installation.md
NimRegevMar 6, 2023
1e1e7ed
Update hybrid-gitops-helm-installation.md
NimRegevMar 6, 2023
37ff42b
Update hybrid-gitops-helm-installation.md
NimRegevMar 6, 2023
ab8cdb9
Update hybrid-gitops-helm-installation.md
NimRegevMar 6, 2023
cd24323
Update hybrid-gitops-helm-installation.md
NimRegevMar 12, 2023
e5a3dfd
Update hybrid-gitops-helm-installation.md
NimRegevMar 14, 2023
d3ee213
Update hybrid-gitops-helm-installation.md
NimRegevMar 14, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
133 changes: 133 additions & 0 deletions_docs/installation/gitops/hybrid-gitops-helm-installation.md
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,133 @@
---
title: "Hybrid GitOps Runtime installation"
description: "Provision Hybrid GitOps Runtimes"
group: installation
toc: false
---

Install the Hybrid Runtime for GitOps through a Helm chart.
> Helm installation for Hybrid GitOps is currently in Alpha.

* Access mode for runtime
Helm install supports both tunnel-based and ingress-based access modes. The tunnel-based access mode is the default access mode. <br>
Ingress-based access modes require an ingress controller to be configured before the installation, and additional flags such as the ingress host and class to be supplied as part of the install command.

* Shared configuration repository
The Alpha version assumes that you already have a shared configuration repository for your account.
If this is not the case, contact support to help you set one up.



## Prerequisites

* [Minimum requirements]({{site.baseurl}}/docs/installation/gitops/hybrid-gitops/#minimum-system-requirements) for installation
* Git provider requirements:
* [Runtime token with the required scopes]({{site.baseurl}}/docs/reference/git-tokens/#git-runtime-token-scopes). You will need it after installation to update runtime credentials
* [Personal Access Token (PAT)]({{site.baseurl}}/docs/reference/git-tokens/#git-personal-tokens) for Git-based actions
* Server URLs for on-premises Git providers
* (Optional, for ingress-based runtimes only) configuration for ingress controllers:
* [Ambasador ingress configuration]({{site.baseurl}}/docs/installation/gitops/hybrid-gitops/#ambassador-ingress-configuration)
* [AWS ALB ingress configuration]({{site.baseurl}}/docs/installation/gitops/hybrid-gitops/#alb-aws-ingress-configuration)
* [Istio ingress configuration]({{site.baseurl}}/docs/installation/gitops/hybrid-gitops/#istio-ingress-configuration)
* [NGINX Enterprise ingress configuration]({{site.baseurl}}/docs/installation/gitops/hybrid-gitops/#nginx-enterprise-ingress-configuration)
* [NGINX Community ingress configuration]({{site.baseurl}}/docs/installation/gitops/hybrid-gitops/#nginx-community-version-ingress-configuration)
* [Traefik ingress configuration]({{site.baseurl}}/docs/installation/gitops/hybrid-gitops/#traefik-ingress-configuration)


## Install Hybrid GitOps runtime with Helm
Follow the steps to install Hybrid GitOps via Helm.<br>
The Codefresh `values.yaml` is located [here](https://github.com/codefresh-io/gitops-runtime-helm/tree/main/charts/gitops-runtime){:target="\_blank"}.
<br><br>
Ingress-based runtimes require you to add ingress-specific flags to the install command, including the ingress host and the ingress class.
The ingress host is the IP address or host name of the ingress controller component.
The ingress class is the ingress class of the ingress controller, for example, `nginx` for the NGINX ingress controller.

<br>


1. Do one of the following:
* If this is your first Hybrid GitOps installation, in the Welcome page, select **+ Install Runtime**.
* If you have already provisioned a Hybrid GitOps Runtime, to provision additional runtimes, in the Codefresh UI:
On the toolbar, click the **Settings** icon, and from Runtimes in the sidebar, select [**GitOps Runtimes**](https://g.codefresh.io/2.0/account-settings/runtimes){:target="\_blank"}.
1. Click **+ Add Runtimes**, and then select **Hybrid Runtimes**.
1. Click **Generate** to generate your API key.
1. If needed, select **Customize runtime values**, and define the **Runtime Name** and **Namespace**.
> The Namespace must be identical to the Runtime Name. The default names are `codefresh` for both.
1. Copy and run the command to the add the repository for the Helm chart:
`helm repo add <helm-repo-name> https://chartmuseum.codefresh.io/gitops-runtime` <br>
`helm repo update`
where:
`<helm-repo-name>` is the name of the repository to which to add the runtime Helm chart. For example, `cf-gitops-runtime`.
1. Copy and run the command to install the runtime Helm chart:
The commands differ depending on the access mode. An ingress-based runtime requires additional flags.<br>
**Tunnel-based install chart command:**<br>
`helm upgrade --install <helm-release-name> --create-namespace --namespace <namespace> --set global.codefresh.accountId=<codefresh-account-id> --set global.codefresh.userToken.token=<codefresh-api-key> --set global.runtime.name=<runtime-name> <helm-repo-name>/gitops-runtime --devel`

**Ingress-based install chart command:**<br>
`helm upgrade --install <helm-release-name> --create-namespace --namespace <namespace> --set global.codefresh.accountId=<codefresh-account-id> --set global.codefresh.userToken.token=<codefresh-api-key> --set global.runtime.name=<runtime-name> <helm-repo-name>/gitops-runtime --set global.runtime.ingress.enabled=true --set "global.runtime.ingress.hosts[0]"=<ingress-host> --set global.runtime.ingress.className=<ingress-class> --devel`

>Unless otherwise indicated, values are automatically populated by Codefresh.

where:
* `<helm-release-name>` is the name of the Helm release.
* `<namespace>` is the namespace in which to install the Hybrid GitOps runtime, either `codefresh`, or the custom name you defined.
* `<codefresh-account-id>` is your Codefresh account ID.
* `<codefresh-api-key>` is the generated API key.
* `<runtime-name>` is the name of the runtime, either `codefresh`, or the custom name you defined.
* `gitops-runtime` is the chart name defined by Codefresh.
* `global.runtime.ingress.enabled=true` is mandatory for _ingress-based runtimes_, and indicates that the runtime is ingress-based.
* `<ingress-host>` is mandatory for _ingress-based runtimes_, and is the IP address or host name of the ingress controller component.
* `<ingress-class>` is mandatory for _ingress-based runtimes_, and is the ingress class of the ingress controller. For example, `nginx` for the NGINX ingress controller.

1. Verify that the deployment is up and running after a couple of minutes.
1. Define your Git provider:
`cf integration git add default --runtime <runtime-name> --api-url <api-url> --provider <provider>`
where:
* `<runtime-name>` is the name of the runtime, either `codefresh`, or the custom name you defined.
* `<api-url>` is the URL of the Git provider, and can be one of the following:
* GitHub Cloud: `https://api.github.com`
* GitHub Enterprise: `https://<server-url>/api/v3`
* GitLab Cloud: `https://gitlab.com/api/v4`
* GitLab Server: `<server-url>/api/v4`
* Bitbucket Cloud: `https://api.bitbucket.org/2.0`
* Bitbucket Server: `<server-url>/rest/api/1.0`
* `<provider>` is the Git provider for the runtime. The same provider is used to install additional runtimes in the same account. Can be one of the following:
* GitHub and GitHub Enterprise: `github`
* GitLab Cloud and GitLab Server: `gitlab`
* Bitbucket Cloud: `bitbucket`
* Bitbucket Server: `bitbucket-server`
1. When the installation is complete, go to the **List View**, and select the new runtime.
1. From the context menu on the right, select **Update Git Runtime Credentials**.

{% include
image.html
lightbox="true"
file="/images/runtime/gitops-hybrid-helm-update-token.png"
url="/images/runtime/gitops-hybrid-helm-update-token.png"
alt="Update Git Runtime Credentials after installation"
caption="Update Git Runtime Credentials after installation"
max-width="80%"
%}

{:start="11"}
1. Paste the token you created and click **Update Credentials**.
1. Now add your personal access token, or if your admin has set up OAuth2, authorize access.
* Click your avatar, select [**Git Personal Access Token**](https://g.codefresh.io/2.0/git-personal-access-token){:target="\_blank"}.
* Proceed as needed. For details, see [Authorize Git access in Codefresh]({{site.baseurl}}/docs/administration/user-self-management/manage-pats/#authorize-git-access-in-codefresh).
1. If you don't have the shared configuration repository for GitOps runtimes, contact support.
> For the Alpha, we assume that you already have a shared configuration repository for your account.
1. Optional. [Create a Git Source]({{site.baseurl}}/docs/installation/gitops/git-sources/#create-a-git-source) for the runtime.
1. Optional. Required for ingress-based only. If relevant, complete the configuration for these ingress controllers:
* [ALB AWS: Alias DNS record in route53 to load balancer]({{site.baseurl}}/docs/installation/gitops/hybrid-gitops/#create-an-alias-to-load-balancer-in-route53)
* [Istio: Configure cluster routing service]({{site.baseurl}}/docs/installation/gitops/hybrid-gitops/#cluster-routing-service)
* [NGINX Enterprise ingress controller: Patch certificate secret]({{site.baseurl}}/docs/installation/gitops/hybrid-gitops/#patch-certificate-secret)
1. Optional. Required for ingress-based only. Create and register Git integrations using these commands:
`cf integration git add default --runtime <RUNTIME-NAME> --api-url <API-URL>`
`cf integration git register default --runtime <RUNTIME-NAME> --token <RUNTIME-AUTHENTICATION-TOKEN>`


## Related articles
[Shared configuration repo for GitOps Runtimes]({{site.baseurl}}/docs/reference/shared-configuration/)
[Add Git Sources to GitOps Runtimes]({{site.baseurl}}/docs/installation/gitops/git-sources/)
[GitOps Runtime architecture]({{site.baseurl}}/docs/installation/runtime-architecture/#gitops-runtime-architecture)

View file
Open in desktop
Loading
Sorry, something went wrong.Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

[8]ページ先頭

©2009-2025 Movatter.jp