hypershift-installer

module
v0.0.0-...-a269289 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 15, 2023 License: Apache-2.0

README

Hypershift Installer

Archived!

NOTE: This repository is no longer maintained. Follow the hypershift project at https://github.com/openshift/hypershift/

Overview

The hypershift installer is a program for running OpenShift 4.x in a hyperscale manner with many control planes hosted on a central management cluster.

Getting Started

Build and run the installer
  • Install an Openshift 4.x cluster on AWS/GCP/Azure using the traditional installer
  • Obtain the latest ibm-roks binary from openshift/ibm-roks-toolkit releases that corresponds to the release of the cluster that you are creating (4.3, 4.4, 4.5, etc).
  • Ensure the ibm-roks binary is in your path.
  • Run make on this repository
  • Setup your KUBECONFIG to point to the admin kubeconfig of your current AWS cluster (ie. export KUBECONFIG=${INSTALL_DIR}/auth/kubeconfig)
  • Run ./bin/hypershift-installer create install-config NAME to create a new install-config for your child cluster. The install-config.yaml will be placed in your current directory. The NAME parameter must be unique for the parent cluster. It will be used by the create cluster command to create a namespace on your existing cluster and place all control plane components in it.
  • Run ./bin/hypershift-installer create cluster command to install a new child cluster on your existing cluster.
    This command will create a directory named install-files under the current directory that contains manifests and PKI resources generated for the child cluster. The command will create the necessary resources on the parent cluster to support the child cluster, including:
    • A router shard (IngressController) to support routing to the child cluster
    • Services of load balancer type for API, OAuth, and VPN
    • Worker machine instances for your new cluster
Uninstalling the child cluster
  • Setup your KUBECONFIG to point to the management cluster
  • Run ./bin/hypershift-installer destroy cluster NAME where NAME is the name you gave your cluster when creating the install-config.yaml.
Environment Variables used by the Installer
  • CONTROL_PLANE_OPERATOR_IMAGE_OVERRIDE - Override for the control plane operator image. Defaults to registry.svc.ci.openshift.org/hypershift-toolkit/ibm-roks-{MAJOR}.{MINOR}:control-plane-operator.
  • HYPERSHIFT_OPERATOR_IMAGE_OVERRIDE - Override for the hypershift operator image. Defaults to quay.io/hypershift/hypershift-operator:latest.
  • ROKS_METRICS_IMAGE_OVERRIDE - Override for the ROKS metrics image. Defaults to registry.svc.ci.openshift.org/hypershift-toolkit/ibm-roks-{MAJOR}.{MINOR}:metrics.
  • DH_PARAMS - file containing Diffie-Hellman parameters for VPN server. By default this file is generated and placed in install-files/pki/openvpn-dh.pem.
  • KUBECONFIG - Kubeconfig pointing to host cluster. If not set, the ~/.kube/config file is used.
  • PLATFORM_TYPE - Platform type for child cluster's Infrastructure config. If not specified, it is set to None.

Directories

Path Synopsis
pkg
api
pki

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL