Skip to content

Conversation

kke
Copy link
Contributor

@kke kke commented Dec 31, 2024

Fixes #812

  • Multiple --config statements, globs such as config/**/*.yaml or directories as in --config configs/ are now allowed.
  • spec.k0s.config can now be defined in a separate config in the standard k0s configuration format with apiVersion: k0s.k0sproject.io/v1beta1 and kind: ClusterConfig.
  • The separate k0s config can also be contained in the same multidoc YAML configuration file as the k0sctl.yaml when separated with the --- document separator.

Multidoc configuration example:

apiVersion: k0sctl.k0sproject.io/v1beta1
kind: cluster
spec:
  hosts:
    - role: single
      ssh:
        address: 10.0.0.1
  k0s:
    version: "v1.31.3+k0s.0"
---
apiVersion: k0s.k0sproject.io/v1beta1
kind: ClusterConfig
metadata:
  name: k0s
spec:
  api:
    address: 192.168.68.104
    k0sApiPort: 9443
    port: 6443

@kke kke added the enhancement New feature or request label Dec 31, 2024
@kke kke force-pushed the multidoc-yamls branch 2 times, most recently from 5f1d8d3 to cf1d29d Compare January 15, 2025 13:17
@kke kke changed the title Allow reading k0s config from a separate YAML document Allow reading k0s config from a separate or multidoc YAML document Jan 15, 2025
@kke kke force-pushed the multidoc-yamls branch 2 times, most recently from eefd3b4 to 168eadb Compare January 15, 2025 13:32
Signed-off-by: Kimmo Lehto <klehto@mirantis.com>
Signed-off-by: Kimmo Lehto <klehto@mirantis.com>
@kke kke marked this pull request as ready for review January 16, 2025 07:43
@kke kke merged commit 63ef8eb into main Jan 16, 2025
43 checks passed
@kke kke deleted the multidoc-yamls branch January 16, 2025 07:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support multidoc-YAMLs

1 participant