...
1apiVersion: apiextensions.k8s.io/v1
2kind: CustomResourceDefinition
3metadata:
4 annotations:
5 api-approved.openshift.io: https://github.com/openshift/api/pull/527
6 name: hostsubnets.network.openshift.io
7spec:
8 group: network.openshift.io
9 names:
10 kind: HostSubnet
11 listKind: HostSubnetList
12 plural: hostsubnets
13 singular: hostsubnet
14 scope: Cluster
15 versions:
16 - additionalPrinterColumns:
17 - description: The name of the node
18 jsonPath: .host
19 name: Host
20 type: string
21 - description: The IP address to be used as a VTEP by other nodes in the overlay network
22 jsonPath: .hostIP
23 name: Host IP
24 type: string
25 - description: The CIDR range of the overlay network assigned to the node for its pods
26 jsonPath: .subnet
27 name: Subnet
28 type: string
29 - description: The network egress CIDRs
30 jsonPath: .egressCIDRs
31 name: Egress CIDRs
32 type: string
33 - description: The network egress IP addresses
34 jsonPath: .egressIPs
35 name: Egress IPs
36 type: string
37 name: v1
38 schema:
39 openAPIV3Schema:
40 description: "HostSubnet describes the container subnet network on a node. The HostSubnet object must have the same name as the Node object it corresponds to. \n Compatibility level 1: Stable within a major release for a minimum of 12 months or 3 minor releases (whichever is longer)."
41 type: object
42 required:
43 - host
44 - hostIP
45 - subnet
46 properties:
47 apiVersion:
48 description: 'APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
49 type: string
50 egressCIDRs:
51 description: EgressCIDRs is the list of CIDR ranges available for automatically assigning egress IPs to this node from. If this field is set then EgressIPs should be treated as read-only.
52 type: array
53 items:
54 description: HostSubnetEgressCIDR represents one egress CIDR from which to assign IP addresses for this node represented by the HostSubnet
55 type: string
56 pattern: ^(([0-9]|[0-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[0-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])/([0-9]|[12][0-9]|3[0-2])$
57 egressIPs:
58 description: EgressIPs is the list of automatic egress IP addresses currently hosted by this node. If EgressCIDRs is empty, this can be set by hand; if EgressCIDRs is set then the master will overwrite the value here with its own allocation of egress IPs.
59 type: array
60 items:
61 description: HostSubnetEgressIP represents one egress IP address currently hosted on the node represented by HostSubnet
62 type: string
63 pattern: ^(([0-9]|[0-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[0-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])$
64 host:
65 description: Host is the name of the node. (This is the same as the object's name, but both fields must be set.)
66 type: string
67 pattern: ^[a-z0-9.-]+$
68 hostIP:
69 description: HostIP is the IP address to be used as a VTEP by other nodes in the overlay network
70 type: string
71 pattern: ^(([0-9]|[0-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[0-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])$
72 kind:
73 description: 'Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
74 type: string
75 metadata:
76 type: object
77 subnet:
78 description: Subnet is the CIDR range of the overlay network assigned to the node for its pods
79 type: string
80 pattern: ^(([0-9]|[0-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[0-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])/([0-9]|[12][0-9]|3[0-2])$
81 served: true
82 storage: true
83status:
84 acceptedNames:
85 kind: ""
86 plural: ""
87 conditions: []
88 storedVersions: []
View as plain text