diff --git a/deployments/custom-installation/README.md b/deployments/custom-installation/README.md index 50d2600c421663c32135cab309c7b6b426fd9562..138c60419c4ab11cd35a47d003b2d6c9042c4bb0 100644 --- a/deployments/custom-installation/README.md +++ b/deployments/custom-installation/README.md @@ -37,6 +37,7 @@ kubectl create -f ./deployments/custom-installation/mysql/ kubectl get nodes kubectl label nodes [your-master-node] dedicated=master ``` + 5. Deploy the L2S-M Controller by using the following command: ```bash @@ -49,7 +50,7 @@ kubectl create -f ./deployments/custom-installation/deployController.yaml kubectl create -f ./deployments/custom-installation/deployOperator.yaml ``` -Once these two pods are in running state, you can finally deploy the virtual switches +Once these two pods are in running state, you can finally deploy the virtual switches and custom CRD 7. This is done by: @@ -60,6 +61,11 @@ kubectl create -f ./deployments/custom-installation/deploySwitch.yaml And check there is a pod running in each node, with ```kubectl get pods -o wide``` +8. And launch the CRD definition by: +```bash +kubectl create -f ./deployments/custom-installation/l2sm-network-crd.yaml +``` + ## Configuring Vxlans Each node enables the creation of custom L2S-M networks, as can be seen in the [examples section](../../examples/) section. But for communicating pods that are in different Nodes of the cluster, additional configuration must be done, of configuring the Vxlan tunnels between them. diff --git a/deployments/inter-cluster/l2sm-network-crd.yaml b/deployments/custom-installation/l2sm-network-crd.yaml similarity index 100% rename from deployments/inter-cluster/l2sm-network-crd.yaml rename to deployments/custom-installation/l2sm-network-crd.yaml diff --git a/deployments/l2sm-deployment.yaml b/deployments/l2sm-deployment.yaml index 8511d72427bb7e8b30b127d590aaccbea85bd76c..16f26552dde13b88ba1d64fa3a604b49079167ee 100644 --- a/deployments/l2sm-deployment.yaml +++ b/deployments/l2sm-deployment.yaml @@ -416,5 +416,44 @@ spec: add: ["NET_ADMIN"] nodeSelector: kubernetes.io/arch: amd64 - +--- +apiVersion: apiextensions.k8s.io/v1 +kind: CustomResourceDefinition +metadata: + name: l2sm-networks.l2sm.k8s.local +spec: + group: l2sm.k8s.local + versions: + - name: v1 + served: true + storage: true + schema: + openAPIV3Schema: + type: object + properties: + spec: + type: object + properties: + type: + type: string + config: + type: string + nullable: true + signature: + type: string + nullable: true + status: + type: object + properties: + connectedPods: + type: array + items: + type: string + scope: Namespaced + names: + plural: l2sm-networks + singular: l2sm-network + kind: L2SMNetwork + shortNames: + - l2sm-net