Git Product home page Git Product logo

cloud-provider-kubevirt's Introduction

cloud-provider-kubevirt

Build Status Go Report Card

The KubeVirt cloud-provider allows you to use KubeVirt and Kubernetes as a "cloud" to run Kubernetes clusters on top. This project contains the kubevirt-cloud-controller-manager, an implementation of the cloud controller manager (see Concepts Underlying the Cloud Controller Manager for more details).

Introduction

The KubeVirt cloud-provider allows a Kubernetes cluster running in KubeVirt VMs (tenant cluster) to interact with KubeVirt and Kubernetes (infrastructure cluster) to provision, manage and clean up resources. For example, the cloud-provider ensures that zone and region labels of nodes in the tenant cluster are set based on the zone and region of the KubeVirt VMs in the infrastructure cluster. The cloud-provider also ensures tenant cluster services of type LoadBalancer are properly exposed through services in the UnderKube.

How to run kubevirt-cloud-controller-manager

See Running cloud-controller-manager for general information on how to configure your tenant cluster to run kubevirt-cloud-controller-manager. You can find example manifests for kubevirt-cloud-controller-manager in the manifests directory for static Pod, Deployment and DaemonSet configurations.

To get it to run, you'll need to provide a kubeconfig for the infrastructure cluster to the kubevirt-cloud-controller-manager configuration. The configuration should contain an kubeconfig key, like in the following example:

cat /etc/kubernetes/cloud/config

Output:

kubeconfig: |
  <kubeconfig>
loadBalancer:
  creationPollInterval: 30

How to build a Docker image

With make image you can build a Docker image containing kubevirt-cloud-controller-manager.

Development

Create a cloud config

First create a cloud config file in the project directory

touch dev/cloud-config

Next add a kubeconfig to the cloud-config file. The kubeconfig must point to the infrastructure cluster where KubeVirt is installed.

kubeconfig: |
  <kubeconfig>

For more configuration options look at the cloud configuration

Build KubeVirt CCM

Build kubevirt-cloud-controller-manager using make build. It will put the finished binary in bin/kubevirt-cloud-controller-manager.

Run KubeVirt CCM

Run the following command:

bin/kubevirt-cloud-controller-manager --kubeconfig <path-to-tenant-cluster-kubeconfig> --cloud-config dev/cloud-config 

cloud-provider-kubevirt's People

Contributors

gonzolino avatar kubevirt-bot avatar dependabot[bot] avatar mfranczy avatar stoyanr avatar afritzler avatar nirarg avatar briantopping avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.