Create the cluster and site configuration files that pre-fill the installer fields and supply all input for an unattended run.
Configuration files pre-fill the installer fields. The terminal user interface still shows every screen, with the supplied values as editable defaults. An unattended run takes all of its input from these files. Split the values across two files, one for the cluster and one for the site, and place both under /srv/ccc-lcm/configs/.
-
Copy the CA certificate and key into the data directory, so that the container can read them at /opt/ccc-lcm/ca.crt and /opt/ccc-lcm/ca.key.
sudo cp ca.crt ca.key /srv/ccc-lcm/
sudo chmod 600 /srv/ccc-lcm/ca.key
-
Create configs/inventory.yaml with the cluster and registry values.
kubernetes_inventory_file: configs/inventory.ini
kubernetes_ssh_user: <ssh-user>
kubernetes_ssh_private_key_path: <ssh-key-path>
network_plugin_mtu: "9000"
calico_vxlan_mode: Never
calico_ipip_mode: Never
oci_registry_base: <registry-host>
oci_registry_username: <registry-username>
# Site manifest registry, only for a split registry layout:
# oci_site_registry_base: <registry-host>
# oci_site_registry_username: <registry-username>
# Where the base manifest is read from, either "source" or "site":
# oci_base_manifest_registry: source
-
Create configs/site.yaml with the site values. For an air gap, use the customer-provided CA mode and omit the Route 53 key.
base_domain: <base-domain>
tunnel_interface: bond0.1832
bridge_interface: bond0
ceph_mons_raw: "192.0.2.11,192.0.2.12,192.0.2.13"
ceph_public: 203.0.113.0/25
ceph_cluster: 203.0.113.128/25
cert_manager_mode: custom-ca
ca_cert_file: /opt/ccc-lcm/ca.crt
ca_key_file: /opt/ccc-lcm/ca.key
# Optional control plane virtual IP, an unused address in the
# management range, shared across the control plane hosts:
# control_plane_vip: 192.0.2.10
# Optional storage cipher. Omit it to let the installer choose
# from the host kernels:
# ceph_cephx_cipher: aes
-
If you generated a disk selection, append the storage_disk_selection block to configs/site.yaml.
The two files are ready. YAML and JSON files are accepted. When you pass several files, the LCM merges them from left to right: a later file wins for any key it names, and for nested settings only the named sub-keys are replaced. You can embed the inventory in the file with kubernetes_inventory_ini instead of referencing it.