c12s-kubespray/roles/network_plugin/kube-ovn/templates/cni-kube-ovn-crd.yml.j2

645 lines
17 KiB
Text
Raw Normal View History

2020-06-30 16:00:07 +00:00
apiVersion: apiextensions.k8s.io/v1
2019-07-31 03:10:20 +00:00
kind: CustomResourceDefinition
metadata:
name: ips.kubeovn.io
spec:
group: kubeovn.io
2020-06-30 16:00:07 +00:00
versions:
- name: v1
served: true
storage: true
additionalPrinterColumns:
2021-06-16 15:10:00 +00:00
- name: V4IP
2020-06-30 16:00:07 +00:00
type: string
2021-06-16 15:10:00 +00:00
jsonPath: .spec.v4IpAddress
- name: V6IP
type: string
jsonPath: .spec.v6IpAddress
2020-06-30 16:00:07 +00:00
- name: Mac
type: string
jsonPath: .spec.macAddress
- name: Node
type: string
jsonPath: .spec.nodeName
- name: Subnet
type: string
jsonPath: .spec.subnet
schema:
openAPIV3Schema:
type: object
properties:
spec:
type: object
properties:
podName:
type: string
namespace:
type: string
subnet:
type: string
attachSubnets:
type: array
items:
type: string
nodeName:
type: string
ipAddress:
type: string
2021-06-16 15:10:00 +00:00
v4IpAddress:
type: string
v6IpAddress:
type: string
2020-06-30 16:00:07 +00:00
attachIps:
type: array
items:
type: string
macAddress:
type: string
attachMacs:
type: array
items:
type: string
containerID:
type: string
2019-07-31 03:10:20 +00:00
scope: Cluster
names:
plural: ips
singular: ip
kind: IP
shortNames:
- ip
---
2020-06-30 16:00:07 +00:00
apiVersion: apiextensions.k8s.io/v1
2019-07-31 03:10:20 +00:00
kind: CustomResourceDefinition
metadata:
name: subnets.kubeovn.io
spec:
group: kubeovn.io
2020-06-30 16:00:07 +00:00
versions:
- name: v1
served: true
storage: true
subresources:
status: {}
additionalPrinterColumns:
2021-02-10 10:25:01 +00:00
- name: Provider
type: string
jsonPath: .spec.provider
- name: Vpc
type: string
jsonPath: .spec.vpc
2020-06-30 16:00:07 +00:00
- name: Protocol
type: string
jsonPath: .spec.protocol
- name: CIDR
type: string
jsonPath: .spec.cidrBlock
- name: Private
type: boolean
jsonPath: .spec.private
- name: NAT
type: boolean
jsonPath: .spec.natOutgoing
- name: Default
type: boolean
jsonPath: .spec.default
- name: GatewayType
type: string
jsonPath: .spec.gatewayType
2021-06-16 15:10:00 +00:00
- name: V4Used
type: number
jsonPath: .status.v4usingIPs
- name: V4Available
2020-06-30 16:00:07 +00:00
type: number
2021-06-16 15:10:00 +00:00
jsonPath: .status.v4availableIPs
- name: V6Used
2020-06-30 16:00:07 +00:00
type: number
2021-06-16 15:10:00 +00:00
jsonPath: .status.v6usingIPs
- name: V6Available
type: number
jsonPath: .status.v6availableIPs
2021-10-14 19:11:09 +00:00
- name: ExcludeIPs
type: string
jsonPath: .spec.excludeIps
2020-06-30 16:00:07 +00:00
schema:
openAPIV3Schema:
type: object
properties:
status:
type: object
properties:
2021-06-16 15:10:00 +00:00
v4availableIPs:
type: number
v4usingIPs:
2020-06-30 16:00:07 +00:00
type: number
2021-06-16 15:10:00 +00:00
v6availableIPs:
type: number
v6usingIPs:
2020-06-30 16:00:07 +00:00
type: number
activateGateway:
type: string
conditions:
type: array
items:
type: object
properties:
type:
type: string
status:
type: string
reason:
type: string
message:
type: string
lastUpdateTime:
type: string
lastTransitionTime:
type: string
spec:
type: object
properties:
2021-02-10 10:25:01 +00:00
vpc:
type: string
2020-06-30 16:00:07 +00:00
default:
type: boolean
protocol:
type: string
cidrBlock:
type: string
namespaces:
type: array
items:
type: string
gateway:
type: string
provider:
type: string
excludeIps:
type: array
items:
type: string
gatewayType:
type: string
allowSubnets:
type: array
items:
type: string
gatewayNode:
type: string
natOutgoing:
type: boolean
2021-06-16 15:10:00 +00:00
externalEgressGateway:
type: string
policyRoutingPriority:
type: integer
minimum: 1
maximum: 32765
policyRoutingTableID:
type: integer
minimum: 1
maximum: 2147483647
not:
enum:
- 252 # compat
- 253 # default
- 254 # main
- 255 # local
2020-06-30 16:00:07 +00:00
private:
type: boolean
vlan:
type: string
2021-10-14 19:11:09 +00:00
disableGatewayCheck:
2020-06-30 16:00:07 +00:00
type: boolean
2021-02-10 10:25:01 +00:00
disableInterConnection:
type: boolean
2019-07-31 03:10:20 +00:00
scope: Cluster
names:
plural: subnets
singular: subnet
kind: Subnet
shortNames:
- subnet
---
2020-06-30 16:00:07 +00:00
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
name: vlans.kubeovn.io
spec:
group: kubeovn.io
2020-06-30 16:00:07 +00:00
versions:
- name: v1
served: true
storage: true
schema:
openAPIV3Schema:
type: object
properties:
spec:
type: object
properties:
2021-07-15 08:59:38 +00:00
id:
type: integer
minimum: 0
maximum: 4095
provider:
type: string
2020-06-30 16:00:07 +00:00
vlanId:
type: integer
2021-07-15 08:59:38 +00:00
description: Deprecated in favor of id
2020-06-30 16:00:07 +00:00
providerInterfaceName:
type: string
2021-07-15 08:59:38 +00:00
description: Deprecated in favor of provider
required:
- provider
status:
type: object
properties:
subnets:
type: array
items:
type: string
2020-06-30 16:00:07 +00:00
additionalPrinterColumns:
2021-07-15 08:59:38 +00:00
- name: ID
2020-06-30 16:00:07 +00:00
type: string
2021-07-15 08:59:38 +00:00
jsonPath: .spec.id
- name: Provider
2020-06-30 16:00:07 +00:00
type: string
2021-07-15 08:59:38 +00:00
jsonPath: .spec.provider
scope: Cluster
names:
plural: vlans
singular: vlan
kind: Vlan
shortNames:
- vlan
2021-02-10 10:25:01 +00:00
---
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
2021-07-15 08:59:38 +00:00
metadata:
name: provider-networks.kubeovn.io
spec:
group: kubeovn.io
versions:
- name: v1
served: true
storage: true
schema:
openAPIV3Schema:
type: object
properties:
2021-10-14 19:11:09 +00:00
metadata:
type: object
properties:
name:
type: string
maxLength: 12
not:
enum:
- int
- external
2021-07-15 08:59:38 +00:00
spec:
type: object
properties:
defaultInterface:
type: string
2021-10-14 19:11:09 +00:00
maxLength: 15
pattern: '^[^/\s]+$'
2021-07-15 08:59:38 +00:00
customInterfaces:
type: array
items:
type: object
properties:
interface:
type: string
2021-10-14 19:11:09 +00:00
maxLength: 15
pattern: '^[^/\s]+$'
2021-07-15 08:59:38 +00:00
nodes:
type: array
items:
type: string
excludeNodes:
type: array
items:
type: string
required:
- defaultInterface
status:
type: object
properties:
2021-09-08 20:40:01 +00:00
ready:
type: boolean
2021-07-15 08:59:38 +00:00
readyNodes:
type: array
items:
type: string
vlans:
type: array
items:
type: string
conditions:
type: array
items:
type: object
properties:
node:
type: string
type:
type: string
status:
type: string
reason:
type: string
message:
type: string
lastUpdateTime:
type: string
lastTransitionTime:
type: string
additionalPrinterColumns:
- name: DefaultInterface
type: string
jsonPath: .spec.defaultInterface
2021-09-08 20:40:01 +00:00
- name: Ready
type: boolean
jsonPath: .status.ready
2021-07-15 08:59:38 +00:00
scope: Cluster
names:
plural: provider-networks
singular: provider-network
kind: ProviderNetwork
listKind: ProviderNetworkList
---
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
2021-02-10 10:25:01 +00:00
metadata:
name: vpcs.kubeovn.io
spec:
group: kubeovn.io
versions:
- additionalPrinterColumns:
- jsonPath: .status.standby
name: Standby
type: boolean
- jsonPath: .status.subnets
name: Subnets
type: string
2021-10-14 19:11:09 +00:00
- jsonPath: .spec.namespaces
name: Namespaces
type: string
2021-02-10 10:25:01 +00:00
name: v1
schema:
openAPIV3Schema:
properties:
spec:
properties:
namespaces:
items:
type: string
type: array
staticRoutes:
items:
properties:
policy:
type: string
cidr:
type: string
nextHopIP:
type: string
type: object
type: array
type: object
status:
properties:
conditions:
items:
properties:
lastTransitionTime:
type: string
lastUpdateTime:
type: string
message:
type: string
reason:
type: string
status:
type: string
type:
type: string
type: object
type: array
default:
type: boolean
defaultLogicalSwitch:
type: string
router:
type: string
standby:
type: boolean
subnets:
items:
type: string
type: array
tcpLoadBalancer:
type: string
tcpSessionLoadBalancer:
type: string
udpLoadBalancer:
type: string
udpSessionLoadBalancer:
type: string
type: object
type: object
served: true
storage: true
subresources:
status: {}
names:
kind: Vpc
listKind: VpcList
plural: vpcs
shortNames:
- vpc
singular: vpc
scope: Cluster
2021-06-16 15:10:00 +00:00
---
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
name: vpc-nat-gateways.kubeovn.io
spec:
group: kubeovn.io
names:
plural: vpc-nat-gateways
singular: vpc-nat-gateway
shortNames:
- vpc-nat-gw
kind: VpcNatGateway
listKind: VpcNatGatewayList
scope: Cluster
versions:
2021-10-14 19:11:09 +00:00
- additionalPrinterColumns:
- jsonPath: .spec.vpc
name: Vpc
type: string
- jsonPath: .spec.subnet
name: Subnet
type: string
- jsonPath: .spec.lanIp
name: LanIP
type: string
name: v1
2021-06-16 15:10:00 +00:00
served: true
storage: true
schema:
openAPIV3Schema:
type: object
properties:
spec:
type: object
properties:
dnatRules:
type: array
items:
type: object
properties:
eip:
type: string
externalPort:
type: string
internalIp:
type: string
internalPort:
type: string
protocol:
type: string
eips:
type: array
items:
type: object
properties:
eipCIDR:
type: string
gateway:
type: string
floatingIpRules:
type: array
items:
type: object
properties:
eip:
type: string
internalIp:
type: string
lanIp:
type: string
snatRules:
type: array
items:
type: object
properties:
eip:
type: string
internalCIDR:
type: string
subnet:
type: string
vpc:
type: string
subresources:
status: {}
conversion:
strategy: None
2021-10-14 19:11:09 +00:00
---
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
name: security-groups.kubeovn.io
spec:
group: kubeovn.io
names:
plural: security-groups
singular: security-group
shortNames:
- sg
kind: SecurityGroup
listKind: SecurityGroupList
scope: Cluster
versions:
- name: v1
served: true
storage: true
schema:
openAPIV3Schema:
type: object
properties:
spec:
type: object
properties:
ingressRules:
type: array
items:
type: object
properties:
ipVersion:
type: string
protocol:
type: string
priority:
type: integer
remoteType:
type: string
remoteAddress:
type: string
remoteSecurityGroup:
type: string
portRangeMin:
type: integer
portRangeMax:
type: integer
policy:
type: string
egressRules:
type: array
items:
type: object
properties:
ipVersion:
type: string
protocol:
type: string
priority:
type: integer
remoteType:
type: string
remoteAddress:
type: string
remoteSecurityGroup:
type: string
portRangeMin:
type: integer
portRangeMax:
type: integer
policy:
type: string
allowSameGroupTraffic:
type: boolean
status:
type: object
properties:
portGroup:
type: string
allowSameGroupTraffic:
type: boolean
ingressMd5:
type: string
egressMd5:
type: string
ingressLastSyncSuccess:
type: boolean
egressLastSyncSuccess:
type: boolean
subresources:
status: {}
conversion:
strategy: None