Skip to content

Installation Guide#

This section describes how to install Project 2A.

TL;DR#

export KUBECONFIG=<path-to-management-kubeconfig>
helm install hmc oci://ghcr.io/mirantis/hmc/charts/hmc --version <hmc-version> -n hmc-system --create-namespace

This will use the defaults as seen in Extended Management Configuration section below.

Finding Releases#

Releases are tagged in the GitHub repository and can be found here.

Extended Management Configuration#

Project 2A is deployed with the following default configuration, which may vary depending on the release version:

apiVersion: hmc.mirantis.com/v1alpha1
kind: Management
metadata:
  name: hmc
spec:
  providers:
  - name: k0smotron
  - name: cluster-api-provider-aws
  - name: cluster-api-provider-azure
  - name: cluster-api-provider-vsphere
  - name: projectsveltos
  release: hmc-0-0-3
To see what is included in a specific release, look at the release.yaml file in the tagged release. For example, here is the v0.0.3 release.yaml.

There are two options to override the default management configuration of Project 2A:

  1. Update the Management object after the Project 2A installation using kubectl:

    kubectl --kubeconfig <path-to-management-kubeconfig> edit management

  2. Deploy 2A skipping the default Management object creation and provide your own Management configuration:

    • Create management.yaml file and configure core components and providers.
    • Specify --create-management=false controller argument and install Project 2A: If installing using helm add the following parameter to the helm install command:

      --set="controller.createManagement=false"

    • Create hmc Management object after Project 2A installation:

      kubectl --kubeconfig <path-to-management-kubeconfig> create -f management.yaml
      

Cleanup#

  1. Remove the Management object:
  kubectl delete management.hmc hmc

Warning

Make sure you have no Project 2A ManagedCluster objects left in the cluster prior to deletion.

  1. Remove the hmc Helm release:
  helm uninstall hmc -n hmc-system
  1. Remove the hmc-system namespace:
  kubectl delete ns hmc-system