2019-04-25 12:00:48 +00:00
|
|
|
# Create all the CustomResourceDefinitions needed for
|
|
|
|
|
|
|
|
apiVersion: apiextensions.k8s.io/v1beta1
|
|
|
|
kind: CustomResourceDefinition
|
|
|
|
metadata:
|
|
|
|
name: felixconfigurations.crd.projectcalico.org
|
|
|
|
spec:
|
|
|
|
scope: Cluster
|
|
|
|
group: crd.projectcalico.org
|
|
|
|
version: v1
|
|
|
|
names:
|
|
|
|
kind: FelixConfiguration
|
|
|
|
plural: felixconfigurations
|
|
|
|
singular: felixconfiguration
|
|
|
|
---
|
|
|
|
|
2019-07-09 19:42:28 +00:00
|
|
|
{% if calico_version is version('v3.6.0', '>=') %}
|
|
|
|
apiVersion: apiextensions.k8s.io/v1beta1
|
|
|
|
kind: CustomResourceDefinition
|
|
|
|
metadata:
|
|
|
|
name: ipamblocks.crd.projectcalico.org
|
|
|
|
spec:
|
|
|
|
scope: Cluster
|
|
|
|
group: crd.projectcalico.org
|
|
|
|
version: v1
|
|
|
|
names:
|
|
|
|
kind: IPAMBlock
|
|
|
|
plural: ipamblocks
|
|
|
|
singular: ipamblock
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
apiVersion: apiextensions.k8s.io/v1beta1
|
|
|
|
kind: CustomResourceDefinition
|
|
|
|
metadata:
|
|
|
|
name: blockaffinities.crd.projectcalico.org
|
|
|
|
spec:
|
|
|
|
scope: Cluster
|
|
|
|
group: crd.projectcalico.org
|
|
|
|
version: v1
|
|
|
|
names:
|
|
|
|
kind: BlockAffinity
|
|
|
|
plural: blockaffinities
|
|
|
|
singular: blockaffinity
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
apiVersion: apiextensions.k8s.io/v1beta1
|
|
|
|
kind: CustomResourceDefinition
|
|
|
|
metadata:
|
|
|
|
name: ipamhandles.crd.projectcalico.org
|
|
|
|
spec:
|
|
|
|
scope: Cluster
|
|
|
|
group: crd.projectcalico.org
|
|
|
|
version: v1
|
|
|
|
names:
|
|
|
|
kind: IPAMHandle
|
|
|
|
plural: ipamhandles
|
|
|
|
singular: ipamhandle
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
apiVersion: apiextensions.k8s.io/v1beta1
|
|
|
|
kind: CustomResourceDefinition
|
|
|
|
metadata:
|
|
|
|
name: ipamconfigs.crd.projectcalico.org
|
|
|
|
spec:
|
|
|
|
scope: Cluster
|
|
|
|
group: crd.projectcalico.org
|
|
|
|
version: v1
|
|
|
|
names:
|
|
|
|
kind: IPAMConfig
|
|
|
|
plural: ipamconfigs
|
|
|
|
singular: ipamconfig
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
{% endif %}
|
2019-04-25 12:00:48 +00:00
|
|
|
apiVersion: apiextensions.k8s.io/v1beta1
|
|
|
|
kind: CustomResourceDefinition
|
|
|
|
metadata:
|
|
|
|
name: bgppeers.crd.projectcalico.org
|
|
|
|
spec:
|
|
|
|
scope: Cluster
|
|
|
|
group: crd.projectcalico.org
|
|
|
|
version: v1
|
|
|
|
names:
|
|
|
|
kind: BGPPeer
|
|
|
|
plural: bgppeers
|
|
|
|
singular: bgppeer
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
apiVersion: apiextensions.k8s.io/v1beta1
|
|
|
|
kind: CustomResourceDefinition
|
|
|
|
metadata:
|
|
|
|
name: bgpconfigurations.crd.projectcalico.org
|
|
|
|
spec:
|
|
|
|
scope: Cluster
|
|
|
|
group: crd.projectcalico.org
|
|
|
|
version: v1
|
|
|
|
names:
|
|
|
|
kind: BGPConfiguration
|
|
|
|
plural: bgpconfigurations
|
|
|
|
singular: bgpconfiguration
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
apiVersion: apiextensions.k8s.io/v1beta1
|
|
|
|
kind: CustomResourceDefinition
|
|
|
|
metadata:
|
|
|
|
name: ippools.crd.projectcalico.org
|
|
|
|
spec:
|
|
|
|
scope: Cluster
|
|
|
|
group: crd.projectcalico.org
|
|
|
|
version: v1
|
|
|
|
names:
|
|
|
|
kind: IPPool
|
|
|
|
plural: ippools
|
|
|
|
singular: ippool
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
apiVersion: apiextensions.k8s.io/v1beta1
|
|
|
|
kind: CustomResourceDefinition
|
|
|
|
metadata:
|
|
|
|
name: hostendpoints.crd.projectcalico.org
|
|
|
|
spec:
|
|
|
|
scope: Cluster
|
|
|
|
group: crd.projectcalico.org
|
|
|
|
version: v1
|
|
|
|
names:
|
|
|
|
kind: HostEndpoint
|
|
|
|
plural: hostendpoints
|
|
|
|
singular: hostendpoint
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
apiVersion: apiextensions.k8s.io/v1beta1
|
|
|
|
kind: CustomResourceDefinition
|
|
|
|
metadata:
|
|
|
|
name: clusterinformations.crd.projectcalico.org
|
|
|
|
spec:
|
|
|
|
scope: Cluster
|
|
|
|
group: crd.projectcalico.org
|
|
|
|
version: v1
|
|
|
|
names:
|
|
|
|
kind: ClusterInformation
|
|
|
|
plural: clusterinformations
|
|
|
|
singular: clusterinformation
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
apiVersion: apiextensions.k8s.io/v1beta1
|
|
|
|
kind: CustomResourceDefinition
|
|
|
|
metadata:
|
|
|
|
name: globalnetworkpolicies.crd.projectcalico.org
|
|
|
|
spec:
|
|
|
|
scope: Cluster
|
|
|
|
group: crd.projectcalico.org
|
|
|
|
version: v1
|
|
|
|
names:
|
|
|
|
kind: GlobalNetworkPolicy
|
|
|
|
plural: globalnetworkpolicies
|
|
|
|
singular: globalnetworkpolicy
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
apiVersion: apiextensions.k8s.io/v1beta1
|
|
|
|
kind: CustomResourceDefinition
|
|
|
|
metadata:
|
|
|
|
name: globalnetworksets.crd.projectcalico.org
|
|
|
|
spec:
|
|
|
|
scope: Cluster
|
|
|
|
group: crd.projectcalico.org
|
|
|
|
version: v1
|
|
|
|
names:
|
|
|
|
kind: GlobalNetworkSet
|
|
|
|
plural: globalnetworksets
|
|
|
|
singular: globalnetworkset
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
apiVersion: apiextensions.k8s.io/v1beta1
|
|
|
|
kind: CustomResourceDefinition
|
|
|
|
metadata:
|
|
|
|
name: networkpolicies.crd.projectcalico.org
|
|
|
|
spec:
|
|
|
|
scope: Namespaced
|
|
|
|
group: crd.projectcalico.org
|
|
|
|
version: v1
|
|
|
|
names:
|
|
|
|
kind: NetworkPolicy
|
|
|
|
plural: networkpolicies
|
|
|
|
singular: networkpolicy
|
2019-07-09 19:42:28 +00:00
|
|
|
|
|
|
|
{% if calico_version is version('v3.7.0', '>=') %}
|
|
|
|
---
|
|
|
|
|
|
|
|
apiVersion: apiextensions.k8s.io/v1beta1
|
|
|
|
kind: CustomResourceDefinition
|
|
|
|
metadata:
|
|
|
|
name: networksets.crd.projectcalico.org
|
|
|
|
spec:
|
|
|
|
scope: Namespaced
|
|
|
|
group: crd.projectcalico.org
|
|
|
|
version: v1
|
|
|
|
names:
|
|
|
|
kind: NetworkSet
|
|
|
|
plural: networksets
|
|
|
|
singular: networkset
|
|
|
|
{% endif %}
|