generated from onedr0p/cluster-template
-
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
patch(#92) Add README regarding general cluster folder structure.
- Loading branch information
Showing
2 changed files
with
29 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
This is a basic layout for my cluster files | ||
|
||
. | ||
└── cluster/ | ||
├── apps/ | ||
| └── ... | ||
├── base/ | ||
| ├── flux-system/ | ||
| | ├── charts/ | ||
| | ├── git-repos/ | ||
| | └── ... | ||
| └── ... | ||
├── core/ | ||
| ├── namespaces/ | ||
| └── ... | ||
└── crds/ | ||
└── ... | ||
|
||
The apps/ dir contains all the apps in the cluster. I have them striated by namespace. | ||
The base/ dir contains the flux-system and kustomize 'roots' so to speak. This is what 'drives' the gitops of the cluster. | ||
The core/ dir contains all resources that are prerequisites to namespaces and workloads. | ||
The crds/ dir contains ...well CRDS for various things that need to be indepently defined but don't exactly belong in the other categories. Some people just add this as part of core/ which is also valid. | ||
|
||
Note: Each subfolder has it's own root kustomization.yaml which aren't strictly necessary as you can configure kustomize to work without them. I like having them because it makes it super easy to enable/disable entire subfolders on the fly. |