Giter Club home page Giter Club logo

cluster-api-provider-metal3's Introduction

Cluster API Provider Metal3 for Managed Bare Metal Hardware

Ubuntu V1beta1 build status CentOS V1beta1 build status

Kubernetes-native declarative infrastructure for Metal3.

What is the Cluster API Provider Metal3

The Cluster API brings declarative, Kubernetes-style APIs to cluster creation, configuration and management. The API itself is shared across multiple cloud providers. Cluster API Provider Metal3 is one of the providers for Cluster API and enables users to deploy a Cluster API based cluster on top of bare metal infrastructure using Metal3.

Compatibility with Cluster API

CAPM3 version Cluster API version CAPM3 Release
v1alpha4 v1alpha3 v0.4.X
v1alpha5 v1alpha4 v0.5.X
v1beta1 v1beta1 v1.0.X

Deploying the metal3 provider

The recommended method is using Clusterctl.

Starting from v0.5.0 release of Cluster-api-provider-metal3, Baremetal Operator is decoupled from Cluster-api-provider-metal3 deployments when deployed via clusterctl. For that reason, Baremetal Operator will not be installed when initializing the Metal3 provider with clusterctl, and its CRDs and controller need to be manually installed. Example flow of installing Metal3 provider:

  1. Install Cluster API core, bootstrap and control-plane providers. This will also install cert-manager if it is not already installed.

    clusterctl init --core cluster-api:v0.4.4 --bootstrap kubeadm:v0.4.4 \
        --control-plane kubeadm:v0.4.4 -v5
  2. Install Metal3 provider. This will install Cluster-api-provider-metal3 CRDs and controllers.

    clusterctl init --infrastructure metal3
  3. Deploy Baremetal Operator manifests and CRDs. You need to install cert-manager for Baremetal Operator, but since step 1 already does it, we skip it here and only install the operator. Depending on whether you want TLS, or basic-auth enabled, kustomize paths may differ. Check operator dev-setup doc for more info.

    git clone https://github.com/metal3-io/baremetal-operator.git
    cd baremetal-operator
    kustomize build config/default | kubectl apply -f -
  4. Install Ironic. There are a couple of ways to do it.

    • Run within a Kubernetes cluster as a pod, refer to deploy.sh script.
    • Outside of a Kubernetes cluster as a container. Please refer to run_local_ironic.sh.

Please refer to the getting-started for more info.

Pivoting ⚠️

Starting from v0.5.0 release of Cluster-api-provider-metal3, Baremetal Operator is decoupled from Cluster-api-provider-metal3 deployments when deployed via clusterctl. For that reason, when performing clusterctl move, custom objects outside of the Cluster API chain or not part of CAPM3 will not be pivoted to a target cluster. Example to those objects is BareMetalHost, its secret and configMap which are reconciled by Baremetal Operator. To ensure that those objects are also pivoted as part of clusterctl move, clusterctl.cluster.x-k8s.io label need to be set on the BareMetalHost CRD before pivoting. If there are other CRDs also need to be pivoted to target cluster, the same label needs to be set on them.

All the other objects owned by BareMetalHost, such as Secret and ConfigMap don't require this label to be set, because they hold ownerReferences to BareMetalHost, and that is good enough for clusterctl to move all the hierarchy of BareMetalHost object.

Development Environment

There are multiple ways to setup a development environment:

API

See the API Documentation for details about the objects used with this cluster-api provider. You can also see the cluster deployment workflow for the outline of the deployment process.

Architecture

The architecture with the components involved is documented here

cluster-api-provider-metal3's People

Contributors

metal3-io-bot avatar maelk avatar russellb avatar dhellmann avatar kashifest avatar furkatgofurov7 avatar fmuyassarov avatar mhrivnak avatar namnx228 avatar jaakko-os avatar digambar15 avatar arvinderpal avatar jbrette avatar mykoladzhamatteralytics avatar wgslr avatar jan-est avatar smoshiur1237 avatar levsha avatar bcrochet avatar mboukhalfa avatar zaneb avatar zouy414 avatar macaptain avatar mikkosest avatar stbenjam avatar vrutkovs avatar jichenjc avatar andfasano avatar aneeshkp avatar asalkeld 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.