/ocm-transport-plugin

KubeStellar transport plugin implementation based on Open-Cluster-Management

Primary LanguageGoApache License 2.0Apache-2.0






Go Report Card Go Reference License

This repository is the Open-Cluster-Management based implementation of KubeStellar transport controller. KubeStellar transport controller is the component that is responsible for propagating selected objects from the center to the selected WECs.
Transport controller is pluggable and allows implementing it using different plugins. Transport controller is a mandatory part of KubeStellar and should run in a working system with one of the plugin implementations.

Getting Started

Build and run ocm transport controller locally using executable process

  1. Run the following command to build locally ocm transport controller executable:

    $ make build
    
  2. Set the following environment variables:

    1. Set TRANSPORT_KUBECONFIG environment variable to hold the transport kubeconfig file path.

      export TRANSPORT_KUBECONFIG=my_transport_kubeconfig_filepath
      
    2. Set WDS_KUBECONFIG environment variable to hold the WDS kubeconfig file path.

      export WDS_KUBECONFIG=my_wds_kubeconfig_filepath
      
    3. Set WDS_NAME environment variable to hold a unique name for the WDS, e.g:

      export WDS_NAME=wds1
      
  3. Run locally OCM transport controller executable:

    $ ./bin/ocm-transport-plugin --transport-kubeconfig ${TRANSPORT_KUBECONFIG} --wds-kubeconfig ${WDS_KUBECONFIG} --wds-name ${WDS_NAME}
    

Cloud Native Computing Foundation Logo
We are a Cloud Native Computing Foundation sandbox project.
Kubernetes and the Kubernetes logo are registered trademarks of The Linux Foundation® (TLF).
© 2022-2024. The KubeStellar Authors.