Prepare the Release 2 Configuration
Set up the configuration for an Oracle CNE Release 2 cluster.
Creating Cluster Configuration Files
Create a cluster configuration file to match the configuration of the Release 1 cluster. Ensure you include any custom configuration identified in OS Customizations. The options you set must match the Release 1 cluster, for example, the cluster name must be the same.
Create a cluster configuration file for each VM. This configuration file contains the hostname and IP address information, so a configuration file must be created for each VM.
The minimum configuration required is:
provider: byo
name: cluster_name
kubernetesVersion: kube_version
loadBalancer: ip_address
providers:
byo:
networkInterface: nic_name
extraIgnitionInline: |
variant: fcos
version: 1.5.0
storage:
files:
- path: /etc/hostname
mode: 0755
contents:
inline: hostname
- path: /etc/sysconfig/network-scripts/ifcfg-nic_name
mode: 0755
contents:
inline: |
TYPE=Ethernet
BOOTPROTO=none
NAME=nic_name
DEVICE=nic_name
ONBOOT=yes
IPADDR=IP_address
PREFIX=24
GATEWAY=gateway
For information on what can be included in a cluster configuration file, see Oracle Cloud Native Environment: Kubernetes Clusters.
For example:
provider: byo
name: mycluster
kubernetesVersion: 1.29
loadBalancer: 192.0.2.100
providers:
byo:
networkInterface: enp1s0
extraIgnitionInline: |
variant: fcos
version: 1.5.0
storage:
files:
- path: /etc/hostname
mode: 0755
contents:
inline: ocne-control-plane-1
- path: /etc/sysconfig/network-scripts/ifcfg-enp1s0
mode: 0755
contents:
inline: |
TYPE=Ethernet
BOOTPROTO=none
NAME=enp1s0
DEVICE=enp1s0
ONBOOT=yes
IPADDR=192.0.2.50
PREFIX=24
GATEWAY=192.0.2.1
Creating an OCK Image
Before you begin, identify the version of Kubernetes running in the Oracle CNE Release 1 cluster.
Creating Ignition Files
In Release 2, Ignition information is needed to join a node to a Kubernetes cluster. An Ignition file must be generated for each VM. The settings in an Ignition file differ for control plane and worker nodes, so ensure you use the correct syntax to generate Ignition for the appropriate node type. You include the content of the Ignition file in the configuration disk that's used when booting a node during the host upgrade to the Release 2 OS.
Ensure you use the appropriate Oracle CNE cluster
configuration file for the VM when using the ocne cluster join
command to
generate the Ignition file.
Repeat these steps for each VM.
Creating Configuration Disks
Create a configuration disk for each VM, with the label of CONFIG-2
, that
includes the Ignition configuration for the Oracle Linux Virtualization Manager VM. The
Ignition configuration is generated using the ocne cluster join
command.
Repeat these steps for each VM, changing the Qcow2 disk name as required.