Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/loganmc10/hypershift-helm
https://github.com/loganmc10/hypershift-helm
hypershift k8s kubernetes openshift
Last synced: 9 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/loganmc10/hypershift-helm
- Owner: loganmc10
- License: apache-2.0
- Created: 2023-02-11T17:50:17.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-08-06T09:26:35.000Z (3 months ago)
- Last Synced: 2024-08-07T08:29:14.421Z (3 months ago)
- Topics: hypershift, k8s, kubernetes, openshift
- Language: Shell
- Homepage:
- Size: 102 KB
- Stars: 3
- Watchers: 1
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Intro
See a blog post about this solution [here](https://cloud.redhat.com/blog/using-gitops-to-deploy-bare-metal-openshift-hosted-control-plane-clusters).# Prerequisites
* OpenShift GitOps Operator v1.8+
* MetalLB Operator
* ACM 2.7+ or MCE 2.2+
* Enable the Hosted Control Plane feature: [RHACM Docs - Enable Hypershift Add-On](https://access.redhat.com/documentation/en-us/red_hat_advanced_cluster_management_for_kubernetes/2.7/html-single/clusters/index#hypershift-addon-intro)
* Enable CIM: [RHACM Docs - Enable CIM](https://access.redhat.com/documentation/en-us/red_hat_advanced_cluster_management_for_kubernetes/2.7/html-single/clusters/index#enable-cim)I have written an Ansible Playbook that can set up the management cluster as required, see [here](https://github.com/loganmc10/openshift-edge-installer/tree/main/provisioning).
# DNS for the Hosted Cluster
You need to create DNS entries for `api..` and `*.apps..`, just like you would for a standalone cluster.
## API
This Helm chart utilizes MetalLB (layer 2) on the **management** cluster in order to serve the API for the hosted cluster. This means that the IP address you choose for the Hosted Cluster API needs to be in the same subnet as the management cluster.
## Ingress
This Helm chart utilizes MetalLB (layer 2) on the **hosted** cluster for the Ingress. This means that the IP address you choose for the Hosted Cluster Ingress needs to be in the same subnet as the hosted cluster workers.
# Configuration
The Values file for the Helm chart is an OpenShift [Install Config](https://docs.openshift.com/container-platform/latest/installing/installing_bare_metal_ipi/ipi-install-installation-workflow.html#additional-resources_config) with an extra `hypershift` section. See [the example](install-config-example.yaml). Hosted Control Plane (HyperShift) clusters do not have any control plane nodes, therefore only worker nodes should be specified in the Install Config.
# Example
Example ArgoCD application:
```
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: hypershift-cluster
namespace: openshift-gitops
spec:
destination:
server: https://kubernetes.default.svc
project: default
sources:
- repoURL: 'https://loganmc10.github.io/hypershift-helm'
chart: deploy-cluster
targetRevision: 0.1.24
helm:
valueFiles:
- $values/install-config.yaml
- repoURL: 'https://git.example.com/org/install-configs.git'
targetRevision: main
ref: values
```