@@ -4,19 +4,55 @@ GitOps has become a popular way of managing changes to kubernetes cluster
4
4
resources. If you want to know more about gitops, head over to weaveworks and
5
5
read about it https://www.weave.works/technologies/gitops/
6
6
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
8
21
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.
11
24
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:
15
27
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
+ ```
17
44
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.
19
49
20
- ## ArgoCD
50
+ ### Caveats
21
51
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.
0 commit comments