-
Notifications
You must be signed in to change notification settings - Fork 258
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update upgrading-stack.asciidoc Pushing to save edits. * Update upgrading-stack.asciidoc * Saving to not lose edits. * Saving changes. * Lots of edits; saving. * Fix build errors * Change page nesting * Edits * Update structure --------- Co-authored-by: natasha-moore-elastic <[email protected]>
- Loading branch information
1 parent
4939c3f
commit d1df4b4
Showing
11 changed files
with
425 additions
and
108 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
docs/en/install-upgrade/upgrade-deployment-cluster.asciidoc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
[[upgrade-deployment-cluster]] | ||
== Upgrade your deployment or cluster | ||
|
||
Before you upgrade your deployment or cluster to {version}, ensure you're <<prepare-upgrade-9.0,prepared to upgrade>>. | ||
|
||
The procedures you follow to upgrade depend on whether you've installed Elastic components using Elastic-managed infrastructure or self-managed infrastructure. | ||
|
||
If you're running Elastic-managed infrastructure, your options are: | ||
|
||
* <<upgrade-elastic-stack-for-elastic-cloud,Upgrading on Elastic Cloud Hosted (ECH)>> | ||
* Upgrading on {serverless-full} (updates are automatic and require no user management) | ||
|
||
If you're running your own self-managed infrastructure—either on-prem or on public cloud—your options are: | ||
|
||
* <<upgrading-elastic-stack-on-prem,Upgrading the {stack}>> (upgrade each component individually) | ||
* <<upgrade-on-ece,Upgrading on {ece}>> (ECE) | ||
* <<upgrade-on-eck,Upgrading on {eck}>> (ECK) | ||
|
||
NOTE: Before you begin upgrading on ECE or ECK, ensure your orchestrator is compatible with {version}. | ||
|
||
|
||
|
||
|
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
[[upgrade-on-ece]] | ||
=== Upgrade on {ece} (ECE) | ||
|
||
Similar to {ecloud} Hosted, a single click in the {ecloud} console can upgrade a deployment running on ECE to a newer version. During the upgrade process, {es}, {kib}, and all of your deployment components are upgraded simultaneously. | ||
|
||
Once you're <<prepare-upgrade-9.0,prepared to upgrade>>, do the following: | ||
|
||
. Ensure your current ECE and Docker versions are https://www.elastic.co/support/matrix/#matrix_os[compatible] with {version} (the minimum required version for 9.x is ECE 3.0). If you don’t have a compatible version installed, <<upgrade-orchestrator,upgrade your orchestrator>>. | ||
. Download the most recent {ece-ref}/ece-manage-elastic-stack.html#ece_most_recent_elastic_stack_packs[stack pack] for the version you're upgrading to, then {ece-ref}/ece-manage-elastic-stack.html#ece-manage-elastic-stack-add[add the stack pack] to your installation via the Cloud UI. | ||
. Back up your data to a snapshot. First, {ece-ref}/ece-manage-repositories.html[configure a snapshot repository] to enable snapshots. | ||
|
||
[discrete] | ||
[[perform-upgrade-ece]] | ||
==== Perform the upgrade | ||
|
||
. Log in to the {ece-ref}/ece-login.html[Cloud UI]. | ||
. On the Deployments page, select your deployment. | ||
+ | ||
Narrow the list by name, ID, or choose from several other filters. To further define the list, use a combination of filters. | ||
|
||
To upgrade a deployment: | ||
|
||
. In the *Deployment version* section, click *Upgrade*. | ||
. Select version {version}. | ||
. Click *Upgrade*, then *Confirm upgrade*. The new configuration takes a few minutes to create. | ||
+ | ||
NOTE: If any incompatibilities are detected when you attempt to upgrade to {version}, the UI provides a link to the Upgrade Assistant, which checks for deprecated settings in your cluster and indices and helps you resolve them. After resolving the issues, return to the deployments page and restart the upgrade. | ||
|
||
Security realm settings:: | ||
During the upgrade process, you are prompted to update the security realm settings if your user settings include a `xpack.security.authc.realms` value. | ||
+ | ||
If the security realms are configured in `user_settings`, you'll be prompted to modify the settings: | ||
+ | ||
.. On the *Update security realm settings* window, edit the settings. | ||
+ | ||
.. Click *Update settings*. | ||
+ | ||
If the security realm settings are located in `user_settings_override`, contact Support to help you upgrade. | ||
|
||
After you're done upgrading, upgrade your ingest components in the following order: | ||
|
||
. {ls}: {logstash-ref}/upgrading-logstash.html[upgrade instructions] | ||
. {beats}: {beats-ref}/upgrading.html[upgrade instructions] | ||
. {agent}: {fleet-guide}/upgrade-elastic-agent.html[upgrade instructions] | ||
. {apm-agent}s: {observability-guide}/apm-upgrade.html[upgrade instructions] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,143 @@ | ||
[[upgrade-on-eck]] | ||
=== Upgrade on {eck} (ECK) | ||
|
||
The ECK orchestrator can safely perform upgrades to newer versions of the various {stack} resources. | ||
|
||
To upgrade on ECK, first do the following: | ||
|
||
. Ensure you're <<prepare-upgrade-9.0, prepared to upgrade>>. | ||
. Ensure the ECK version is {eck-ref}/k8s-supported.html[compatible] with the {stack} version you’re targeting. If necessary, <<upgrade-orchestrator, upgrade your orchestrator>>. | ||
|
||
[discrete] | ||
[[perform-upgrade-eck]] | ||
==== Perform the upgrade | ||
|
||
When you are ready, modify the `version` field in the resource spec to the desired stack version and the orchestrator will start the upgrade process automatically. Do this for each resource, including {es} and {kib}. In the following example, we’re modifying the version to `9.0.0`. | ||
|
||
[source,yaml,subs="attributes,+macros"] | ||
---- | ||
apiVersion: elasticsearch.k8s.elastic.co/v1 | ||
kind: Elasticsearch | ||
metadata: | ||
name: elasticsearch-sample | ||
namespace: production | ||
spec: | ||
version: 9.0.0 | ||
monitoring: | ||
metrics: | ||
elasticsearchRefs: | ||
- name: monitoring-cluster | ||
namespace: observability | ||
logs: | ||
elasticsearchRefs: | ||
- name: monitoring-cluster | ||
namespace: observability | ||
http: | ||
service: | ||
spec: | ||
type: LoadBalancer | ||
nodeSets: | ||
- name: master | ||
count: 3 | ||
config: | ||
node.roles: ["master"] | ||
xpack.ml.enabled: true | ||
node.store.allow_mmap: false | ||
volumeClaimTemplates: | ||
- metadata: | ||
name: elasticsearch-data | ||
spec: | ||
accessModes: | ||
- ReadWriteOnce | ||
resources: | ||
requests: | ||
storage: 20Gi | ||
storageClassName: standard | ||
podTemplate: | ||
metadata: | ||
labels: | ||
key: sample | ||
spec: | ||
initContainers: | ||
- name: sysctl | ||
securityContext: | ||
privileged: true | ||
command: ['sh', '-c', 'sysctl -w vm.max_map_count=262144'] | ||
containers: | ||
- name: elasticsearch | ||
resources: | ||
requests: | ||
memory: 2Gi | ||
cpu: 0.5 | ||
limits: | ||
memory: 2Gi | ||
cpu: 1 | ||
- name: data | ||
count: 3 | ||
config: | ||
node.roles: ["data", "ingest", "ml", "transform"] | ||
node.store.allow_mmap: false | ||
volumeClaimTemplates: | ||
- metadata: | ||
name: elasticsearch-data | ||
spec: | ||
accessModes: | ||
- ReadWriteOnce | ||
resources: | ||
requests: | ||
storage: 20Gi | ||
storageClassName: standard | ||
podTemplate: | ||
metadata: | ||
labels: | ||
key: sample | ||
spec: | ||
initContainers: | ||
- name: sysctl | ||
securityContext: | ||
privileged: true | ||
command: ['sh', '-c', 'sysctl -w vm.max_map_count=262144'] | ||
containers: | ||
- name: elasticsearch | ||
resources: | ||
requests: | ||
memory: 2Gi | ||
cpu: 0.5 | ||
limits: | ||
memory: 2Gi | ||
cpu: 1 | ||
--- | ||
apiVersion: kibana.k8s.elastic.co/v1 | ||
kind: Kibana | ||
metadata: | ||
name: kibana-sample | ||
namespace: production | ||
spec: | ||
version: 9.0.0 | ||
monitoring: | ||
metrics: | ||
elasticsearchRefs: | ||
- name: monitoring-cluster | ||
namespace: observability | ||
logs: | ||
elasticsearchRefs: | ||
- name: monitoring-cluster | ||
namespace: observability | ||
http: | ||
service: | ||
spec: | ||
type: LoadBalancer | ||
count: 1 | ||
elasticsearchRef: | ||
name: elasticsearch-sample | ||
---- | ||
|
||
ECK will ensure that {stack} resources are upgraded in the correct order. For more information on how the orchestrator performs upgrades and how to tune its behavior, check out {eck-ref}/k8s-orchestration.html[Nodes orchestration]. | ||
|
||
Next, upgrade your ingest components in the following order: | ||
|
||
. {ls}: {logstash-ref}/upgrading-logstash.html[upgrade instructions] | ||
. {beats}: {beats-ref}/upgrading.html[upgrade instructions] | ||
. {agent}: {fleet-guide}/upgrade-elastic-agent.html[upgrade instructions] | ||
. {apm-agent}s: {observability-guide}/apm-upgrade.html[upgrade instructions] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
[[upgrade-orchestrator]] | ||
== Upgrade your orchestrator | ||
|
||
NOTE: This topic applies only to customers running the {stack} on {ece} (ECE) or {eck} (ECK). | ||
|
||
Elastic provides customers with two major self-managed orchestrators to manage the {stack}. Before you can upgrade the products in the stack, you need to ensure your orchestrator is running a compatible version. If it's incompatible, you'll need to upgrade the orchestrator first before you can upgrade the stack. | ||
|
||
[discrete] | ||
=== Upgrade ECE | ||
|
||
{ece} (ECE) provides an easy way to provision, manage, and scale a fleet of {es} deployments from a central place. It can be installed on a public cloud platform, such as AWS, GCP or Microsoft Azure, on your own private cloud, or on bare metal. | ||
|
||
If you’re planning to upgrade to {version}, the minimum required version is ECE 3.0.0. If you're running an earlier version, refer to {ece-ref}/ece-upgrade.html[Upgrade your installation] for instructions on how to upgrade. | ||
|
||
[discrete] | ||
=== Upgrade ECK | ||
|
||
{eck} (ECK) is built on the Kubernetes operator pattern and extends the basic Kubernetes orchestration capabilities to support the setup and management of Elastic products and solutions on Kubernetes. | ||
|
||
If you're planning to upgrade to {version}, refer to the list of {eck-ref}/k8s-supported.html[supported versions] to ensure your current ECK version is compatible. If it isn't, refer to {eck-ref}/k8s-upgrading-eck.html[Upgrade ECK] for instructions on how to upgrade. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
[[upgrading-kibana]] | ||
== Upgrade {kib} | ||
=== Upgrade {kib} | ||
|
||
[WARNING] | ||
==== | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.