Skip to content

Commit

Permalink
Fix documentation for Delayloop
Browse files Browse the repository at this point in the history
Co-authored-by: Tom Wieczorek <[email protected]>
Signed-off-by: Juan-Luis de Sousa-Valadas Castaño <[email protected]>
  • Loading branch information
juanluisvaladas and twz123 committed May 7, 2024
1 parent c22cbf3 commit 18d3583
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 13 deletions.
14 changes: 7 additions & 7 deletions docs/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -337,13 +337,13 @@ Configuration options required for using VRRP to configure VIPs in control plane
Configuration options required for using VRRP to configure VIPs in control plane load balancing.
| Element | Description |
| ----------------- | -------------------------------------------------------------------------------------------------------------------------------- |
| `ipAddress` | The load balancer's listen address. |
| `delayLoop` | Delay timer for health check polling in seconds. Default: `0`. |
| `lbAlgo` | Algorithm used by keepalived. Supported algorithms: `rr`, `wrr`, `lc`, `wlc`, `lblc`, `dh`, `sh`, `sed`, `nq`. Default: `rr`. |
| `lbKind` | Kind of ipvs load balancer. Supported values: `NAT`, `DR`, `TUN` Default: `DR`. |
| `persistenceTimeout` | Timeout value for persistent connections in seconds. Default: `360` (6 minutes). |
| Element | Description |
| --------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------ |
| `ipAddress` | The load balancer's listen address. |
| `delayLoop` | Delay timer for check polling. DelayLoop accepts microsecond precision. Further precision will be truncated without warnings. Example: `10s`. |
| `lbAlgo` | Algorithm used by keepalived. Supported algorithms: `rr`, `wrr`, `lc`, `wlc`, `lblc`, `dh`, `sh`, `sed`, `nq`. Default: `rr`. |
| `lbKind` | Kind of ipvs load balancer. Supported values: `NAT`, `DR`, `TUN` Default: `DR`. |
| `persistenceTimeoutSeconds` | Timeout value for persistent connections in seconds. Must be in the range of 1-2678400 (31 days). If not specified, defaults to 360 (6 minutes). |

### `spec.controllerManager`

Expand Down
6 changes: 3 additions & 3 deletions pkg/apis/k0s/v1beta1/cplb.go
Original file line number Diff line number Diff line change
Expand Up @@ -160,10 +160,10 @@ type VirtualServer struct {
// +kubebuilder:validation:Required
// +kubebuilder:validation:MinLength=1
IPAddress string `json:"ipAddress"`
// DelayLoop is the delay timer for check polling. If not specified, defaults to 0.
// DelayLoop is defined in microseconds. Further precision will be truncated without
// DelayLoop is the delay timer for check polling. DelayLoop accepts
// microsecond precision. Further precision will be truncated without
// warnings.
// kubebuilder:validation:Minimum=0
// +optional
DelayLoop metav1.Duration `json:"delayLoop,omitempty"`
// LBAlgo is the load balancing algorithm. If not specified, defaults to rr.
// Valid values are rr, wrr, lc, wlc, lblc, dh, sh, sed, nq. For further
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -391,10 +391,9 @@ spec:
properties:
delayLoop:
description: |-
DelayLoop is the delay timer for check polling. If not specified, defaults to 0.
DelayLoop is defined in microseconds. Further precision will be truncated without
DelayLoop is the delay timer for check polling. DelayLoop accepts
microsecond precision. Further precision will be truncated without
warnings.
kubebuilder:validation:Minimum=0
type: string
ipAddress:
description: IPAddress is the virtual IP address
Expand Down

0 comments on commit 18d3583

Please sign in to comment.