...
1apiVersion: apiextensions.k8s.io/v1
2kind: CustomResourceDefinition
3metadata:
4 annotations:
5 api-approved.openshift.io: https://github.com/openshift/api/pull/527
6 name: netnamespaces.network.openshift.io
7spec:
8 group: network.openshift.io
9 names:
10 kind: NetNamespace
11 listKind: NetNamespaceList
12 plural: netnamespaces
13 singular: netnamespace
14 scope: Cluster
15 versions:
16 - additionalPrinterColumns:
17 - description: The network identifier of the network namespace
18 jsonPath: .netid
19 name: NetID
20 type: integer
21 - description: The network egress IP addresses
22 jsonPath: .egressIPs
23 name: Egress IPs
24 type: string
25 name: v1
26 schema:
27 openAPIV3Schema:
28 description: "NetNamespace describes a single isolated network. When using the redhat/openshift-ovs-multitenant plugin, every Namespace will have a corresponding NetNamespace object with the same name. (When using redhat/openshift-ovs-subnet, NetNamespaces are not used.) \n Compatibility level 1: Stable within a major release for a minimum of 12 months or 3 minor releases (whichever is longer)."
29 type: object
30 required:
31 - netid
32 - netname
33 properties:
34 apiVersion:
35 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'
36 type: string
37 egressIPs:
38 description: EgressIPs is a list of reserved IPs that will be used as the source for external traffic coming from pods in this namespace. (If empty, external traffic will be masqueraded to Node IPs.)
39 type: array
40 items:
41 description: NetNamespaceEgressIP is a single egress IP out of a list of reserved IPs used as source of external traffic coming from pods in this namespace
42 type: string
43 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])$
44 kind:
45 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'
46 type: string
47 metadata:
48 type: object
49 netid:
50 description: NetID is the network identifier of the network namespace assigned to each overlay network packet. This can be manipulated with the "oc adm pod-network" commands.
51 type: integer
52 format: int32
53 maximum: 16777215
54 minimum: 0
55 netname:
56 description: NetName is the name of the network namespace. (This is the same as the object's name, but both fields must be set.)
57 type: string
58 pattern: ^[a-z0-9.-]+$
59 served: true
60 storage: true
61status:
62 acceptedNames:
63 kind: ""
64 plural: ""
65 conditions: []
66 storedVersions: []
View as plain text