Repository navigation
Replies: 1 comment
|
1.1 reusing the same 'config' folder for multiple clusters: yes, that's actually what we do. configFileDir := filepath.Dir(absPath)
// Set default patchesDir if not specified
if config.PatchesDir == "" {
config.PatchesDir = configFileDir
} else if !filepath.IsAbs(config.PatchesDir) {
config.PatchesDir = filepath.Join(configFileDir, config.PatchesDir)
}
FYI: the way we organize our talos config is as follows:
|
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
We manage several Talos clusters whose machine config is mostly identical, with
a small per-cluster delta (CNI, storage driver, networking). Coming from
talhelper, where a shared
patches/directory was merged with a per-cluster one.The docs describe the merge order within one cluster (
all/→ role →node/)and
patchesDir(default: the directory containingtopf.yaml), and ProductionUsage recommends versioning the config directory so a baseline can be shared —
but not the on-disk shape.
Is there a recommended layout for this? Specifically:
Is pointing several clusters'
topf.yamlat one tree (patchesDir: ../shared)a supported pattern? Are relative
patchesDirpaths resolved against thedirectory containing
topf.yaml, the waysecretsPathexplicitly is?Is
data:+ templates the intended way to express per-cluster deltas, or isthere something better suited?
Any plan for merging multiple patch directories (
patchesDirs: [../shared, .]),so the delta could stay plain YAML instead of template conditionals?
All reactions