kubeasz/roles/kube-ovn/templates/crd.yaml.j2

79 lines
1.6 KiB
Plaintext
Raw Normal View History

2019-07-23 13:28:46 +08:00
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
name: ips.kubeovn.io
spec:
group: kubeovn.io
version: v1
scope: Cluster
names:
plural: ips
singular: ip
kind: IP
shortNames:
- ip
2019-10-14 18:21:30 +08:00
additionalPrinterColumns:
- name: IP
type: string
JSONPath: .spec.ipAddress
- name: Mac
type: string
JSONPath: .spec.macAddress
- name: Node
type: string
JSONPath: .spec.nodeName
- name: Subnet
type: string
JSONPath: .spec.subnet
2019-07-23 13:28:46 +08:00
---
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
name: subnets.kubeovn.io
spec:
group: kubeovn.io
version: v1
scope: Cluster
names:
plural: subnets
singular: subnet
kind: Subnet
shortNames:
- subnet
2019-10-14 18:21:30 +08:00
subresources:
status: {}
2019-07-23 13:28:46 +08:00
additionalPrinterColumns:
- 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
2019-10-14 18:21:30 +08:00
- name: Default
type: boolean
JSONPath: .spec.default
- name: GatewayType
type: string
JSONPath: .spec.gatewayType
- name: Used
type: integer
JSONPath: .status.usingIPs
- name: Available
type: integer
JSONPath: .status.availableIPs
2019-07-23 13:28:46 +08:00
validation:
openAPIV3Schema:
properties:
spec:
2019-10-14 18:21:30 +08:00
required: ["cidrBlock"]
2019-07-23 13:28:46 +08:00
properties:
cidrBlock:
type: "string"
gateway:
type: "string"