openshift-cluster-prep¶
A task to prepare initial configuration for an OpenShift cluster deployment
This task prepares the initial configuration required for OpenShift cluster deployment. It generates the install-config.yaml and sets up essential cluster parameters including networking, SSH keys, and registry configurations.
Requirements¶
Parameters¶
openshift/pull-secret: Red Hat registry authentication credentialsopenshift/cluster-domain: Base domain for cluster DNSopenshift/ssh-key-pub: Public SSH key for node accessopenshift/network/machineNetwork: Node IP address rangesopenshift/network/clusterNetwork: Pod network configurationopenshift/network/serviceNetwork: Service IP ranges
Infrastructure¶
- Network ranges must not overlap
- DNS delegation configured for cluster domain
- Sufficient IP addresses available
- Valid pull secret from Red Hat
Usage¶
Basic Setup¶
# Apply preparation task
drpcli machines tasks add <machine-uuid> openshift-cluster-prep
# Verify configuration
cat /root/cluster/install-config.yaml
Configuration Process¶
- Generates SSH key pair if not exists
- Creates install-config.yaml with:
- Network configurations
- Node counts and roles
- Pull secret
- SSH key
- Registry settings
- Stores configuration in cluster profile
Objects that Reference openshift-cluster-prep¶
Not used in current content packs
Objects used by openshift-cluster-prep¶
- templates install-config.yaml.tmpl in field Templates[0].ID as value install-config.yaml.tmpl
- templates prelude.tmpl