Skip to content

A repo containing all-in-one deployment files for Tungsten Fabric as a CNI plugin for Kubernetes

License

Notifications You must be signed in to change notification settings

CENGN/tungstenfabric-cni

Repository files navigation

Tungsten-Fabric Demo Deployment

Sample files for deploying tungsten-fabric on a Kubernetes environment. These were used for the demo that can be seen here: https://www.youtube.com/watch?v=b76Qhuu8S2U

Getting Started

These sample manifests were used to create the single master environment used in the demo linked above. Note that the IPs to the nodes must be changed in order to reference your own nodes and gateway. The variables to change are named K8S_MASTER_IP and range from 1 to multiple depending on the deployment.

Environment

These specific manifests were tested using the following environment:

  • CentOS: 7.5.1804
  • Kernel: 3.10.0-957
  • Docker: 1.13.1
  • Kubernetes: 1.10.5

To use the latest manifests, see the installation docs here: https://tungstenfabric.github.io/website/Tungsten-Fabric-Centos-one-line-install-on-k8s.html

Be sure to change the VROUTER_GATEWAY to your ACTUAL gateway IP. Otherwise, the node will be inaccessible when the vrouter interface is started

Link to the raw manifest can be found here: https://raw.githubusercontent.com/Juniper/contrail-kubernetes-docs/master/install/kubernetes/templates/contrail-single-step-cni-install-centos.yaml with special regard to:

  • Ensure mkdir -pm 777 /var/lib/contrail/kafka-logs is ran against the node(s)
  • {{ CONTRAIL_REPO }}: by default, it will reference docker.io/opencontrailnightly
  • {{ CONTRAIL_RELEASE }}: by default, it will reference latest
  • {{ K8S_MASTER_IP }}: no default value, must provide IPs of the nodes. Note the caveat around the VROUTER_GATEWAY

File List

  • busybox-tf-deploy.yaml: A busybox deployment to test network-based isolation
  • cleanup.sh: This script can be run to cleanup the nodes and have them ready for another deployment. It is important to run through these steps so that the deployment comes up healthy
  • contrail.yaml: The deployment file for tungsten-fabric against a single master node. The configmap can always be edited later on to get the deployment working for more master nodes
  • contrail_2masters.yml and contrail_HA.yml: Attempts at created an HA deployment. These were unsuccessful

References

About

A repo containing all-in-one deployment files for Tungsten Fabric as a CNI plugin for Kubernetes

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages