copyright | lastupdated | keywords | subcollection | ||
---|---|---|---|---|---|
|
2024-09-26 |
satellite, hybrid, multicloud, os upgrade, operating system, security patch |
satellite |
{{site.data.keyword.attribute-definition-list}}
{: #host-update-location}
Get the latest OpenShift Container Platform, operating system, and security patches by detaching the hosts from your location, reloading the host machine in your infrastructure provider, then reattaching and reassigning the hosts to your {{site.data.keyword.satelliteshort}} location control plane. {: shortdesc}
{: #host-update-considerations}
Review the following considerations before you update your {{site.data.keyword.satelliteshort}} location control plane hosts. {: shortdesc}
How can I tell if a version update is available? : Version updates for hosts become available as the {{site.data.keyword.openshiftlong_notm}} team packages new versions for worker nodes. Typically, worker node version updates are released every two weeks. : You might check for a version update to meet your required security cadence, such as updates on a monthly or bi-monthly basis. To review available version updates, see the Version change log for {{site.data.keyword.openshiftlong_notm}}.
Does updating the hosts impact the cluster masters that run in the {{site.data.keyword.satelliteshort}} location control plane? : Yes. Because the cluster masters run in your {{site.data.keyword.satelliteshort}} location control plane, make sure that you have enough extra hosts in your control plane before you update any hosts. To attach extra hosts, see Attaching capacity to your {{site.data.keyword.satelliteshort}} location control plane.
Do the hosts in my {{site.data.keyword.satelliteshort}}-enabled {{site.data.keyword.cloud_notm}} services have to run the same version as my {{site.data.keyword.satelliteshort}} location control plane?
: No, the hosts that are assigned to the {{site.data.keyword.satelliteshort}} location control plane do not have to run the same version as the hosts that are assigned to {{site.data.keyword.satelliteshort}}-enabled {{site.data.keyword.cloud_notm}} services that run in the location. However, all hosts in the location must run a supported version.
: To review supported {{site.data.keyword.redhat_openshift_notm}} versions that hosts can run, see the {{site.data.keyword.openshiftlong_notm}} documentation or run ibmcloud ks versions
in the command line.
Is my {{site.data.keyword.satelliteshort}} location control plane subdomain still reachable when I update the hosts?
: If your location subdomain was created automatically for you, the host IP addresses that are registered for the subdomain are automatically managed for you, such as during an update.
: If you manually registered the host IP addresses for the location subdomain with the ibmcloud sat location dns register
command when you created the {{site.data.keyword.satelliteshort}} location control plane, make sure that you attach three hosts to the control plane before you begin, and manually register these host IPs for the subdomain. Now, these new hosts process requests for the location. Then, you can update the hosts that were previously used for the subdomain.
{: #host-update-cp-procedure}
To apply a version update, you must detach, reload, and reattach your host to the {{site.data.keyword.satelliteshort}} location. Then, you can assign the host back to the control plane or to another resource that runs in the location. {: shortdesc}
When you update control plane hosts, do not assign or remove multiple hosts at the same time as doing so may break the control plane. You must wait for a host assignment or removal to complete before assigning or removing another host. {: important}
- Optional: Attach and assign extra hosts to the {{site.data.keyword.satelliteshort}} location control plane to handle the compute capacity while your existing hosts are updating.
- Remove the host that you want to update from your {{site.data.keyword.satelliteshort}} location.
- Follow the guidelines from your infrastructure provider to reload the operating system of your host.
- Attach the host back to your {{site.data.keyword.satelliteshort}} location.
- Assign the host back to your {{site.data.keyword.satelliteshort}} location control plane.
As part of the bootstrapping process, the latest images and {{site.data.keyword.redhat_openshift_notm}} version that matches the cluster master is updated for your host and SSH access to the host is removed.
{: #update-api-server}
To update your Kubernetes API server, run the cluster master update
command.
{: #host-key-reset}
Reset the key that the control plane uses to communicate with all the hosts in the {{site.data.keyword.satelliteshort}} location. {: shortdesc}
When you create a location, an API key is generated that the {{site.data.keyword.satelliteshort}} API server uses to attach hosts to the location and assign hosts to the control plane or to {{site.data.keyword.satelliteshort}}-enabled {{site.data.keyword.cloud_notm}} services. The generated API key must be treated and protected as sensitive information. This key expires every 365 days. When the key expires, your unassigned hosts enter an unresponsive
status. To attach additional hosts, you must download a new host attach script from the location and use it to attach hosts. Your existing, assigned hosts are not affected.
You can reset the existing host key before the key expires. To reset your host key for your {{site.data.keyword.satelliteshort}} location, run the ibmcloud sat host attach
command with the --reset-key
option.
ibmcloud sat host attach --location <location_name> --reset-key
{: pre}
If you are using Terraform with your {{site.data.keyword.satelliteshort}} location and your host key is reset, either because it expired or you manually reset it, you are then prompted to replace all your hosts, including hosts that are assigned. You can avoid this issue by updating your Terraform script. For more information, see Why is my host attach script triggering a state change in Terraform?. {: note}
{: #migrate-cp-rhel8}
Support for RHEL 7 for Satellite control plane hosts is deprecated and reaches end-of-life on March 2nd, 2023. After that date, you cannot assign any RHEL 7 hosts to the control plane of a location. Existing RHEL 7 hosts cannot be updated and must be replaced with RHEL 8 hosts.
To replace your RHEL 7 control plane hosts, you must first add a RHEL 8 host to replace it. After you attach a RHEL 8 host to your location and assign it to the control plane, you can remove a RHEL 7 host in the same zone from the control plane.
Before migrating to RHEL 8, note that Red Hat CoreOS (RHCOS) is now a supported OS in RHCOS enabled locations. RHCOS is a minimal, secure OS with tight integration into the {{site.data.keyword.redhat_openshift_notm}} ecosystem and is capable of doing in-place upgrades of major versions. Before you can use RHCOS hosts in your location, you must create a Red Hat CoreOS enabled location. If you already have a location that is RHCOS enabled, consider adding RHCOS hosts instead. To create a Red Hat CoreOS enabled Satellite location, see Understanding locations. {: tip}
-
Identify which hosts you want to replace and which zones they are located in by running the following command. Look for the
"os": "RHEL7"
label or a host without anos
label in the output file.ibmcloud sat hosts --location LOCATION_ID --output json
{: pre}
The following example output displays the
"os": "RHEL7"
label. This host is located in theus-south-1
zone.[ { "id": " LOCATION_ID", "name": "LOCATION_NAME", "labels": { ... "os": "RHEL7" ... "state": "assigned", "assignment": { "zone": "us-south-1", }, }, ... ]
{: screen}
-
Download the host attach script for the location.
ibmcloud sat host attach --location LOCATION_ID
{: pre}
-
Provision a RHEL 8 host for your Satellite location in the identified zone and run the host attach script on that host. This process varies, depending on your infrastructure. For more information, see Attaching hosts to your location.
-
After your RHEL 8 host is attached to the location, you can assign it to the location control plane by using the
host assign
command.ibmcloud sat host assign --host HOST_NAME --location LOCATION_ID --cluster infrastructure --zone ZONE
{: pre}
-
After you assign the RHEL 8 host to the control plane, you can remove a RHEL 7 host from the same zone that the RHEL 8 host was added to.
ibmcloud sat host rm --location LOCATION_ID --host HOST_NAME
{: pre}
Repeat these steps until all your RHEL 7 control plane hosts are replaced by RHEL 8 hosts and removed from the location.
If you have clusters running RHEL 7 hosts in your location, you might need to migrate your worker nodes. For more information, follow the migration guide for your cluster version. {: tip}