3 Installing Oracle Cloud Native Environment

This chapter discusses how to prepare the nodes to be used in an Oracle Cloud Native Environment deployment. When the nodes are prepared, they must be installed with the Oracle Cloud Native Environment software packages. When the nodes are set up with the software, you can use the Platform CLI to perform a deployment of a Kubernetes cluster and optionally install other modules.

This chapter shows you how to perform the steps to set up the hosts and install the Oracle Cloud Native Environment software, ready to perform a deployment of modules. When you have set up the nodes, deploy the Kubernetes module to install a Kubernetes cluster using the steps in Kubernetes Module.

Installation Overview

The high level overview of setting up Oracle Cloud Native Environment is described in this section.

To install Oracle Cloud Native Environment:

  1. Prepare the operator node: An operator node is a host to be used to perform and manage the deployment of environments. The operator node must be set up with the Platform API Server, and the Platform CLI (olcnectl).

  2. Prepare the Kubernetes nodes: The Kubernetes control plane and worker nodes must to be set up with the Platform Agent.

  3. Set up a load balancer: If you're deploying a highly available Kubernetes cluster, set up a load balancer. You can set up an external load balancer, or use the container-based load balancer deployed by the Platform CLI.

  4. Set up X.509 Certificates: X.509 Certificates are used to provide secure communication between the Kubernetes nodes. You must set up the certificates before you create an environment and perform a deployment.

  5. Start the services: Start the Platform API Server and Platform Agent services on nodes using the X.509 Certificates.

  6. Create an environment: Create an environment into which you can install the Kubernetes module and any other optional modules.

  7. Deploy modules: Deploy the Kubernetes module and any other optional modules.

Setting up the Nodes

This section discusses setting up nodes to use in an Oracle Cloud Native Environment. The nodes are used to form a Kubernetes cluster.

An operator node is used to perform the deployment of the Kubernetes cluster using the Platform CLI and the Platform API Server. An operator node might be a node in the Kubernetes cluster, or a separate host. In examples in this book, the operator node is a separate host, and not part of the Kubernetes cluster.

On each Kubernetes node (both control plane and worker nodes) the Platform Agent must be installed. Before you set up the Kubernetes nodes, you must prepare them. For information on preparing the nodes, see Prerequisites.

During the installation of the required packages on, an olcne user is created. This user is used to start the Platform API Server or Platform Agent services and has the minimum OS privileges to perform that task. Don't use the olcne user for any other purpose.

Setting up the Operator Node

This section discusses setting up the operator node. The operator node is a host that's used to perform and manage the deployment of environments, including deploying the Kubernetes cluster.

To set up the operator node:

  1. On the operator node, install the Platform CLI, Platform API Server, and utilities.

    sudo dnf install olcnectl olcne-api-server olcne-utils
  2. Enable the olcne-api-server service, but do not start it. The olcne-api-server service is started when you configure the X.509 Certificates.

    sudo systemctl enable olcne-api-server.service 

    For information on configuration options for the Platform API Server, see Configuring the Platform API Server.

Setting up Kubernetes Nodes

This section discusses setting up the nodes to use in a Kubernetes cluster. Perform these steps on both Kubernetes control plane and worker nodes.

To set up the Kubernetes nodes:

  1. On each node to be added to the Kubernetes cluster, install the Platform Agent package and utilities.

    sudo dnf install olcne-agent olcne-utils
  2. Enable the olcne-agent service, but do not start it. The olcne-agent service is started when you configure the X.509 Certificates.

    sudo systemctl enable olcne-agent.service 

    For information on configuration options for the Platform Agent, see Configuring the Platform Agent.

  3. If the docker service is running, stop, and disable it.

    sudo systemctl disable --now docker.service
  4. If the containerd service is running, stop, and disable it.

    sudo systemctl disable --now containerd.service

Configuring a Proxy Server

If you use a proxy server, configure it with CRI-O on each Kubernetes node.

On each Kubernetes node:

  1. Create a CRI-O systemd configuration directory:

    sudo mkdir /etc/systemd/system/crio.service.d
  2. Create a file named proxy.conf in the directory, and add the proxy server information. For example:

    [Service]
    Environment="HTTP_PROXY=http://proxy.example.com:3128"
    Environment="HTTPS_PROXY=https://proxy.example.com:3128"
    Environment="NO_PROXY=mydomain.example.com"
  3. If you're also installing Calico (as a module or as the Kubernetes Container Network Interface), or the Multus module, add the Kubernetes service IP (the default is 10.96.0.1) to the NO_PROXY variable:

    Environment="NO_PROXY=mydomain.example.com,10.96.0.1"

Setting up a Load Balancer for Highly Available Clusters

A highly available (HA) cluster needs a load balancer to provide high availability of control plane nodes. A load balancer communicates with the Kubernetes API Server on the control plane nodes.

The methods of setting up a load balancer to create an HA cluster are:

  • Using an external load balancer instance.

  • Using a load balancer provided by a cloud infrastructure, for example an Oracle Cloud Infrastructure load balancer.

  • Using the internal load balancer that can be deployed by the Platform CLI on the control plane nodes.

Setting up an External Load Balancer

To use an external load balancer implementation, it must be set up and ready to use before you perform an HA cluster deployment. The load balancer hostname and port is entered as an option when you create the Kubernetes module. The load balancer must be set up with the following configuration:

  • The listener listening on TCP port 6443.

  • The distribution set to round robin.

  • The target set to TCP port 6443 on the control plane nodes.

  • The health check set to TCP.

For more information on setting up an external load balancer, see Oracle Linux 9: Setting Up Load Balancing or Oracle Linux 8: Setting Up Load Balancing.

Setting up a Load Balancer on Oracle Cloud Infrastructure

To set up a load balancer on Oracle Cloud Infrastructure:

  1. Sign-in to Oracle Cloud Infrastructure.

  2. Create a load balancer.

  3. Add a backend set to the load balancer using weighted round robin. Set the health check to be TCP port 6443.

  4. Add the control plane nodes to the backend set. Set the port for the control plane nodes to port 6443.

  5. Create a listener for the backend set using TCP port 6443.

For more information on setting up a load balancer in Oracle Cloud Infrastructure, see the Oracle Cloud Infrastructure documentation.

Setting up the Internal Load Balancer

Important:

Using the internal load balancer is not recommended for production deployments. Instead, use a correctly configured load-balancer that's outside the Kubernetes cluster, for example an own external load balancer, or a load balancer provided by a cloud infrastructure, such as an Oracle Cloud Infrastructure load balancer.

To use the internal load balancer deployed by the Platform CLI, you need to perform the following steps to prepare the control plane nodes.

To prepare control plane nodes for the load balancer deployed by the Platform CLI:

  1. Set up the control plane nodes as described in Setting up Kubernetes Nodes.

  2. Use the --virtual-ip option when creating the Kubernetes module to nominate a virtual IP address that can be used for the primary control plane node. This IP address must not be in use on any node and is assigned dynamically to the control plane node assigned as the primary controller by the load balancer. If the primary node fails, the load balancer reassigns the virtual IP address to another control plane node, and that, in turn, becomes the primary node.

    Tip:

    If you're deploying to Oracle Cloud Infrastructure virtual instances, you can assign a secondary private IP address to the VNIC on a control plane node to create a virtual IP address. Ensure you list this control plane node first when creating the Kubernetes module. For more information on secondary private IP addresses, see the Oracle Cloud Infrastructure documentation.

  3. On each control plane node, open port 6444. When you use a virtual IP address, the Kubernetes API server port is changed from the default of 6443 to 6444. The load balancer listens on port 6443 and receives the requests and passes them to the Kubernetes API server.

    sudo firewall-cmd --add-port=6444/tcp
    sudo firewall-cmd --add-port=6444/tcp --permanent
  4. On each control plane node, enable the Virtual Router Redundancy Protocol (VRRP) protocol:

    sudo firewall-cmd --add-protocol=vrrp
    sudo firewall-cmd --add-protocol=vrrp --permanent

Setting up X.509 Certificates for Kubernetes Nodes

Communication between the Kubernetes nodes is secured using X.509 certificates.

Before you deploy Kubernetes, you need to configure the X.509 certificates used to manage the communication between the nodes. You can use:

  • Vault: The certificates are managed using the HashiCorp Vault secrets manager. Certificates are created during the deployment of the Kubernetes module. You need to create a token authentication method for Oracle Cloud Native Environment.

  • CA Certificates: Using certificates signed by a trusted Certificate Authority (CA), and copied to each Kubernetes node before the deployment of the Kubernetes module. These certificates are unmanaged and must be renewed and updated manually.

  • Private CA Certificates: Using generated certificates, signed by a private CA you set up, and copied to each Kubernetes node before the deployment of the Kubernetes module. These certificates are unmanaged and must be renewed and updated manually. A script is provided to help you set this up.

A software-based secrets manager is recommended to manage these certificates. The HashiCorp Vault secrets manager can be used to generate, assign, and manage the certificates. We recommend you implement an instance of Vault, setting up the appropriate security for the environment.

For more information on installing and setting up Vault, see the Hashicorp documentation.

If you don't want to use Vault, you can use certificates, signed by a trusted CA, and copied to each node. A script is provided to generate a private CA to generate certificates for each node. This script also gives you the commands needed to copy the certificates to the nodes.

Setting up Vault Authentication

To configure Vault for use with Oracle Cloud Native Environment, set up a Vault token with the following properties:

  • A PKI secret engine with a CA certificate or intermediate, at olcne_pki_intermediary.

  • A role under that PKI, named olcne, configured to not require a common name, and allow any name.

  • A token authentication method and policy that attaches to the olcne role and can request certificates.

For information on setting up the Vault PKI secrets engine to generate dynamic X.509 certificates, see:

https://developer.hashicorp.com/vault/docs/secrets/pki

For information on creating Vault tokens, see:

https://developer.hashicorp.com/vault/docs/commands/token/create

Setting up CA Certificates

This section shows you how to use certificates signed by a trusted CA, without using a secrets manager such as Vault. To use certificates, copy them to all Kubernetes nodes, and to the Platform API Server node.

To ensure the Platform Agent on each Kubernetes node, and the Platform API Server have access to certificates, ensure you copy them into the /etc/olcne/certificates/ directory on each node. The path to the certificates is used when setting up the Platform Agent and Platform API Server, and when creating an environment.

The examples in this book use the /etc/olcne/certificates/ directory for certificates. For example:

  • CA Certificate: /etc/olcne/certificates/ca.cert

  • Node Key: /etc/olcne/certificates/node.key

  • Node Certificate: /etc/olcne/certificates/node.cert

Setting up Private CA Certificates

This section shows you how to create a private CA, and use that to generate signed certificates for the nodes. This section also contains information on copying the certificates to the nodes. This section also contains information on generating certificates for nodes that you want to scale into a Kubernetes cluster.

Creating and Copying Certificates

This section shows you how to create a private CA, and use that to generate signed certificates for the nodes.

To generate certificates using a private CA:

  1. On the operator node, use the /etc/olcne/gen-certs-helper.sh script to generate a private CA and certificates for the nodes.

    The gen-certs-helper.sh script saves the certificate files to the directory from which you run the script. The gen-certs-helper.sh script also creates a script you can use to copy the certificates to each Kubernetes node (olcne-tranfer-certs.sh). If you run the gen-certs-helper.sh script from the /etc/olcne directory, it uses the directory /etc/olcne/configs/certificates/ to save generated files.

    Note:

    You can optionally use the --cert-dir option to specify the location to save the certificates and transfer script. If you use the --cert-dir option, ensure you change the path in this section to the path you specify.

    Provide the nodes for which you want to create certificates using the --nodes option. Create a certificate for each node that runs the Platform API Server or Platform Agent. That is, for the operator node, and each Kubernetes node. If you're deploying a highly available Kubernetes cluster using a virtual IP address (using the internal load balancer), you don't need to create a certificate for the virtual IP address.

    Provide the private CA information using the --cert-request* options (some, but not all, of these options are shown in the example). You can get a list of all command options using the gen-certs-helper.sh --help command.

    For example:

    cd /etc/olcne
    sudo ./gen-certs-helper.sh \
    --cert-request-organization-unit "My Company Unit" \
    --cert-request-organization "My Company" \
    --cert-request-locality "My Town" \
    --cert-request-state "My State" \
    --cert-request-country US \
    --cert-request-common-name cloud.example.com \
    --nodes operator.example.com,control1.example.com,worker1.example.com,worker2.example.com,\
    worker3.example.com

    The certificates and keys for each node are generated and saved to the directory:

    /etc/olcne/configs/certificates/tmp-olcne/node/

    Where node is the name of the node for which the certificate was generated.

    The private CA certificate and key files are saved to the directory:

    /etc/olcne/configs/certificates/production/

  2. Copy the certificate generated for a node from the /etc/olcne/configs/certificates/tmp-olcne/node/ directory to that node.

    The examples in this book use the /etc/olcne/certificates/ directory as the location for certificates on nodes. This is the recommended location for the certificates on nodes. The path to the certificates is used when setting up the Platform Agent or Platform API Server on each node, and when creating an environment.

    A script is created to help you copy the certificates to the nodes, /etc/olcne/configs/certificates/olcne-tranfer-certs.sh. You can use this script and change it to suit the environment, or transfer the certificates to the nodes using some other method.

    Important:

    Ensure the USER variable in the olcne-tranfer-certs.sh script is set to the user set up with SSH key-based authentication to the nodes. See Setting Up SSH Key-based Authentication.

    Run the script to copy the certificates to the nodes:

    bash -ex /etc/olcne/configs/certificates/olcne-tranfer-certs.sh

    This script copies the certificates for each node to the following directory on nodes:

    /etc/olcne/configs/certificates/production/

    Important:

    If you use the olcne-tranfer-certs.sh script to copy the certificate files, they're copied to a different directory than is used in examples in this documentation.

    Ensure you use this path (/etc/olcne/configs/certificates/production/) when starting the Platform API Server and Platform Agent services, and when creating an environment. This path differs from the standard path of /etc/olcne/certificates/ which is used in examples in this documentation.

  3. Ensure the olcne user on each node that runs the Platform API Server or Platform Agent can read the directory in which you copy the certificates. If you used the default path for certificates of /etc/olcne/certificates/, the olcne user has read access.

    If you used a different path, check the olcne user can read the certificate path. On the operator node, and each Kubernetes node, run:

    sudo -u olcne ls /etc/olcne/configs/certificates/production/

    A list of the certificates and key for the node is displayed.

    ca.cert  node.cert  node.key
Creating Additional Certificates

This section contains information about generating certificates for extra nodes that you want to add to a Kubernetes cluster. This section shows you how to generate certificates using the /etc/olcne/gen-certs-helper.sh script on the operator node.

To generate certificates using a private CA:

  1. On the operator node, generate new certificates for the nodes using the /etc/olcne/gen-certs-helper.sh script. For example:

    cd /etc/olcne
    sudo ./gen-certs-helper.sh \
    --cert-request-organization-unit "My Company Unit" \
    --cert-request-organization "My Company" \
    --cert-request-locality "My Town" \
    --cert-request-state "My State" \
    --cert-request-country US \
    --cert-request-common-name cloud.example.com \
    --nodes control4.example.com,control5.example.com \
    --byo-ca-cert /etc/olcne/configs/certificates/production/ca.cert \
    --byo-ca-key /etc/olcne/configs/certificates/production/ca.key

    The private key to generate the new certificates is specified with the --byo-ca-key option and the CA certificate with the --byo-ca-cert option. In this example, the private CA certificate and key files are in the directory:

    /etc/olcne/configs/certificates/production/

    The location might be different if you used the --cert-dir option of the gen-certs-helper.sh script when creating the original certificates.

  2. When you have generated the new certificates, copy them to the nodes. A script is created to help you copy the certificates to the nodes, olcne-tranfer-certs.sh. You can use this script and change it to suit the environment, or transfer the certificates to the nodes using some other method.

    Run the script to copy the certificates to the nodes:

    bash -ex /etc/olcne/configs/certificates/olcne-tranfer-certs.sh

Setting up X.509 Certificates for the externalIPs Kubernetes Service

When you deploy Kubernetes, a service is deployed to the cluster that controls access to externalIPs in Kubernetes services. The service is named externalip-validation-webhook-service and runs in the externalip-validation-system namespace. This Kubernetes service requires X.509 certificates be set up before deploying Kubernetes. You can use Vault to generate the certificates, or use existing certificates for this purpose. You can also generate certificates using the gen-certs-helper.sh script. The certificates must be available on the operator node.

The examples in this book use the /etc/olcne/certificates/restrict_external_ip/ directory for these certificates.

Setting up Vault Certificates

You can use Vault to generate a certificates for the externalIPs Kubernetes service. The Vault instance must be configured in the same way as described in Setting up Vault Authentication.

You need to generate certificates for two nodes, named:

externalip-validation-webhook-service.externalip-validation-system.svc

externalip-validation-webhook-service.externalip-validation-system.svc.cluster.local

The certificate information must be generated in PEM format.

For example:

vault write olcne_pki_intermediary/issue/olcne \
    alt_names=externalip-validation-webhook-service.externalip-validation-system.svc,\
externalip-validation-webhook-service.externalip-validation-system.svc.cluster.local \
    format=pem_bundle

The output is displayed. Look for the section that starts with certificate. This section contains the certificates for the node names (set with the alt_names option). Save the output in this section to a file named node.cert. The file looks similar to:

-----BEGIN RSA PRIVATE KEY-----
MIIEpQIBAAKCAQEAymg8uHy+mpwlelCyC4WrnfLwUmJ5vZmSos85QnIlZvyycUPK
...
X3c8LNaJDfQx1wKfTc/c0czBhHYxgwfau0G6wjqScZesPi2xY0xyslE=
-----END RSA PRIVATE KEY-----
-----BEGIN CERTIFICATE-----
MIID2TCCAsGgAwIBAgIUZ/M/D7bAjhyGx7DivsjBb9oeLhAwDQYJKoZIhvcNAQEL
...
9bRwnen+JrxUn4GV59GtsTiqzY6R2OKPm+zLl8E=
-----END CERTIFICATE-----
-----BEGIN CERTIFICATE-----
MIIDnDCCAoSgAwIBAgIUMapl4aWnBXE/02qTW0zOZ9aQVGgwDQYJKoZIhvcNAQEL
...
kV8w2xVXXAehp7cg0BakVA==
-----END CERTIFICATE-----

Look for the section that starts with issuing_ca. This section contains the CA certificate. Save the output in this section to a file named ca.cert. The file looks similar to:

-----BEGIN CERTIFICATE-----
MIIDnDCCAoSgAwIBAgIUMapl4aWnBXE/02qTW0zOZ9aQVGgwDQYJKoZIhvcNAQEL
...
kV8w2xVXXAehp7cg0BakVA==
-----END CERTIFICATE-----

Look for the section that starts with private_key. This section contains the private key for the node certificates. Save the output in this section to a file named node.key. The file looks similar to:

-----BEGIN RSA PRIVATE KEY-----
MIIEpQIBAAKCAQEAymg8uHy+mpwlelCyC4WrnfLwUmJ5vZmSos85QnIlZvyycUPK
...
X3c8LNaJDfQx1wKfTc/c0czBhHYxgwfau0G6wjqScZesPi2xY0xyslE=
-----END RSA PRIVATE KEY-----

Copy the three files (node.cert, ca.cert and node.key) to the operator node and set the ownership of the files as described in Setting up CA Certificates.

Setting up CA Certificates

If you're using existing certificates, copy them to a directory under /etc/olcne/certificates/ on the operator node. For example:

  • CA Certificate: /etc/olcne/certificates/restrict_external_ip/ca.cert

  • Node Key: /etc/olcne/certificates/restrict_external_ip/node.key

  • Node Certificate: /etc/olcne/certificates/restrict_external_ip/node.cert

Copy these certificates to a different location on the operator node than the certificates and keys used for the Kubernetes nodes as set up in Setting up X.509 Certificates for Kubernetes Nodes. This makes sure you don't overwrite those certificates and keys. You need to generate certificates for two nodes, named:

externalip-validation-webhook-service.externalip-validation-system.svc

externalip-validation-webhook-service.externalip-validation-system.svc.cluster.local

Save the certificates for these two nodes as a single file named node.cert.

Ensure the permissions of the directory where the certificates are saved can be read by the user on the operator node that you intend to use to run the olcnectl commands to install Kubernetes. In this example the opc user is to be used on the operator node, so ownership of the directory is set to the opc user:

sudo chown -R opc:opc /etc/olcne/certificates/restrict_external_ip/

Setting up Private CA Certificates

You can use the gen-certs-helper.sh script to generate the certificates. Run the script on the operator node and enter the options required for the environment.

The --cert-dir option sets the location where the certificates are to be saved.

The --nodes option must be set to the name of the Kubernetes service, as shown:

--nodes externalip-validation-webhook-service.externalip-validation-system.svc,externalip-validation-webhook-service.externalip-validation-system.svc.cluster.local

Use the --one-cert option to save the certificates for the two service names to a single file.

cd /etc/olcne
sudo ./gen-certs-helper.sh \
--cert-dir /etc/olcne/certificates/restrict_external_ip/ \
--cert-request-organization-unit "My Company Unit" \
--cert-request-organization "My Company" \
--cert-request-locality "My Town" \
--cert-request-state "My State" \
--cert-request-country US \
--cert-request-common-name cloud.example.com \
--nodes externalip-validation-webhook-service.externalip-validation-system.svc,\
externalip-validation-webhook-service.externalip-validation-system.svc.cluster.local \
--one-cert

You can use the same CA certificate and private key you used to generate the Kubernetes node certificates by using the --byo-ca-cert and --byo-ca-key options. For example, if you used the gen-certs-helper.sh script to generate the node certificates, add the following lines to the command:

--byo-ca-cert /etc/olcne/configs/certificates/production/ca.cert \
--byo-ca-key /etc/olcne/configs/certificates/production/ca.key

In this example, the certificates are created and saved in the directory:

/etc/olcne/certificates/restrict_external_ip/production

Ensure the permissions of the output directory where the certificates are saved can be read by the user on the operator node that you intend to use use to run the olcnectl commands to install Kubernetes. In this example the opc user is to be used on the operator node, so ownership of the directory is set to the opc user. For example:

sudo chown -R opc:opc /path/        

If you used the gen-certs-helper.sh script as shown in this section, run:

sudo chown -R opc:opc /etc/olcne/certificates/restrict_external_ip/production

Starting the Platform API Server and Platform Agent Services

This section discusses using certificates to set up secure communication between the Platform API Server and the Platform Agent on nodes in the cluster. You can set up secure communication using certificates managed by Vault, or using certificates copied to each node. You must configure the Platform API Server and the Platform Agent to use the certificates when you start the services.

For information on setting up the certificates with Vault, see Setting up X.509 Certificates for Kubernetes Nodes.

For information on creating a private CA to sign certificates that can be used during testing, see Setting up Private CA Certificates.

Starting the Services Using Vault

This section shows you how to set up the Platform API Server and Platform Agent services to use certificates managed by Vault.

To set up and start the services using Vault:

  1. On the operator node, use the /etc/olcne/bootstrap-olcne.sh script to configure the Platform API Server to retrieve and use a Vault certificate. Use the bootstrap-olcne.sh --help command for a list of options for this script. For example:

    sudo /etc/olcne/bootstrap-olcne.sh \
    --secret-manager-type vault \
    --vault-token s.3QKNuRoTqLbjXaGBOmO6Psjh \
    --vault-address https://192.0.2.20:8200 \
    --force-download-certs \
    --olcne-component api-server

    The certificates are generated and downloaded from Vault.

    By default, the certificates are saved to the /etc/olcne/certificates/ directory. You can optionally specify a path for the certificates, for example, by including the following options in the bootstrap-olcne.sh command:

    --olcne-ca-path /path/ca.cert \
    --olcne-node-cert-path /path/node.cert \
    --olcne-node-key-path /path/node.key \

    The Platform API Server is configured to use the certificates, and started. You can confirm the service is running using:

    systemctl status olcne-api-server.service 
  2. On each Kubernetes node, use the /etc/olcne/bootstrap-olcne.sh script to configure the Platform Agent to retrieve and use a certificate. For example:

    sudo /etc/olcne/bootstrap-olcne.sh \
    --secret-manager-type vault \
    --vault-token s.3QKNuRoTqLbjXaGBOmO6Psjh \
    --vault-address https://192.0.2.20:8200 \
    --force-download-certs \
    --olcne-component agent

    The certificates are generated and downloaded from Vault.

    By default, the certificates are saved to the /etc/olcne/certificates/ directory. You can optionally specify a path for the certificates, for example, by including the following options in the bootstrap-olcne.sh command:

    --olcne-ca-path /path/ca.cert \
    --olcne-node-cert-path /path/node.cert \
    --olcne-node-key-path /path/node.key \

    The Platform Agent is configured to use the certificates, and started. You can confirm the service is running using:

    systemctl status olcne-agent.service 

Starting the Services Using Certificates

This section shows you how to set up the Platform API Server and Platform Agent services to use certificates which have been copied to each node. This example assumes the certificates are available on all nodes in the /etc/olcne/certificates/ directory.

To set up and start the services using certificates:

  1. On the operator node, use the /etc/olcne/bootstrap-olcne.sh script to configure the Platform API Server to use the certificates. Use the bootstrap-olcne.sh --help command for a list of options for this script. For example:

    sudo /etc/olcne/bootstrap-olcne.sh \
    --secret-manager-type file \
    --olcne-component api-server

    If the certificates are in a directory other than /etc/olcne/certificates/, add the location of the certificates using the following options, for example:

    --olcne-node-cert-path /etc/olcne/configs/certificates/production/node.cert \
    --olcne-ca-path /etc/olcne/configs/certificates/production/ca.cert \
    --olcne-node-key-path /etc/olcne/configs/certificates/production/node.key \

    The Platform API Server is configured to use the certificates, and started. You can confirm the service is running using:

    systemctl status olcne-api-server.service 
  2. On each Kubernetes node, use the /etc/olcne/bootstrap-olcne.sh script to configure the Platform Agent to use the certificates. For example:

    sudo /etc/olcne/bootstrap-olcne.sh \
    --secret-manager-type file \
    --olcne-component agent

    If the certificates are in a directory other than /etc/olcne/certificates/, add the location of the certificates using the following options, for example:

    --olcne-node-cert-path /etc/olcne/configs/certificates/production/node.cert \
    --olcne-ca-path /etc/olcne/configs/certificates/production/ca.cert \
    --olcne-node-key-path /etc/olcne/configs/certificates/production/node.key \

    The Platform Agent is configured to use the certificates, and started. You can confirm the service is running using:

    systemctl status olcne-agent.service