Skip to content
This repository was archived by the owner on Nov 21, 2023. It is now read-only.

Commit 4113855

Browse files
authored
📝 documentation for gitops support (#36)
1 parent efcdafb commit 4113855

File tree

5 files changed

+55
-22
lines changed

5 files changed

+55
-22
lines changed

docs/operator-manual/gitops.mdx

+46-10
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,55 @@ GitOps has become a popular way of managing changes to kubernetes cluster
44
resources. If you want to know more about gitops, head over to weaveworks and
55
read about it https://www.weave.works/technologies/gitops/
66

7-
The rig platform has initial support for committing the changes it does to
7+
## Flux
8+
9+
We have prepared a small demo repository which show cases how rig can be
10+
deployed using Flux. Head over to Github to explore the repo:
11+
https://github.com/rigdev/flux-demo
12+
13+
## ArgoCD
14+
15+
We are working on an equivalent example as we have for flux with regards to how
16+
to setup rig in a GitOps setting.
17+
18+
## GitOps for rig-platform resource changes
19+
20+
The rig platform has experimental support for committing the changes it does to
821
Kubernetes resources to a git repository, instead of actually doing the changes
9-
them. This can be paired with flux or argocd, to have the rig-platform tied
10-
well into your existing gitops workflow.
22+
against the kubernetes APIs. This can be paired with flux or argocd, to have
23+
the rig-platform tied well into your existing GitOps workflow.
1124

12-
It is currently not possible to set this configuration directly through the
13-
helm chart, but it can be set if you manually manage the configuration. See the
14-
section about [manual configuration](/operator-manual/secrets).
25+
In order to enable the git write back feature, set the following helm values
26+
when installing the rig-platform chart:
1527

16-
## Flux
28+
```yaml
29+
rig:
30+
cluster:
31+
git:
32+
url: <git-repo-url>
33+
branch: <git-branch>
34+
path_prefix: <path-in-git-repo>
35+
credentials:
36+
https:
37+
username: <username>
38+
password: <password>
39+
# Or the following if using SSH instead of basic auth
40+
# ssh:
41+
# private_key: <pem-encoded-private-key>
42+
# private_key_password: <optional-private-key-password>
43+
```
1744

18-
We will soon have a small example repo of how this could look using flux.
45+
This will make rig-platform commit yaml into the folder denoted by
46+
`rig.cluster.git.path_prefix`. You will need to ensure that your gitops tool of
47+
choice is setup to include the given folder in the cluster where you want the
48+
resources. The flux example is setup to include the `apps/demo` folder.
1949

20-
## ArgoCD
50+
### Caveats
2151

22-
We will soon have a small example repo of how this could look using ArgoCD.
52+
- Currently rig-platform will not take ownership of existing resources in the
53+
GitOps repo. This is something we are looking into in order to enable
54+
seamless migrations and disaster recovery.
55+
- We want to explore is the option of having rig make PRs with it's changes, so
56+
that they can take part in a regular git approval flow.
57+
- We currently only support configuring one repository, but we plan to lift the
58+
concept to rig-platform projects at some point.

docs/operator-manual/gitops/setup-with-argo-cd.mdx

-1
This file was deleted.

docs/operator-manual/gitops/setup-with-flux.mdx

-1
This file was deleted.

docs/operator-manual/secrets.mdx

-1
This file was deleted.

menu.js

+9-9
Original file line numberDiff line numberDiff line change
@@ -234,15 +234,15 @@ const sidebars = {
234234
sidebar_icon: "BiSolidLayout",
235235
},
236236
},
237-
// {
238-
// type: "doc",
239-
// id: "operator-manual/gitops",
240-
// label: "GitOps",
241-
// //link: { type: "doc", id: "operator-manual/gitops" },
242-
// className: "homepage-sidebar-item",
243-
// customProps: {
244-
// sidebar_icon: "SiGit",
245-
// },
237+
{
238+
type: "doc",
239+
id: "operator-manual/gitops",
240+
label: "GitOps",
241+
className: "homepage-sidebar-item",
242+
customProps: {
243+
sidebar_icon: "SiGit",
244+
}
245+
},
246246
//collapsed: true,
247247
//items: [
248248
// {

0 commit comments

Comments
 (0)