2026-04-24 21:17:42 -05:00
|
|
|
apiVersion: apiextensions.k8s.io/v1
|
|
|
|
|
kind: CustomResourceDefinition
|
|
|
|
|
metadata:
|
|
|
|
|
name: nodeconfigs.flock.fritzlab.net
|
|
|
|
|
spec:
|
|
|
|
|
group: flock.fritzlab.net
|
|
|
|
|
scope: Cluster
|
|
|
|
|
names:
|
|
|
|
|
kind: NodeConfig
|
|
|
|
|
listKind: NodeConfigList
|
|
|
|
|
singular: nodeconfig
|
|
|
|
|
plural: nodeconfigs
|
|
|
|
|
shortNames:
|
|
|
|
|
- fnc
|
|
|
|
|
versions:
|
|
|
|
|
- name: v1alpha1
|
|
|
|
|
served: true
|
|
|
|
|
storage: true
|
|
|
|
|
schema:
|
|
|
|
|
openAPIV3Schema:
|
|
|
|
|
type: object
|
|
|
|
|
required: [spec]
|
2026-04-25 09:25:45 -05:00
|
|
|
description: |
|
|
|
|
|
NodeConfig is the per-node operator-supplied configuration for the
|
|
|
|
|
flock CNI agent. Its name MUST equal the Kubernetes node name.
|
2026-04-24 21:17:42 -05:00
|
|
|
properties:
|
|
|
|
|
spec:
|
|
|
|
|
type: object
|
|
|
|
|
required: [bgp]
|
|
|
|
|
properties:
|
|
|
|
|
cidr6:
|
|
|
|
|
type: array
|
|
|
|
|
items:
|
|
|
|
|
type: string
|
|
|
|
|
description: IPv6 CIDR owned and aggregate-advertised by this node.
|
|
|
|
|
cidr4:
|
|
|
|
|
type: array
|
|
|
|
|
items:
|
|
|
|
|
type: string
|
|
|
|
|
description: IPv4 CIDR owned and aggregate-advertised by this node.
|
2026-04-25 09:25:45 -05:00
|
|
|
defaults:
|
|
|
|
|
type: object
|
|
|
|
|
description: |
|
|
|
|
|
Per-node baseline for which address families a pod receives
|
|
|
|
|
when its own annotations don't specify. Pod annotations
|
|
|
|
|
flock.fritzlab.net/ipv6 and flock.fritzlab.net/ipv4 always
|
|
|
|
|
override these defaults. Built-in fallback (when this block
|
2026-04-25 10:07:48 -05:00
|
|
|
or any field is omitted) is IPv6=true, IPv4=true (dual-stack).
|
2026-04-25 09:25:45 -05:00
|
|
|
properties:
|
|
|
|
|
ipv6:
|
|
|
|
|
type: boolean
|
|
|
|
|
description: |
|
|
|
|
|
Default IPv6 inclusion for pods on this node. Omit to
|
|
|
|
|
inherit the built-in baseline (true).
|
|
|
|
|
ipv4:
|
|
|
|
|
type: boolean
|
|
|
|
|
description: |
|
|
|
|
|
Default IPv4 inclusion for pods on this node. Omit to
|
2026-04-25 10:07:48 -05:00
|
|
|
inherit the built-in baseline (true).
|
2026-04-24 21:17:42 -05:00
|
|
|
bgp:
|
|
|
|
|
type: object
|
|
|
|
|
required: [asn, peers]
|
|
|
|
|
properties:
|
|
|
|
|
asn:
|
|
|
|
|
type: integer
|
|
|
|
|
format: int64
|
|
|
|
|
minimum: 1
|
|
|
|
|
maximum: 4294967295
|
|
|
|
|
description: This node's local ASN.
|
|
|
|
|
peers:
|
|
|
|
|
type: array
|
|
|
|
|
minItems: 1
|
|
|
|
|
items:
|
|
|
|
|
type: object
|
|
|
|
|
required: [address, asn]
|
|
|
|
|
properties:
|
|
|
|
|
address:
|
|
|
|
|
type: string
|
|
|
|
|
description: Peer IP (IPv6 or IPv4).
|
|
|
|
|
asn:
|
|
|
|
|
type: integer
|
|
|
|
|
format: int64
|
|
|
|
|
minimum: 1
|
|
|
|
|
maximum: 4294967295
|
|
|
|
|
additionalPrinterColumns:
|
|
|
|
|
- name: ASN
|
|
|
|
|
type: integer
|
|
|
|
|
jsonPath: .spec.bgp.asn
|
|
|
|
|
- name: CIDR6
|
|
|
|
|
type: string
|
|
|
|
|
jsonPath: .spec.cidr6
|
|
|
|
|
- name: CIDR4
|
|
|
|
|
type: string
|
|
|
|
|
jsonPath: .spec.cidr4
|
2026-04-25 09:25:45 -05:00
|
|
|
- name: DefV6
|
|
|
|
|
type: boolean
|
|
|
|
|
jsonPath: .spec.defaults.ipv6
|
|
|
|
|
- name: DefV4
|
|
|
|
|
type: boolean
|
|
|
|
|
jsonPath: .spec.defaults.ipv4
|