Skip to content

Commit

Permalink
Update bootstrap guides and diagram
Browse files Browse the repository at this point in the history
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
  • Loading branch information
stefanprodan committed May 8, 2024
1 parent 0d49ce8 commit 778ad85
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 7 deletions.
1 change: 1 addition & 0 deletions content/en/flux/installation/bootstrap/azure-devops.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ Run bootstrap using the SSH URL of the Azure DevOps repository and the RSA SHA-2
flux bootstrap git \
--url=ssh://git@ssh.dev.azure.com/v3/<org>/<project>/<repository>
--branch=<my-branch> \
--ssh-hostkey-algos=rsa-sha2-512,rsa-sha2-256 \
--private-key-file=<path/to/ssh/private.key> \
--password=<key-passphrase> \
--path=clusters/my-cluster
Expand Down
4 changes: 2 additions & 2 deletions content/en/flux/installation/bootstrap/gitlab.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ inside the `flux-system` namespace.

{{% alert color="danger" title="Deploy token read-only" %}}
Note that project deploy tokens grant read-only access to Git.
If you want to use Flux image automation, please see how to configure
[GitLab Deploy Keys](#gitlab-deploy-keys) with read-write Git accesses.
If you want to use Flux image automation, please see how to configure [GitLab Deploy Keys](#gitlab-deploy-keys) with
read-write Git accesses.
{{% /alert %}}

## GitLab Groups
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ description: "How to bootstrap Flux with Oracle VBS Git Repositories"
weight: 70
---

To install Flux on an [OKE](https://www.oracle.com/cloud/cloud-native/container-engine-kubernetes) cluster using an Oracle VBS Git repository as the source of truth,
To install Flux on an [OKE](https://www.oracle.com/cloud/cloud-native/container-engine-kubernetes) cluster
using an Oracle VBS Git repository as the source of truth,
you can use the [`flux bootstrap git`](generic-git-server.md) command.

{{% alert color="danger" title="Required permissions" %}}
Expand Down Expand Up @@ -38,7 +39,7 @@ Run the bootstrap for a repository using token-based authentication:
```sh
flux bootstrap git \
--with-bearer-token=true \
--url=https:<repository-url> \
--url=https://<vbs-repository-url> \
--branch=my-branch \
--path=clusters/my-cluster
```
Expand All @@ -50,7 +51,14 @@ Note that the Oracle VBS PAT is stored in the cluster as a **Kubernetes Secret**
inside the `flux-system` namespace.

{{% alert color="info" title="Token rotation" %}}
Note that Oracle VBS PAT may have an expiry date if it was configured to have one. To rotate the token before it expires,
delete the `flux-system` secret from the cluster and re-run
the bootstrap command using a valid PAT.
Note that Oracle VBS PAT may have an expiry date if it was configured to have one.
To rotate the token before it expires,
delete the `flux-system` secret from the cluster and recreate it with the new PAT:

```sh
flux create secret git flux-system \
--url=https://<vbs-repository-url> \
--bearer-token=<vbs-token>
```
{{% /alert %}}

Binary file modified static/img/diagrams/gitops-toolkit.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 778ad85

Please sign in to comment.