...
1apiVersion: apiextensions.k8s.io/v1
2kind: CustomResourceDefinition
3metadata:
4 labels:
5 addonmanager.kubernetes.io/mode: Reconcile
6 name: bgppeers.crd.projectcalico.org
7spec:
8 group: crd.projectcalico.org
9 names:
10 kind: BGPPeer
11 listKind: BGPPeerList
12 plural: bgppeers
13 singular: bgppeer
14 scope: Cluster
15 versions:
16 - name: v1
17 schema:
18 openAPIV3Schema:
19 properties:
20 apiVersion:
21 description: 'APIVersion defines the versioned schema of this representation
22 of an object. Servers should convert recognized schemas to the latest
23 internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
24 type: string
25 kind:
26 description: 'Kind is a string value representing the REST resource this
27 object represents. Servers may infer this from the endpoint the client
28 submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
29 type: string
30 metadata:
31 type: object
32 spec:
33 description: BGPPeerSpec contains the specification for a BGPPeer resource.
34 properties:
35 asNumber:
36 description: The AS Number of the peer.
37 format: int32
38 type: integer
39 keepOriginalNextHop:
40 description: Option to keep the original nexthop field when routes
41 are sent to a BGP Peer. Setting "true" configures the selected BGP
42 Peers node to use the "next hop keep;" instead of "next hop self;"(default)
43 in the specific branch of the Node on "bird.cfg".
44 type: boolean
45 node:
46 description: The node name identifying the Calico node instance that
47 is peering with this peer. If this is not set, this represents a
48 global peer, i.e. a peer that peers with every node in the deployment.
49 type: string
50 nodeSelector:
51 description: Selector for the nodes that should have this peering. When
52 this is set, the Node field must be empty.
53 type: string
54 password:
55 description: Optional BGP password for the peerings generated by this
56 BGPPeer resource.
57 properties:
58 secretKeyRef:
59 description: Selects a key of a secret in the node pod's namespace.
60 properties:
61 key:
62 description: The key of the secret to select from. Must be
63 a valid secret key.
64 type: string
65 name:
66 description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
67 TODO: Add other useful fields. apiVersion, kind, uid?'
68 type: string
69 optional:
70 description: Specify whether the Secret or its key must be
71 defined
72 type: boolean
73 required:
74 - key
75 type: object
76 type: object
77 peerIP:
78 description: The IP address of the peer followed by an optional port
79 number to peer with. If port number is given, format should be `[<IPv6>]:port`
80 or `<IPv4>:<port>` for IPv4. If optional port number is not set,
81 and this peer IP and ASNumber belongs to a calico/node with ListenPort
82 set in BGPConfiguration, then we use that port to peer.
83 type: string
84 peerSelector:
85 description: Selector for the remote nodes to peer with. When this
86 is set, the PeerIP and ASNumber fields must be empty. For each
87 peering between the local node and selected remote nodes, we configure
88 an IPv4 peering if both ends have NodeBGPSpec.IPv4Address specified,
89 and an IPv6 peering if both ends have NodeBGPSpec.IPv6Address specified. The
90 remote AS number comes from the remote node’s NodeBGPSpec.ASNumber,
91 or the global default if that is not set.
92 type: string
93 required:
94 - asNumber
95 - peerIP
96 type: object
97 type: object
98 served: true
99 storage: true
100status:
101 acceptedNames:
102 kind: ""
103 plural: ""
104 conditions: []
105 storedVersions: []
View as plain text