From 28155f62514fa95d8da2c41a021a370af5c23cca Mon Sep 17 00:00:00 2001 From: Natalia Ivakina Date: Tue, 23 Sep 2025 16:46:19 +0200 Subject: [PATCH] Add a new page on how to restart a pod on Kubernetes --- modules/ROOT/content-nav.adoc | 1 + modules/ROOT/pages/kubernetes/index.adoc | 1 + .../operations/change-configuration.adoc | 33 +++++++++++++++++++ .../pages/kubernetes/operations/index.adoc | 1 + 4 files changed, 36 insertions(+) create mode 100644 modules/ROOT/pages/kubernetes/operations/change-configuration.adoc diff --git a/modules/ROOT/content-nav.adoc b/modules/ROOT/content-nav.adoc index 2da657536..ecbdbe003 100644 --- a/modules/ROOT/content-nav.adoc +++ b/modules/ROOT/content-nav.adoc @@ -61,6 +61,7 @@ ** xref:kubernetes/operations/index.adoc[] *** xref:kubernetes/operations/maintenance-mode.adoc[] *** xref:kubernetes/operations/reset-password.adoc[] +*** xref:kubernetes/operations/change-configuration.adoc[] *** xref:kubernetes/operations/dump-load.adoc[] *** xref:kubernetes/operations/backup-restore.adoc[] *** xref:kubernetes/operations/upgrade.adoc[] diff --git a/modules/ROOT/pages/kubernetes/index.adoc b/modules/ROOT/pages/kubernetes/index.adoc index 271e82a30..86a9b25af 100644 --- a/modules/ROOT/pages/kubernetes/index.adoc +++ b/modules/ROOT/pages/kubernetes/index.adoc @@ -28,6 +28,7 @@ This chapter describes the following: * xref:kubernetes/operations/index.adoc[Operations] -- Perform operations on a Neo4j deployment running on Kubernetes. ** xref:kubernetes/operations/maintenance-mode.adoc[Maintenance mode] ** xref:kubernetes/operations/reset-password.adoc[Reset the neo4j user password] +** xref:kubernetes/operations/change-configuration.adoc[Make a configuration change] ** xref:kubernetes/operations/dump-load.adoc[Dump and load databases (offline)] ** xref:kubernetes/operations/backup-restore.adoc[Back up and restore a single database (online)] ** xref:kubernetes/operations/upgrade.adoc[Upgrade Neo4j on Kubernetes] diff --git a/modules/ROOT/pages/kubernetes/operations/change-configuration.adoc b/modules/ROOT/pages/kubernetes/operations/change-configuration.adoc new file mode 100644 index 000000000..5d5ec572e --- /dev/null +++ b/modules/ROOT/pages/kubernetes/operations/change-configuration.adoc @@ -0,0 +1,33 @@ +:description: The page describes how to restart Neo4j pods in case of modifying ConfigMaps or secrets. + += Make a configuration change + +When you update ConfigMaps or secrets (for example, updating GDS or Bloom license values), you have to restart your Neo4j pod so that the changes take effect. + +You have two options for restarting: + +* To run the `kubectl delete pod` command as follows: ++ +[source, shell] +---- +kubectl delete pod +---- ++ +You manually delete the Neo4j pod. +Kubernetes will automatically recreate it with the updated configuration. + +* To use the `kubectl rollout restart` command: ++ +[source, shell] +---- +kubectl rollout restart statefulset/ +---- ++ +A rollout restart means a gradual recreation of a pod — the old pod is not removed entirely until the new pod is running successfully. +This process is safer and ensures that your application remains available throughout the restart process. + + +If you need to change Neo4j password, see xref:kubernetes/operations/reset-password.adoc[]. + +For information on how to install and manage plugins, refer to the xref:kubernetes/plugins.adoc[]. + diff --git a/modules/ROOT/pages/kubernetes/operations/index.adoc b/modules/ROOT/pages/kubernetes/operations/index.adoc index fc8c004d4..46f25ac9e 100644 --- a/modules/ROOT/pages/kubernetes/operations/index.adoc +++ b/modules/ROOT/pages/kubernetes/operations/index.adoc @@ -8,6 +8,7 @@ It covers the following topics: * xref:kubernetes/operations/maintenance-mode.adoc[Maintenance mode] * xref:kubernetes/operations/reset-password.adoc[Reset the neo4j user password] +* xref:kubernetes/operations/change-configuration.adoc[Make a configuration change] * xref:kubernetes/operations/dump-load.adoc[Dump and load databases (offline)] * xref:kubernetes/operations/backup-restore.adoc[Back up and restore a single database (online)] * xref:kubernetes/operations/upgrade.adoc[Upgrade Neo4j on Kubernetes]