Skip to content

Commit

Permalink
Include node join reference and additional docstrings
Browse files Browse the repository at this point in the history
  • Loading branch information
petrutlucian94 committed Oct 4, 2024
1 parent 4978866 commit cbc6f13
Show file tree
Hide file tree
Showing 7 changed files with 127 additions and 55 deletions.
70 changes: 49 additions & 21 deletions docs/src/_parts/bootstrap_config.md
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,8 @@ Configuration options for the metric server feature.
### cluster-config.metrics-server.enabled
**Type:** `bool`<br>

Determines if the feature should be enabled.
If omitted defaults to `true`.

### cluster-config.cloud-provider
**Type:** `string`<br>
Expand All @@ -194,6 +196,8 @@ Possible values: `external`.
### cluster-config.annotations
**Type:** `map[string]string`<br>

Annotations is a map of strings that can be used to store arbitrary metadata configuration.
Please refer to the ClusterAPI annotations reference for further details on these options.

### control-plane-taints
**Type:** `[]string`<br>
Expand Down Expand Up @@ -281,10 +285,14 @@ If omitted defaults to an auto generated key.
### client-ca-crt
**Type:** `string`<br>

The client CA certificate to be used for Kubernetes services.
If omitted defaults to an auto generated certificate.

### client-ca-key
**Type:** `string`<br>

The client CA key to be used for Kubernetes services.
If omitted defaults to an auto generated key.

### front-proxy-ca-crt
**Type:** `string`<br>
Expand Down Expand Up @@ -325,34 +333,50 @@ If omitted defaults to an auto generated key.
### admin-client-crt
**Type:** `string`<br>

The admin client certificate to be used for Kubernetes services.
If omitted defaults to an auto generated certificate.

### admin-client-key
**Type:** `string`<br>

The admin client key to be used for Kubernetes services.
If omitted defaults to an auto generated key.

### kube-proxy-client-crt
**Type:** `string`<br>

The client certificate to be used for the kube-proxy.
If omitted defaults to an auto generated certificate.

### kube-proxy-client-key
**Type:** `string`<br>

The client key to be used for the kube-proxy.
If omitted defaults to an auto generated key.

### kube-scheduler-client-crt
**Type:** `string`<br>

The client certificate to be used for the kube-scheduler.
If omitted defaults to an auto generated certificate.

### kube-scheduler-client-key
**Type:** `string`<br>

The client key to be used for the kube-scheduler.
If omitted defaults to an auto generated key.

### kube-controller-manager-client-crt
**Type:** `string`<br>

The client certificate to be used for the Kubernetes controller manager.
If omitted defaults to an auto generated certificate.

### kube-controller-manager-client-key
**Type:** `string`<br>

The client key to be used for the Kubernetes controller manager.
If omitted defaults to an auto generated key.

### service-account-key
**Type:** `string`<br>
Expand Down Expand Up @@ -387,10 +411,14 @@ If omitted defaults to an auto generated key.
### kubelet-client-crt
**Type:** `string`<br>

The certificate to be used for the kubelet client.
If omitted defaults to an auto generated certificate.

### kubelet-client-key
**Type:** `string`<br>

The key to be used for the kubelet client.
If omitted defaults to an auto generated key.

### extra-node-config-files
**Type:** `map[string]string`<br>
Expand All @@ -404,51 +432,51 @@ The format is `map[<filename>]<filecontent>`.
### extra-node-kube-apiserver-args
**Type:** `map[string]string`<br>

Additional arguments that are passed to the `kube-apiserver` only for that
specific node. Overwrites default configuration. A parameter that is explicitly
set to `null` is deleted. The format is `map[<--flag-name>]<value>`.
Additional arguments that are passed to the `kube-apiserver` only for that specific node.
A parameter that is explicitly set to `null` is deleted.
The format is `map[<--flag-name>]<value>`.

### extra-node-kube-controller-manager-args
**Type:** `map[string]string`<br>

Additional arguments that are passed to the `kube-controller-manager` only for
that specific node. Overwrites default configuration. A parameter that is
explicitly set to `null` is deleted. The format is `map[<--flag-name>]<value>`.
Additional arguments that are passed to the `kube-controller-manager` only for that specific node.
A parameter that is explicitly set to `null` is deleted.
The format is `map[<--flag-name>]<value>`.

### extra-node-kube-scheduler-args
**Type:** `map[string]string`<br>

Additional arguments that are passed to the `kube-scheduler` only for that
specific node. Overwrites default configuration. A parameter that is explicitly
set to `null` is deleted. The format is `map[<--flag-name>]<value>`.
Additional arguments that are passed to the `kube-scheduler` only for that specific node.
A parameter that is explicitly set to `null` is deleted.
The format is `map[<--flag-name>]<value>`.

### extra-node-kube-proxy-args
**Type:** `map[string]string`<br>

Additional arguments that are passed to the `kube-proxy` only for that
specific node. Overwrites default configuration. A parameter that is explicitly
set to `null` is deleted. The format is `map[<--flag-name>]<value>`.
Additional arguments that are passed to the `kube-proxy` only for that specific node.
A parameter that is explicitly set to `null` is deleted.
The format is `map[<--flag-name>]<value>`.

### extra-node-kubelet-args
**Type:** `map[string]string`<br>

Additional arguments that are passed to the `kubelet` only for that
specific node. Overwrites default configuration. A parameter that is explicitly
set to `null` is deleted. The format is `map[<--flag-name>]<value>`.
Additional arguments that are passed to the `kubelet` only for that specific node.
A parameter that is explicitly set to `null` is deleted.
The format is `map[<--flag-name>]<value>`.

### extra-node-containerd-args
**Type:** `map[string]string`<br>

Additional arguments that are passed to `containerd` only for that
specific node. Overwrites default configuration. A parameter that is explicitly
set to `null` is deleted. The format is `map[<--flag-name>]<value>`.
Additional arguments that are passed to `containerd` only for that specific node.
A parameter that is explicitly set to `null` is deleted.
The format is `map[<--flag-name>]<value>`.

### extra-node-k8s-dqlite-args
**Type:** `map[string]string`<br>

Additional arguments that are passed to `k8s-dqlite` only for that
specific node. Overwrites default configuration. A parameter that is explicitly
set to `null` is deleted. The format is `map[<--flag-name>]<value>`.
Additional arguments that are passed to `k8s-dqlite` only for that specific node.
A parameter that is explicitly set to `null` is deleted.
The format is `map[<--flag-name>]<value>`.

### extra-node-containerd-config
**Type:** `apiv1.MapStringAny`<br>
Expand Down
54 changes: 33 additions & 21 deletions docs/src/_parts/control_plane_join_config.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,18 +30,26 @@ If omitted defaults to an auto generated key.
### kube-scheduler-client-crt
**Type:** `string`<br>

The client certificate to be used for the kube-scheduler.
If omitted defaults to an auto generated certificate.

### kube-scheduler-client-key
**Type:** `string`<br>

The client key to be used for the kube-scheduler.
If omitted defaults to an auto generated key.

### kube-controller-manager-client-crt
**Type:** `string`<br>

The client certificate to be used for the Kubernetes controller manager.
If omitted defaults to an auto generated certificate.

### kube-controller-manager-client-key
**Type:** `string`<br>

The client key to be used for the Kubernetes controller manager.
If omitted defaults to an auto generated key.

### apiserver-crt
**Type:** `string`<br>
Expand Down Expand Up @@ -70,10 +78,14 @@ If omitted defaults to an auto generated key.
### kubelet-client-crt
**Type:** `string`<br>

The client certificate to be used for the kubelet.
If omitted defaults to an auto generated certificate.

### kubelet-client-key
**Type:** `string`<br>

The client key to be used for the kubelet.
If omitted defaults to an auto generated key.

### extra-node-config-files
**Type:** `map[string]string`<br>
Expand All @@ -87,51 +99,51 @@ The format is `map[<filename>]<filecontent>`.
### extra-node-kube-apiserver-args
**Type:** `map[string]string`<br>

Additional arguments that are passed to the `kube-apiserver` only for that
specific node. Overwrites default configuration. A parameter that is explicitly
set to `null` is deleted. The format is `map[<--flag-name>]<value>`.
Additional arguments that are passed to the `kube-apiserver` only for that specific node.
A parameter that is explicitly set to `null` is deleted.
The format is `map[<--flag-name>]<value>`.

### extra-node-kube-controller-manager-args
**Type:** `map[string]string`<br>

Additional arguments that are passed to the `kube-controller-manager` only for
that specific node. Overwrites default configuration. A parameter that is
explicitly set to `null` is deleted. The format is `map[<--flag-name>]<value>`.
Additional arguments that are passed to the `kube-controller-manager` only for that specific node.
A parameter that is explicitly set to `null` is deleted.
The format is `map[<--flag-name>]<value>`.

### extra-node-kube-scheduler-args
**Type:** `map[string]string`<br>

Additional arguments that are passed to the `kube-scheduler` only for that
specific node. Overwrites default configuration. A parameter that is explicitly
set to `null` is deleted. The format is `map[<--flag-name>]<value>`.
Additional arguments that are passed to the `kube-scheduler` only for that specific node.
A parameter that is explicitly set to `null` is deleted.
The format is `map[<--flag-name>]<value>`.

### extra-node-kube-proxy-args
**Type:** `map[string]string`<br>

Additional arguments that are passed to the `kube-proxy` only for that
specific node. Overwrites default configuration. A parameter that is explicitly
set to `null` is deleted. The format is `map[<--flag-name>]<value>`.
Additional arguments that are passed to the `kube-proxy` only for that specific node.
A parameter that is explicitly set to `null` is deleted.
The format is `map[<--flag-name>]<value>`.

### extra-node-kubelet-args
**Type:** `map[string]string`<br>

Additional arguments that are passed to the `kubelet` only for that
specific node. Overwrites default configuration. A parameter that is explicitly
set to `null` is deleted. The format is `map[<--flag-name>]<value>`.
Additional arguments that are passed to the `kubelet` only for that specific node.
A parameter that is explicitly set to `null` is deleted.
The format is `map[<--flag-name>]<value>`.

### extra-node-containerd-args
**Type:** `map[string]string`<br>

Additional arguments that are passed to `containerd` only for that
specific node. Overwrites default configuration. A parameter that is explicitly
set to `null` is deleted. The format is `map[<--flag-name>]<value>`.
Additional arguments that are passed to `containerd` only for that specific node.
A parameter that is explicitly set to `null` is deleted.
The format is `map[<--flag-name>]<value>`.

### extra-node-k8s-dqlite-args
**Type:** `map[string]string`<br>

Additional arguments that are passed to `k8s-dqlite` only for that
specific node. Overwrites default configuration. A parameter that is explicitly
set to `null` is deleted. The format is `map[<--flag-name>]<value>`.
Additional arguments that are passed to `k8s-dqlite` only for that specific node.
A parameter that is explicitly set to `null` is deleted.
The format is `map[<--flag-name>]<value>`.

### extra-node-containerd-config
**Type:** `apiv1.MapStringAny`<br>
Expand Down
32 changes: 20 additions & 12 deletions docs/src/_parts/worker_join_config.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,26 @@ If omitted defaults to an auto generated key.
### kubelet-client-crt
**Type:** `string`<br>

The client certificate to be used for the kubelet.
If omitted defaults to an auto generated certificate.

### kubelet-client-key
**Type:** `string`<br>

The client key to be used for the kubelet.
If omitted defaults to an auto generated key.

### kube-proxy-client-crt
**Type:** `string`<br>

The client certificate to be used for the kube-proxy.
If omitted defaults to an auto generated certificate.

### kube-proxy-client-key
**Type:** `string`<br>

The client key to be used for the kube-proxy.
If omitted defaults to an auto generated key.

### extra-node-config-files
**Type:** `map[string]string`<br>
Expand All @@ -38,30 +46,30 @@ The format is `map[<filename>]<filecontent>`.
### extra-node-kube-proxy-args
**Type:** `map[string]string`<br>

Additional arguments that are passed to the `kube-proxy` only for that
specific node. Overwrites default configuration. A parameter that is explicitly
set to `null` is deleted. The format is `map[<--flag-name>]<value>`.
Additional arguments that are passed to the `kube-proxy` only for that specific node.
A parameter that is explicitly set to `null` is deleted.
The format is `map[<--flag-name>]<value>`.

### extra-node-kubelet-args
**Type:** `map[string]string`<br>

Additional arguments that are passed to the `kubelet` only for that
specific node. Overwrites default configuration. A parameter that is explicitly
set to `null` is deleted. The format is `map[<--flag-name>]<value>`.
Additional arguments that are passed to the `kubelet` only for that specific node.
A parameter that is explicitly set to `null` is deleted.
The format is `map[<--flag-name>]<value>`.

### extra-node-containerd-args
**Type:** `map[string]string`<br>

Additional arguments that are passed to `containerd` only for that
specific node. Overwrites default configuration. A parameter that is explicitly
set to `null` is deleted. The format is `map[<--flag-name>]<value>`.
Additional arguments that are passed to `containerd` only for that specific node.
A parameter that is explicitly set to `null` is deleted.
The format is `map[<--flag-name>]<value>`.

### extra-node-k8s-apiserver-proxy-args
**Type:** `map[string]string`<br>

Additional arguments that are passed to `k8s-api-server-proxy` only for that
specific node. Overwrites default configuration. A parameter that is explicitly
set to `null` is deleted. The format is `map[<--flag-name>]<value>`.
Additional arguments that are passed to `k8s-api-server-proxy` only for that specific node.
A parameter that is explicitly set to `null` is deleted.
The format is `map[<--flag-name>]<value>`.

### extra-node-containerd-config
**Type:** `apiv1.MapStringAny`<br>
Expand Down
2 changes: 1 addition & 1 deletion docs/src/snap/reference/bootstrap-config-reference.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Bootstrap configuration file reference

A YAML file can be supplied to the `k8s bootstrap` command to configure and
A YAML file can be supplied to the `k8s join-cluster` command to configure and
customise the cluster. This reference section provides the format of this file
by listing all available options and their details. See below for an example.

Expand Down
11 changes: 11 additions & 0 deletions docs/src/snap/reference/control-plane-join-config-reference.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Control plane node join configuration file reference

A YAML file can be supplied to the `k8s join-cluster ` command to configure and
customize new nodes.

This reference section provides all available options for control plane nodes.

## Configuration options

```{include} ../../_parts/control_plane_join_config.md
```
2 changes: 2 additions & 0 deletions docs/src/snap/reference/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ commands
annotations
certificates
bootstrap-config-reference
control-plane-join-config-reference
worker-join-config-reference
proxy
troubleshooting
architecture
Expand Down
11 changes: 11 additions & 0 deletions docs/src/snap/reference/worker-join-config-reference.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Worker node join configuration file reference

A YAML file can be supplied to the `k8s join-cluster ` command to configure and
customize new worker nodes.

This reference section provides all available options for worker nodes.

## Configuration options

```{include} ../../_parts/worker_join_config.md
```

0 comments on commit cbc6f13

Please sign in to comment.