Urgent.News

What's breaking now, across hundreds of outlets.

Tech

Single-Node OpenShift on AWS via UPI: A Lean Setup for Labs & Training

Spinning up a Single-Node OpenShift (SNO) cluster on AWS for training or lab environments doesn't always require heavy Terraform or CloudFormation scaffolding. With User-Provisioned Infrastructure (UPI) , you stay close to the actual mechanics and see every stage of the cluster coming up. Because AWS AMIs do not support "Bootstrap-in-Place" installations, you briefly start with a temporary…

Setting up a single-node OpenShift (SNO) cluster on AWS using User-Provisioned Infrastructure (UPI) allows for a clear and straightforward process. Without the need for Terraform or CloudFormation provisioning, each stage of the cluster deployment is observable. AWS doesn't support "Bootstrap-in-Place" installations with AMIs, so a temporary bootstrap EC2 instance with m6i.xlarge specifications (4 vCPUs, 16 GB RAM and 100 GB gp3 storage) is utilized initially. This instance later relinquishes control to the master node.

The master node, also running SNO, is powered by an m6i.2xlarge EC2 instance (8 vCPUs, 32 GB RAM and 120 GB gp3 storage) and requires an Elastic IP allocation. An external management station, equipped with oc and openshift-install tools, SSH access, and an Nginx web server, is necessary to serve Ignition configurations. The prerequisites include a personal DNS domain, a cluster name, a Red Hat pull secret, and an SSH public key.

A fresh directory is set up for the OpenShift installer, preventing any issues from leftover state files. The installer configuration file (install-config.yaml) is backed up as it's deleted during the setup. To enable the ingress router and image registry on the single node, SNO masters are designated as schedulable before Ignition files are generated.

The Ignition configuration files, which are larger than EC2 User-Data's 16 KB limit, are hosted on an Nginx web server and referenced with small JSON pointer configurations in the User-Data.

Upon launch, AWS EC2 volumes are resized directly in the launch wizard. The DNS records for the cluster API, API-int, and app services should be configured with a low TTL (60 seconds) to ensure quick updates. After the master node assumes control of the control plane, the API DNS records are updated to point to the master, and the bootstrap node is subsequently terminated.

Pending Certificate Signing Requests (CSRs) can cause network and workload pods to remain in ContainerCreating state. If the external API is not accessible from SSH, the kubeconfig file for the master can be inspected at /etc/kubernetes/static-pod-resources/kube-apiserver-certs/secrets/node-kubeconfigs/localhost.kubeconfig. In the event that quorum is lost in etcd during the handoff process, the 'quorum-restore.sh' script can be executed (while stopping etcd containers if necessary).

Once the cluster is operational, security group rules should be refined, Ignition files removed from the web server (due to containing sensitive data), and the DNS TTL should be raised. In environments where dynamic persistent volume claims (PVCs) are needed, Red Hat LVM Storage (LVMS) can be installed through a Subscription in the openshift-storage namespace.

This guide provides a detailed walkthrough for setting up a single-node OpenShift cluster on AWS using UPI, offering valuable insight into the bootstrap, cutover, and storage processes without relying on black-box automation. Further instructions can be found in the 'openshift_single_node_aws_upi_installation_guide.md' repository.

Rewritten by urgent.news; may contain errors — check the original.

Source: dev.to

Read the original at dev.to →

Report a problem with this story

More in Tech

A page that loads is not a page that worked

Every browser-automation task I run has the same two failure modes, and they look nothing alike from the inside. The loud one is easy: navigation error, 403, timeout.

  • Navigation success is insufficient confirmation for page work
  • Check for expected content presence, not just navigation
  • Log should specify expected element, not generic success

What breaks when your app scales to zero, and how to catch it

Originally published on gregale.dev . I build Gregale, so read this as a vendor's page. Competitor details come from each vendor's own docs, linked in the post.

  • Data on app's machine lost when scaling to zero
  • Timers and background processes stop functioning
  • Object storage and managed databases persist data

More from Friday 27 November →