Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions calico-cloud/network-policy/hosts/kubernetes-nodes.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,8 @@ To enable template host endpoints and disable default host endpoints, edit the d
nodeSelector: "!has(node-role.kubernetes.io/control-plane)"
labels:
custom-label: template-host-endpoint
annotations:
custom-annotation: template-host-endpoint
EOF
```

Expand Down Expand Up @@ -128,6 +130,8 @@ To enable template host endpoints and disable default host endpoints, edit the d
- 192.168.0.0/16
labels:
custom-label: template-host-endpoint
annotations:
custom-annotation: template-host-endpoint
Comment on lines 131 to +134
```

4. If successful, host endpoints are created for nodes matching your node selector:
Expand Down
3 changes: 3 additions & 0 deletions calico-cloud/reference/resources/kubecontrollersconfig.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ spec:
nodeSelector: "has(my-label)"
labels:
key: value
annotations:
key: value
loadbalancer:
assignIPs: AllServices
```
Expand Down Expand Up @@ -100,6 +102,7 @@ The node controller automatically cleans up configuration for nodes that no long
| interfaceCIDRs | This configuration defines which IP addresses from a node's specification (including standard, tunnel, and WireGuard IPs) are eligible for inclusion in the generated HostEndpoint. IP addresses must fall within the provided CIDR ranges to be considered. If no address on the node matches the specified CIDRs, the HostEndpoint creation is skipped. | List of valid CIDRs | List string | |
| interfacePattern | Regex to include matching interfaces and their IPs | string | string | |
| labels | Labels to be added to generated host endpoints matching this template | | map of string key to string values | |
| annotations | Annotations to be added to generated host endpoints matching this template | | map of string key to string values | |

### Selectors

Expand Down
4 changes: 4 additions & 0 deletions calico-enterprise/network-policy/hosts/kubernetes-nodes.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,8 @@ To enable template host endpoints and disable default host endpoints, edit the d
nodeSelector: "!has(node-role.kubernetes.io/control-plane)"
labels:
custom-label: template-host-endpoint
annotations:
custom-annotation: template-host-endpoint
EOF
```

Expand Down Expand Up @@ -128,6 +130,8 @@ To enable template host endpoints and disable default host endpoints, edit the d
- 192.168.0.0/16
labels:
custom-label: template-host-endpoint
annotations:
custom-annotation: template-host-endpoint
Comment on lines 131 to +134
```

4. If successful, host endpoints are created for nodes matching your node selector:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ spec:
nodeSelector: "has(my-label)"
labels:
key: value
annotations:
key: value
loadbalancer:
assignIPs: AllServices
```
Expand Down Expand Up @@ -100,6 +102,7 @@ The node controller automatically cleans up configuration for nodes that no long
| interfaceCIDRs | This configuration defines which IP addresses from a node's specification (including standard, tunnel, and WireGuard IPs) are eligible for inclusion in the generated HostEndpoint. IP addresses must fall within the provided CIDR ranges to be considered. If no address on the node matches the specified CIDRs, the HostEndpoint creation is skipped. | List of valid CIDRs | List string | |
| interfacePattern | Regex to include matching interfaces and their IPs | string | string | |
| labels | Labels to be added to generated host endpoints matching this template | | map of string key to string values | |
| annotations | Annotations to be added to generated host endpoints matching this template | | map of string key to string values | |

### Selectors

Expand Down
4 changes: 4 additions & 0 deletions calico/network-policy/hosts/kubernetes-nodes.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,8 @@ To enable template host endpoints and disable default host endpoints, edit the d
nodeSelector: "!has(node-role.kubernetes.io/control-plane)"
labels:
custom-label: template-host-endpoint
annotations:
custom-annotation: template-host-endpoint
EOF
```

Expand Down Expand Up @@ -126,6 +128,8 @@ To enable template host endpoints and disable default host endpoints, edit the d
- 192.168.0.0/16
labels:
custom-label: template-host-endpoint
annotations:
custom-annotation: template-host-endpoint
Comment on lines 129 to +132
```

4. If successful, host endpoints are created for nodes matching your node selector:
Expand Down
3 changes: 3 additions & 0 deletions calico/reference/resources/kubecontrollersconfig.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ spec:
nodeSelector: "has(my-label)"
labels:
key: value
annotations:
key: value
policy:
reconcilerPeriod: 5m
workloadEndpoint:
Expand Down Expand Up @@ -106,6 +108,7 @@ The node controller automatically cleans up configuration for nodes that no long
| interfaceCIDRs | This configuration defines which IP addresses from a node's specification (including standard, tunnel, and WireGuard IPs) are eligible for inclusion in the generated HostEndpoint. IP addresses must fall within the provided CIDR ranges to be considered. If no address on the node matches the specified CIDRs, the HostEndpoint creation is skipped. | List of valid CIDRs | List string | |
| interfacePattern | Regex to include matching interfaces and their IPs | string | string | |
| labels | Labels to be added to generated host endpoints matching this template | | map of string key to string values | |
| annotations | Annotations to be added to generated host endpoints matching this template | | map of string key to string values | |

### Selectors

Expand Down