Skip to content

Commit 95e3e99

Browse files
committed
the setup for the experiment
We're doing a little Git-less Flux. This may not be advisable. Note the "DO NOT EDIT" klaxon at the top of this file. "# I was warned" says it all. https://fluxcd.io/flux/installation/configuration/boostrap-customization/ for the best-practices way to do this type of customization, we are in uncharted territory using Flux manifests with OCI in a Git-less way. Signed-off-by: Kingdon Barrett <[email protected]>
1 parent 8e2f4da commit 95e3e99

File tree

2 files changed

+34
-1
lines changed

2 files changed

+34
-1
lines changed

README.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,9 @@ then you may simply need to [annotate the nodes](https://github.com/KWasm/kwasm-
117117
If you get this error:
118118

119119
```
120-
...
120+
✔ component manifests are up to date
121+
► installing components in "flux-system" namespace
122+
✗ Kustomization/flux-system/flux-system dry-run failed: no matches for kind "Kustomization" in version "kustomize.toolkit.fluxcd.io/v1"
121123
```
122124

123125
...Then either I forgot to clean up after my experiments in `flux-system`, or

clusters/cozy-test/flux-system/gotk-sync.yaml

+31
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,34 @@ spec:
2525
sourceRef:
2626
kind: GitRepository
2727
name: flux-system
28+
# I was warned
29+
---
30+
apiVersion: kustomize.toolkit.fluxcd.io/v1
31+
kind: Kustomization
32+
metadata:
33+
name: flux-oci
34+
namespace: flux-system
35+
spec:
36+
interval: 10m0s
37+
path: ./
38+
prune: true
39+
sourceRef:
40+
kind: OCIRepository
41+
name: flux-oci
42+
patches:
43+
- patch: |
44+
- op: add
45+
path: /spec/template/spec/containers/0/args/-
46+
value: --concurrent=10
47+
- op: add
48+
path: /spec/template/spec/containers/0/args/-
49+
value: --requeue-dependency=5s
50+
- op: replace
51+
path: /spec/template/spec/containers/0/resources/limits/cpu
52+
value: "2"
53+
- op: replace
54+
path: /spec/template/spec/containers/0/resources/limits/memory
55+
value: "2Gi"
56+
target:
57+
kind: Deployment
58+
name: "(kustomize-controller|helm-controller|source-controller)"

0 commit comments

Comments
 (0)