aboutsummaryrefslogtreecommitdiffstats
path: root/deploy
diff options
context:
space:
mode:
authorRitu Sood <ritu.sood@intel.com>2019-09-29 06:07:26 -0700
committerRitu Sood <ritu.sood@intel.com>2019-11-20 02:08:27 -0800
commit52123c4bdcfad323f8fb57742400be993167ae2d (patch)
tree9d5410dc7228b8be57a6eab60448ad9db0171081 /deploy
parent3d32ae1a5f4ab806e787756b6e6685daf2fb4369 (diff)
Add Provider Network CRD controller
CRD controller watches for Provider Network CR's and sends messages to all the nodes that needs to be configured for provider network, if subsribe message was already received from the agent running on the node. Change-Id: Idc3e2703a309113b325a2fb7c8eb244a02babeb3 Signed-off-by: Ritu Sood <ritu.sood@intel.com>
Diffstat (limited to 'deploy')
-rw-r--r--deploy/crds/k8s_v1alpha1_providernetwork_cr.yaml19
-rw-r--r--deploy/crds/k8s_v1alpha1_providernetwork_crd.yaml14
2 files changed, 30 insertions, 3 deletions
diff --git a/deploy/crds/k8s_v1alpha1_providernetwork_cr.yaml b/deploy/crds/k8s_v1alpha1_providernetwork_cr.yaml
new file mode 100644
index 0000000..ef03725
--- /dev/null
+++ b/deploy/crds/k8s_v1alpha1_providernetwork_cr.yaml
@@ -0,0 +1,19 @@
+apiVersion: k8s.plugin.opnfv.org/v1alpha1
+kind: ProviderNetwork
+metadata:
+ name: pnetwork
+spec:
+ cniType: ovn4nfv
+ ipv4Subnets:
+ - subnet: 172.16.33.0/24
+ name: subnet1
+ gateway: 172.16.33.1/24
+ excludeIps: 172.16.33.2 172.16.33.5..172.16.33.10
+ providerNetType: VLAN
+ vlan:
+ vlanId: "100"
+ providerInterfaceName: eth1
+ logicalInterfaceName: eth1.100
+ vlanNodeSelector: specific
+ nodeLabelList:
+ - kubernetes.io/hostname=testnode1
diff --git a/deploy/crds/k8s_v1alpha1_providernetwork_crd.yaml b/deploy/crds/k8s_v1alpha1_providernetwork_crd.yaml
index eabf3f2..cea5b72 100644
--- a/deploy/crds/k8s_v1alpha1_providernetwork_crd.yaml
+++ b/deploy/crds/k8s_v1alpha1_providernetwork_crd.yaml
@@ -101,15 +101,23 @@ spec:
properties:
logicalInterfaceName:
type: string
- node:
- type: string
+ nodeLabelList:
+ description: '"all"/"any"(in which case a node will be randomly
+ selected)/"specific"(see below)'
+ items:
+ type: string
+ type: array
providerInterfaceName:
+ description: if VlanNodeSelector is value "specific" then this array
+ provides a list of nodes labels
type: string
vlanId:
type: string
+ vlanNodeSelector:
+ type: string
required:
- vlanId
- - node
+ - vlanNodeSelector
- providerInterfaceName
type: object
required: