-
Notifications
You must be signed in to change notification settings - Fork 122
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update host endpoint controller configuration #1933
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -4,6 +4,8 @@ | |||||
|
||||||
# Kubernetes controllers configuration | ||||||
|
||||||
import Selectors from '@site/calico/_includes/content/_selectors.mdx'; | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. For consistency, please move to between the front matter and H1. |
||||||
|
||||||
A $[prodname] [Kubernetes controllers](../kube-controllers/configuration.mdx) configuration resource (`KubeControllersConfiguration`) represents configuration options for the $[prodname] Kubernetes controllers. | ||||||
|
||||||
## Sample YAML | ||||||
|
@@ -25,6 +27,7 @@ | |||||
syncLabels: Enabled | ||||||
hostEndpoint: | ||||||
autoCreate: Disabled | ||||||
createDefaultHostEndpoint: Enabled | ||||||
policy: | ||||||
reconcilerPeriod: 5m | ||||||
workloadEndpoint: | ||||||
|
@@ -73,16 +76,37 @@ | |||||
|
||||||
| Field | Description | Accepted Values | Schema | Default | | ||||||
| ---------------- | --------------------------------------------------------------------------------- | ----------------- | --------------------------------- | ------- | | ||||||
| reconcilerPeriod | Period to perform reconciliation with the $[prodname] datastore | | [Duration string][parse-duration] | 5m | | ||||||
| syncLabels | When enabled, Kubernetes node labels will be copied to $[prodname] node objects. | Enabled, Disabled | string | Enabled | | ||||||
| hostEndpoint | Controls allocation of host endpoints | | [HostEndpoint](#hostendpoint) | | | ||||||
| reconcilerPeriod | Period to perform reconciliation with the $[prodname] datastore | | [Duration string][parse-duration] | 5m | | ||||||
Check failure on line 79 in calico/reference/resources/kubecontrollersconfig.mdx
|
||||||
| syncLabels | When enabled, Kubernetes node labels will be copied to $[prodname] node objects. | Enabled, Disabled | string | Enabled | | ||||||
Check failure on line 80 in calico/reference/resources/kubecontrollersconfig.mdx
|
||||||
| hostEndpoint | Configure the host endpoint controller | | [HostEndpoint](#hostendpoint) | | | ||||||
Check failure on line 81 in calico/reference/resources/kubecontrollersconfig.mdx
|
||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
| leakGracePeriod | Grace period to use when garbage collecting suspected leaked IP addresses. | | [Duration string][parse-duration] | 15m | | ||||||
|
||||||
### HostEndpoint | ||||||
|
||||||
| Field | Description | Accepted Values | Schema | Default | | ||||||
| ---------- | ---------------------------------------------------------------- | ----------------- | ------ | -------- | | ||||||
| autoCreate | When enabled, automatically create a host endpoint for each node | Enabled, Disabled | string | Disabled | | ||||||
| Field | Description | Accepted Values | Schema | Default | | ||||||
| ------------------------- | ---------------------------------------------------------------- | ----------------- | --------------------- | -------- | | ||||||
| autoCreate | When enabled, automatically create a host endpoints | Enabled, Disabled | string | Disabled | | ||||||
Check failure on line 88 in calico/reference/resources/kubecontrollersconfig.mdx
|
||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
| createDefaultHostEndpoint | When enabled, default host endpoint will be created | Enabled, Disabled | string | Enabled | | ||||||
| templates | Controlls creation of custom host endpoints | | [Template](#template) | | | ||||||
Check failure on line 90 in calico/reference/resources/kubecontrollersconfig.mdx
|
||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
|
||||||
### Template | ||||||
|
||||||
| Field | Description | Accepted Values | Schema | Default | | ||||||
| ------------------------- | ----------------------------------------------------------------------------------- | ------------------- | ---------------------- | -------- | | ||||||
| name | Unique name used as suffix for host endpoints created based on this template | Alphanumeric string | string | | | ||||||
| nodeSelector | Selects the nodes for which this template should create host endpoint | | [Selector](#selectors) | all() | | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
| interfaceSelectorCIDR | List of networks specified in CIDR notation | List of valid CIDRs | List string | | | ||||||
| labels | Labels to be added to generated host endpoints matching this template | | [Label](#label) | | | ||||||
|
||||||
### Label | ||||||
| Field | Description | Accepted Values | Schema | Default | | ||||||
| ------------------------- | ---------------------------------------------------------------- | ------------------- | --------- | -------- | | ||||||
| name | Name for the label | Alphanumeric string | string | | | ||||||
| value | Label value | Alphanumeric string | string | | | ||||||
Comment on lines
+101
to
+105
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This section seems not to add much value. I had a look at other resources, and none had a similar section. Do we really need this? |
||||||
|
||||||
### Selectors | ||||||
|
||||||
<Selectors /> | ||||||
|
||||||
### PolicyController | ||||||
|
||||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.