Bootstrap
Revision | Date | Description |
|---|---|---|
| 24.07.2024 | Init Changelog |
Introduction
This article explains how to bootstrap FluxCD on Kubernetes Cluster with Gitlab as source of code.
Instructions
To bootstrap FluxCD on cluster with Gitlab, follow steps below:
Install FluxCD CLI:
Homebrew
brew install fluxcd/tap/fluxBash
curl -s https://fluxcd.io/install.sh | sudo bashCreate Gitlab repository for your code.
Create Personal Access Token with API access on GItlab (you can use own PAT or create technical user - if it already exists, check for PAT in 1Password Vault).
Export PAT into your shell env:
Export PAT into your shell env:
Run bootstrap command (adjust to your preferences - look at table below instructions):
Available configuration
Flag | Description | Default value |
|---|---|---|
| When enabled, a Project Deploy Token is generated and will be used instead of the SSH deploy token. | |
| GitLab hostname. |
|
| Sync interval. |
|
| GitLab user or group name. | |
| Path relative to the repository root, when specified the cluster sync will be scoped to this path. |
|
| If true, the owner is assumed to be a GitLab user; otherwise a group. | |
| If true, the repository is setup or configured as private. |
|
| If true, the deploy key is configured with read/write permissions. | |
| If true, the configured options are also reconciled if the repository already exists. | |
| GitLab repository name. | |
| GitLab teams to be given maintainer access (also accepts comma-separated values). |