flux

ArunaLakmal/flux/gitlab

Terraform Module HCL GITLAB

Terraform module to bootstrap FluxCD v2 with a GitLab repository

Install
module "flux" {
source = "ArunaLakmal/flux/gitlab"
version = "1.0.2"
}
plain text: /constructs/tfmod-arunalakmal-flux-gitlab/install.txt
⭐ Source on GitHub 📦 Registry page
README

Terraform Flux Bootstrap with GitLab Repository on Kubernetes This module is created to bootstrap FluxCD V2 on multiple Kubernetes clusters. This has been tested and used in few environments. Usage Provide the below variables and use the modeule as below `` module "flux" { source = "ArunaLakmal/flux/gitlab" version = "1.0.2" gitlab_token = "xxxxxxx" target_path = "cluster/path" branch = "master" gitlab_repo_path = "repository/path/in/gitlab" gitlab_project_id = "project_id" gitops_administrator_repo = "git_repository_name" kube_config_path = "kubeconfig/file/path" flux_namespace = "flux_namespace" } ` Note: Flux namespace is defaults to flux-system` hence optional

Inputs (8)
NameTypeDescriptionDefault
gitops_administrator_repostringName of the repository to be treated as the GitOps Administrator required
gitlab_tokenstringGitLab Token for the bootstrp generate it from GitLab console required
target_pathstringPath of the cluster configuration required
gitlab_repo_pathstringGitLab repository path this should be valid to find the repository required
gitlab_project_idstringGitLab repository ID, you can find it in the repository page at the top required
kube_config_pathstringPath of the kubeconfig file to authenticate with the Kubernetes API"~/.kube/config"
flux_namespacestringNamespace which is required for the controlloer deployments, all the Flux Contro"flux-system"
branchstringGitOps administrator repository branch, this will be the branch to be looked at "master"
Outputs (3)
flux_namespace
install_manifests
sync_manifests
Resources (5)
gitlab_deploy_keykubectl_manifestkubernetes_namespacekubernetes_secrettls_private_key
Details
FrameworkTerraform Module
LanguageHCL
Version1.0.2
Cloud GITLAB
★ Stars1
Forks3
Total downloads843
Inputs8
Outputs3
Resources5
NamespaceArunaLakmal
Updated