generate_install_config
Generate install-config.yaml for baremetal IPI clusters using cluster details, API and ingress VIPs, and host BMC configurations.
Instructions
Generate an install-config.yaml for baremetal IPI.
Args: cluster_name: Name of the cluster base_domain: Base domain (e.g., example.com) pull_secret: Pull secret content (JSON string) ssh_key: SSH public key content api_vip: API VIP address ingress_vip: Ingress VIP address hosts: List of baremetal hosts with BMC configuration machine_network_cidr: Machine network CIDR (default: 192.168.1.0/24) cluster_network_cidr: Cluster network CIDR (default: 10.128.0.0/14) service_network_cidr: Service network CIDR (default: 172.30.0.0/16) network_type: Network type (default: OVNKubernetes) control_plane_replicas: Number of master nodes (default: 3) worker_replicas: Number of worker nodes (default: 0)
Returns: Generated install-config as dictionary and YAML string
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hosts | Yes | ||
| api_vip | Yes | ||
| ssh_key | Yes | ||
| base_domain | Yes | ||
| ingress_vip | Yes | ||
| pull_secret | Yes | ||
| cluster_name | Yes | ||
| network_type | No | ||
| worker_replicas | No | ||
| cluster_network_cidr | No | ||
| machine_network_cidr | No | ||
| service_network_cidr | No | ||
| control_plane_replicas | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||