Single Node Upgrade from 4.50 to 4.51¶
This guide will lead you through the steps specific for upgrading a NetEye Single Node installation from version 4.50 to 4.51.
Upgrading a NetEye Single Node takes a nontrivial amount of time. Granted the environment connectivity is seamless, the upgrade procedure may take up to 30 minutes.
Warning
Remember that you must upgrade sequentially without skipping versions, therefore an upgrade to 4.51 is possible only from 4.50; for example, if you have version 4.27, you must first upgrade to the 4.28, then 4.29, and so on.
Breaking Changes¶
NetEye Kubernetes Operator¶
This release will introduce a brand new NetEye Operator which is the component responsible for managing the NetEye
deployment in Kubernetes. All configuration and management is made by the standard NetEye CLI procedures such as
neteye install and neteye upgrade, but you can configure and override the default configuration by
editing the /etc/neteye-environment.yaml file. NetEye CLI procedures will automatically source this configuration
file and apply desired changes to the Operator. This upgrade does not require users to update the configuration
beforehand since default values will be applied. For the full list of configurable parameters, please refer to the
/usr/share/neteye/setup/neteye-environment.yaml.tpl file. To apply the configuration changes during normal
operation, you can use the neteye install --restrict-services-to neteye-operator command. This command will
apply the configuration changes to the Operator without affecting the other services.
Prerequisites¶
Before starting the upgrade, carefully read the latest release notes on NetEye’s blog and check the features that will change or be deprecated.
All NetEye packages installed on a currently running version must be updated according to the update procedure prior to running the upgrade.
NetEye must be up and running in a healthy state.
Disk Space required:
3GB for
/and/var150MB for
/boot
If the NetEye Elastic Stack module is installed:
The rubygems.org domain should be reachable by the NetEye Master only during the update/upgrade procedure. This domain is needed to update additional Logstash plugins and thus is required only if you manually installed any Logstash plugin that is not present by default.
There is a number of configuration items that should not be modified in order to avoid issues during the update/upgrade of your instance. Please check out Protected Configuration Items for details.
NetEye services are progressively moving to Kubernetes to improve scalability, security, resource management and the speed of updates.
Access to the following domains is strictly required for upgrading to NetEye 4.51: Please ensure that all NetEye nodes can reach these domains over HTTPS (TCP port 443):
Domain
Port
Intended Use
ghcr.io
443 TCP
GitHub container images
api.github.com
443 TCP
GitHub container images
pkg-containers.githubusercontent.com
443 TCP
GitHub container images
quay.io
443 TCP
Quay container images
cdn01.quay.io
443 TCP
Quay container images
docker.io
443 TCP
Docker Hub container images
hub.docker.com
443 TCP
Docker Hub container images
auth.docker.io
443 TCP
Docker Hub container images
index.docker.io
443 TCP
Docker Hub container images
registry-1.docker.io
443 TCP
Docker Hub container images
production.cloudfront.docker.com
443 TCP
Docker Hub container images
*.cloudflarestorage.com
443 TCP
Container images
rpm.rancher.io
443 TCP
Rancher packages
docker.elastic.co
443 TCP
Elastic container images (only with the Elastic Stack)
docker-auth.elastic.co
443 TCP
Elastic container images (only with the Elastic Stack)
1. Run the Upgrade¶
To perform the upgrade, run from the command line the following command:
neteye# (nohup neteye upgrade &) && tail --retry -f nohup.out
After the command was executed, the output will inform if the upgrade was successful or not:
In case of successful upgrade you might need to restart NetEye to properly apply the upgrades. If the reboot is not needed, please skip the next step.
In case the command fails refer to the troubleshooting section.
2. Reboot¶
Restart NetEye to apply the upgrades correctly.
neteye# neteye node reboot
3. Additional Tasks¶
Keycloak in Kubernetes and the NetEye Operator¶
After a successful upgrade, you will be required to perform and verify the migration of the Keycloak systemd/pcs instance to the new Keycloak deployment in Kubernetes, which will be an upgrade prerequisite check for future releases. To automate this process, the product ships 3 utility tools and scripts that allow you to perform the validation and migration.
neteye config auth switch-to-kube: This command will switch the authentication configuration from the systemd/pcs instance to the new Keycloak deployment in Kubernetes by updating the necessary configuration files. After successful execution, the systemd/pcs instance will be disabled, and you will be required to test the new environment to ensure that authentication is working as expected.
neteye config auth rollback-from-kube: Should any issues arise with the new Keycloak deployment in Kubernetes, this command will allow you to roll back the authentication configuration to the previous systemd/pcs instance by restoring the necessary configuration files.
neteye config auth cleanup-keycloak-pcs: Finally, once you are satisfied with the new Keycloak deployment, this command will clean up the old systemd/pcs instance by removing any remaining configuration files and data related to the previous Keycloak deployment. Backups of the old configuration files will be created in the
/root/keycloak_upgrade_<timestamp>.bckdirectory. This step is non-reversible, and you will not be able to roll back to the previous systemd/pcs instance after executing this command.