-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
📖 Improve documentation for config (#176)
* changed: extend docs for config Signed-off-by: Danny Eiselt <eiselt@b1-systems.de> * changed: generate new config Signed-off-by: Danny Eiselt <eiselt@b1-systems.de> --------- Signed-off-by: Danny Eiselt <eiselt@b1-systems.de>
- Loading branch information
Showing
3 changed files
with
146 additions
and
10 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,59 @@ | ||
# Configuration | ||
|
||
This page lists the custom configuration options available, including their default values and if they are optional. The following example shows how these variables can be used inside the `cluster.yaml` file under `spec.topology.variables`. | ||
|
||
## Example | ||
|
||
```yaml | ||
apiVersion: cluster.x-k8s.io/v1beta1 | ||
kind: Cluster | ||
metadata: | ||
name: | ||
namespace: | ||
labels: | ||
managed-secret: cloud-config | ||
spec: | ||
clusterNetwork: | ||
pods: | ||
cidrBlocks: | ||
- 192.168.0.0/16 | ||
serviceDomain: cluster.local | ||
services: | ||
cidrBlocks: | ||
- 10.96.0.0/12 | ||
topology: | ||
variables: // <-- variables from the table can be set here | ||
- name: controller_flavor | ||
value: "SCS-4V-8-20" | ||
- name: worker_flavor | ||
value: "SCS-4V-8-20" | ||
- name: external_id | ||
value: "ebfe5546-f09f-4f42-ab54-094e457d42ec" | ||
class: openstack-alpha-1-29-v2 | ||
controlPlane: | ||
replicas: 2 | ||
version: v1.29.3 | ||
workers: | ||
machineDeployments: | ||
- class: openstack-alpha-1-29-v2 | ||
failureDomain: nova | ||
name: openstack-alpha-1-29-v2 | ||
replicas: 4 | ||
``` | ||
Variables from the table containing a `.` are to be used in an object with the part before the dot being the object name and the part behind the dot being the value names. The following example demonstrates this with `oidc_config`. | ||
|
||
```yaml | ||
... | ||
topology: | ||
variables: | ||
- name: oidc_config | ||
value: | ||
issuer_url: "https://dex.k8s.scs.community" | ||
client_id: "kubectl" | ||
... | ||
``` | ||
|
||
## Available variables | ||
|
||
!!table!! |
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