From 02c0dc1217cedf98319459969887a5ff573ef1d4 Mon Sep 17 00:00:00 2001 From: stefanprodan Date: Mon, 3 Aug 2020 10:17:47 +0300 Subject: [PATCH] Add bootstrap path example to installation --- docs/guides/installation.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/docs/guides/installation.md b/docs/guides/installation.md index 14e42e25..9a3cc12f 100644 --- a/docs/guides/installation.md +++ b/docs/guides/installation.md @@ -50,6 +50,20 @@ tk bootstrap \ If you wish to install a specific version, use the toolkit [release tag](https://github.com/fluxcd/toolkit/releases) e.g. `--version=v0.0.14`. +With `--path` you can configure the directory which will be used to reconcile the target cluster. +To control multiple clusters from the same Git repository, you have to set a unique path per +cluster e.g. `staging-cluster` and `production-cluster`: + +```sh +├── staging-cluster # <- path=staging-cluster +│   └── gitops-system # <- namespace dir generated by bootstrap +│   ├── toolkit-components.yaml +│   ├── toolkit-kustomization.yaml +│   └── toolkit-source.yaml +└── production-cluster # <- path=production-cluster + └── gitops-system +``` + ### GitHub and GitHub Enterprise Generate a [personal access token](https://help.github.com/en/github/authenticating-to-github/creating-a-personal-access-token-for-the-command-line)