Please carefully read the entries for all versions between the version you are running and the version you want to upgrade to.
Ensure to read the Upgrade Warnings and Notes for the version you are upgrading to as well as the versions you are skipping.
If you want to skip versions when upgrading, be sure to check out the upgrading minor versions and upgrading patch versions sections.
Solr Operator Version | 1.15 |
1.16 - 1.18 |
1.19 - 1.20 |
1.21 |
1.22 + |
---|---|---|---|---|---|
v0.2.6 |
✔️ | ✔️ | ✔️ | ✔️ | ❌ |
v0.2.7 |
❌ | ✔️ | ✔️ | ✔️ | ❌ |
v0.2.8 |
❌ | ✔️ | ✔️ | ✔️ | ❌ |
v0.3.x |
❌ | ✔️ | ✔️ | ✔️ | ❌ |
v0.4.x |
❌ | ✔️ | ✔️ | ✔️ | ❌ |
v0.5.x |
❌ | ❌ | ✔️ | ✔️ | ✔️ |
v0.6.x |
❌ | ❌ | ✔️ | ✔️ | ✔️ |
v0.7.x |
❌ | ❌ | ❌ | ✔️ | ✔️ |
v0.8.x |
❌ | ❌ | ❌ | ❌ | ✔️ |
Solr Operator Version | 7.7 |
8.0 - 8.10 |
8.11 |
9.0 - 9.3 |
9.4 + |
---|---|---|---|---|---|
v0.2.7 |
✔️ | ✔️ | ✔️ | ❌ | ❌ |
v0.2.8 |
✔️ | ✔️ | ✔️ | ❌ | ❌ |
v0.3.x |
✔️ | ✔️ | ✔️ | ❌ | ❌ |
v0.4.x |
✔️ | ✔️ | ✔️ | ❌ | ❌ |
v0.5.x |
✔️ | ✔️ | ✔️ | ❌ | ❌ |
v0.6.x |
✔️ | ✔️ | ✔️ | ✔️ 1️⃣ | ✔️ 1️⃣ |
v0.7.x |
✔️ | ✔️ | ✔️ | ✔️ 1️⃣ | ✔️ 1️⃣ |
v0.8.x |
❌ | ❌ | ✔️ | ✔️ 1️⃣ | ✔️ |
Exceptions
- 1️⃣
SolrTLS
andSolrClientTLS
are not supported
Please note that this represents basic compatibility with the Solr Operator. There may be options and features that require newer versions of Solr. (e.g. S3/GCS Backup Support)
Please test to make sure the features you plan to use are compatible with the version of Solr you choose to run.
Please follow the instructions below when upgrading the Solr Operator.
However, no matter the upgrade, always read the Upgrade Notes for every version between
In order to upgrade minor versions (e.g. v0.2.5
-> v0.3.0
), you must upgrade one minor version at a time (e.g. v0.2.0
-> v0.3.0
-> v0.4.0
).
It is also necessary to upgrade to the latest patch version before upgrading to the next minor version.
Therefore if you are running v0.2.5
and you want to upgrade to v0.3.0
, you must first upgrade to v0.2.8
before upgrading to v0.3.0
.
There when upgrading minor versions, there may be CRD options that have been deprecated. The Solr Operator will automatically change the existing Solr resources to use the new format. Therefore when upgrading to the next version, which may remove the deprecated option, the existing resources will behave correctly. However, creating new resources with the deprecated options will fail. Be sure to carefully read the Upgrade Warnings to be sure you are not using deprecated options.
You should be able to upgrade from a version to any patch version with the same minor and major versions.
It is always encouraged to upgrade to the latest patch version of the minor and major version you are running.
There is no need to upgrade one patch version at a time (e.g. v0.2.5
-> v0.2.6
-> v0.2.7
-> v0.2.8
),
instead you can leap to the latest patch version (e.g. v0.2.5
-> v0.2.8
).
Installing the Solr Operator, especially via the Helm Chart, does not necessarily mean that you are installing the required CRDs for that version of the Solr Operator.
If the Solr CRDs already exist in your Kubernetes cluster, then Helm will not update them even if the CRDs have changed between the Helm chart versions.
Instead, you will need to manually install the CRDs whenever upgrading your Solr Operator.
You should always upgrade your CRDs before upgrading the Operator
You can do this via the following command, replacing <version>
with the version of the Solr Operator you are installing:
# Just replace the Solr CRDs
kubectl replace -f "http://solr.apache.org/operator/downloads/crds/<version>/all.yaml"
# Just replace the Solr CRDs and all CRDs it might depend on (e.g. ZookeeperCluster)
kubectl replace -f "http://solr.apache.org/operator/downloads/crds/<version>/all-with-dependencies.yaml"
It is strongly recommended to use kubectl create
or kubectl replace
, instead of kubectl apply
when creating/updating CRDs.
When upgrading the Solr Operator, you may need to upgrade the Zookeeper Operator at the same time. If you are using the Solr Helm chart to deploy the Zookeeper operator, then you won't need to do anything besides installing the CRD's with dependencies, and upgrade the Solr Operator helm deployment.
# Just replace the Solr CRDs and all CRDs it might depend on (e.g. ZookeeperCluster)
kubectl replace -f "http://solr.apache.org/operator/downloads/crds/v0.9.0-prerelease/all-with-dependencies.yaml"
helm upgrade solr-operator apache-solr/solr-operator --version 0.9.0-prerelease
Note that the Helm chart version does not contain a v
prefix, which the downloads version does. The Helm chart version is the only part of the Solr Operator release that does not use the v
prefix.
-
The minimum supported Solr version is now 8.11 If you are unable to use a newer version of Solr, please install the
v0.7.1
version of the Solr Operator. However, it is strongly suggested to upgrade to newer versions of Solr that are actively supported.q See the version compatibility matrix for more information. -
Kubernetes support is now limited to 1.22+.
If you are unable to use a newer version of Kubernetes, please install thev0.7.1
version of the Solr Operator for use with Kubernetes1.21
. See the version compatibility matrix for more information. -
The new
SolrCloud.spec.scaling.vacatePodsOnScaleDown
option is enabled by default. This means that any SolrCloud that has itsspec.replicas
decreased will have the replicas migrated off of the soon-to-be-deleted pods by default. Set this value tofalse
to retain the previous functionality. More information can be found in the Solr Pod Scale-Down documentation. -
The
POD_HOSTNAME
envVar in SolrCloud Pods has been deprecated. UsePOD_NAME
instead. -
Use of the
hostPort
system property placeholder in custom solr.xml files has been deprecated. Use<int name="hostPort">${solr.port.advertise:80}</int>
, the default value used by Solr, instead. -
By default
solrcloud
resources will now use/admin/info/system
and/admin/info/health
for liveness and readiness checks, respectively. Administrators that provide customsecurity.json
files for their clusters should either exempt both of these endpoints from authentication entirely, or configure permissions ensuring the relevant Solr user account can access them without issue.
-
Kubernetes support is now limited to 1.21+.
If you are unable to use a newer version of Kubernetes, please install thev0.6.0
version of the Solr Operator for use with Kubernetes1.20
and below. See the version compatibility matrix for more information. -
The required version of the Zookeeper Operator to use with this version has been upgraded from
v0.2.14
tov0.2.15
. If you use the Solr Operator helm chart, then by default the new version of the Zookeeper Operator will be installed as well. Refer to the helm chart documentation if you want to manage the Zookeeper Operator installation yourself.
Please refer to the Zookeeper Operator release notes before upgrading. Make sure to install the correct version of the Zookeeper Operator CRDs, as shown above. -
PodDisruptionBudgets
are now created by default alongside SolrCloud instances. The maximum number of pods allowed down at any given time is aligned with the Managed Update settings provided in the spec. If this is not provided, the default setting (25%
) is used.PodDisruptionBudget
creation can be disabled for a solrcloud resource, by settingspec.availability.podDisruptionBudget.enabled
to false. -
Provided Zookeeper pods use the
IfNotPresent
pullPolicy by default. Users that specify this field manually will not see a change. -
The Solr Operator now tries to limit connectivity to pods before they are deleted, for rolling updates or other reasons. Before the pod is killed, and evicted of replicas if ephemeral storage is used, a readinessCondition will be set to
false
. The Headless Service does not use readiness, so internode traffic will not be affected, however the ClusterIP (common) service will no longer include these nodes until they have been restarted. This change will improve request success rates during a rolling restart. Refer to the Managed Updates documentation. -
The deprecated SolrCloud CRD field
Spec.solrAddressability.external.ingressTLSTerminationSecret
has been removed, please useSpec.solrAddressability.external.ingressTLSTermination.tlsSecret
instead. In order to have these fields changed automatically, upgrade to thev0.6.0
version of the Solr operator before upgrading to thev0.7.0
version. However, all new SolrCloud resources will need to respect this field change. -
The deprecated SolrCloud CRD field
Spec.solrAddressability.external.additionalDomains
has been removed, please useSpec.solrAddressability.external.additionalDomainNames
instead. In order to have these fields changed automatically, upgrade to thev0.6.0
version of the Solr operator before upgrading to thev0.7.0
version. However, all new SolrCloud resources will need to respect this field change.
-
The default Solr version for the
SolrCloud
andSolrPrometheusExporter
resources has been upgraded from8.9
to8.11
. This will not affect any existing resources, as default versions are hard-written to the resources immediately. Only new resources created after the Solr Operator is upgraded tov0.6.0
will be affected. -
The required version of the Zookeeper Operator to use with this version has been upgraded from
v0.2.12
tov0.2.14
. If you use the Solr Operator helm chart, then by default the new version of the Zookeeper Operator will be installed as well. Refer to the helm chart documentation if you want to manage the Zookeeper Operator installation yourself.
Please refer to the Zookeeper Operator release notes before upgrading. Make sure to install the correct version of the Zookeeper Operator CRDS, as shown above. -
The SolrCloud CRD field
Spec.solrAddressability.external.additionalDomains
has been renamed toadditionalDomainNames
. In this releaseadditionalDomains
is still accepted, but all values will automatically be added toadditionalDomainNames
and the field will be set tonil
by the operator. TheadditionalDomains
option will be removed in a future version. -
The SolrCloud CRD field
Spec.solrAddressability.external.ingressTLSTerminationSecret
has been moved toSpec.solrAddressability.external.ingressTLSTermination.tlsSecret
. In this releaseingressTLSTerminationSecret
is still accepted, but all values will automatically be changed toingressTLSTermination.tlsSecret
and the original field will be set tonil
by the operator. TheingressTLSTerminationSecret
option will be removed in a future version. -
SolrPrometheusExporter
resources without any image specifications (SolrPrometheusExporter.Spec.image.*
) will use the referencedSolrCloud
image, if the reference is byname
, notzkConnectionString
. If anySolrPrometheusExporter.Spec.image.*
option is provided, then those values will be defaulted by the Solr Operator and theSolrCloud
image will not be used. When upgrading fromv0.5.*
tov0.6.0
, only newSolrPrometheusExporter
resources will use this new feature. To enable it on existing resources, update the resources and remove theSolrPrometheusExporter.Spec.image
section. -
CRD options deprecated in
v0.5.0
have been removed. This includes fieldSolrCloud.spec.dataStorage.backupRestoreOptions
,SolrBackup.spec.persistence
andSolrBackup.status.persistenceStatus
. Upgrading tov0.5.*
will remove these options on existing and new SolrCloud and SolrBackup resources. However, once the Solr CRDs are upgraded tov0.6.0
, you will no longer be able to submit resources with the options listed above. Please migrate your systems to use the new options while runningv0.5.*
, before upgrading tov0.6.0
.
-
Due to the deprecation and removal of
networking.k8s.io/v1beta1
in Kubernetes v1.22,networking.k8s.io/v1
will be used for Ingresses.This means that Kubernetes support is now limited to 1.19+.
If you are unable to use a newer version of Kubernetes, please install thev0.4.0
version of the Solr Operator for use with Kubernetes 1.18 and below. See the version compatibility matrix for more information.This also means that if you specify a custom
ingressClass
via an annotation, you should change to use theSolrCloud.spec.customSolrKubeOptions.ingressOptions.ingressClassName
instead. The ability to set the class through annotations is now deprecated in Kubernetes and will be removed in future versions. -
The legacy way of specifying a backupRepository has been DEPRECATED. Instead of using
SolrCloud.spec.dataStorage.backupRestoreOptions
, useSolrCloud.spec.backupRepositories
. TheSolrCloud.spec.dataStorage.backupRestoreOptions
option will be removed inv0.6.0
.
Note: Do not take backups while upgrading from the Solr Operatorv0.4.0
tov0.5.0
. Wait for the SolrClouds to be updated, after the Solr Operator is upgraded, and complete their rolling restarts before continuing to use the Backup functionality. -
The location of Solr backup data as well as the name of the Solr backups have been changed, when using volume repositories. Previously the name of the backup (in solr) was set to the name of the collection. Now the name given to the backup in Solr will be set to
<backup-resource-name>-<collection-name>
, without the<
or>
characters, where thebackup-resource-name
is the name of the SolrBackup resource.The directory in the Read-Write-Many Volume, required for volume repositories, that backups are written to is now
/cloud/<solr-cloud-name>/backups
by default, instead of/cloud/<solr-cloud-name>/backups/<backup-name>
. Because the backup name in Solr uses both the SolrBackup resource name and the collection name, there should be no collisions in this directory. However, this can be overridden using theSolrBackup.spec.location
option, which is appended to/cloud/<solr-cloud-name>
. -
The SolrBackup persistence option has been removed as of
v0.5.0
. Users should plan to keep their backup data in the shared volume if using a Volume Backup repository. IfSolrBackup.spec.persistence
is provided, it will be removed and written back to Kubernetes.Users using the S3 persistence option should try to use the S3 backup repository instead. This requires Solr 8.10 or higher.
-
Default ports when using TLS are now set to 443 instead of 80. This affects
solrCloud.Spec.SolrAddressability.CommonServicePort
andsolrCloud.Spec.SolrAddressability.CommonServicePort
field defaulting. Users already explicitly setting these values will not be affected.
-
The required version of the Zookeeper Operator to use with this version has been upgraded from
v0.2.9
tov0.2.12
. If you use the Solr Operator helm chart, then by default the new version of the Zookeeper Operator will be installed as well. Refer to the helm chart documentation if you want to manage the Zookeeper Operator installation yourself.
Please refer to the Zookeeper Operator release notes before upgrading. Make sure to install the correct version of the Zookeeper Operator CRDS, as shown above. -
The deprecated Solr Operator Helm chart option
useZkOperator
has been removed, usezookeeper-operator.use
instead.
Note: The old option takes a string"true"
/"false"
, while the new option takes a booleantrue
/false
. -
The default Solr version for
SolrCloud
andSolrPrometheusExporter
resources has been upgraded from7.7.0
to8.9
. This will not affect any existing resources, as default versions are hard-written to the resources immediately. Only new resources created after the Solr Operator is upgraded tov0.4.0
will be affected. -
In previous versions of the Solr Operator, the provided Zookeeper instances could only use Persistent Storage. Now ephemeral storage is enabled, and used by default if Solr is using ephemeral storage. The ZK storage type can be explicitly set via
Spec.zookeeperRef.provided.ephemeral
orSpec.zookeeperRef.provided.persistence
, however if neither is set, the Solr Operator will default to use the type of storage (persistent or ephemeral) that Solr is using.
This means that the default Zookeeper Storage type can change for users using ephemeral storage for Solr. If you require ephemeral Solr storage and persistent Zookeeper Storage, be sure to explicitly set that starting inv0.4.0
.
-
All deprecated CRD fields and Solr Operator options from
v0.2.*
have been removed. -
The
SolrCollection
andSolrCollectionAlias
have been removed. Please use the Solr APIs to manage these resources instead. Discussion around the removal can be found in Issue #204. -
The required version of the Zookeeper Operator to use with this version has been upgraded from
v0.2.6
tov0.2.9
. If you use the Solr Operator helm chart, then by default the new version of the Zookeeper Operator will be installed as well. Refer to the helm chart documentation if you want to manage the Zookeeper Operator installation yourself.
Please refer to the Zookeeper Operator release notes before upgrading.
-
Due to the addition of possible sidecar/initContainers for SolrClouds, the version of CRDs used had to be upgraded to
apiextensions.k8s.io/v1
.This means that Kubernetes support is now limited to 1.16+.
If you are unable to use a newer version of Kubernetes, please install thev0.2.6
version of the Solr Operator for use with Kubernetes 1.15 and below. -
The location of backup-restore volume mounts in Solr containers has changed from
/var/solr/solr-backup-restore
to/var/solr/data/backup-restore
. This change was made to ensure that there were no issues using the backup API with solr 8.6+, which restricts the locations that backup data can be saved to and read from. This change should be transparent if you are merely using the SolrBackup CRD. All files permissions issues with SolrBackups should now be addressed. -
The default
PodManagementPolicy
for StatefulSets has been changed toParallel
fromOrderedReady
. This change will not affect existing StatefulSets, asPodManagementPolicy
cannot be updated. In order to continue usingOrderedReady
on new SolrClouds, please use the following setting:
SolrCloud.spec.customSolrKubeOptions.statefulSetOptions.podManagementPolicy
-
The
SolrCloud
andSolrPrometheusExporter
services' portNames have changed to"solr-client"
and"solr-metrics"
from"ext-solr-client"
and"ext-solr-metrics"
, respectively. This is due to a bug in Kubernetes whereportName
andtargetPort
must match for services. -
Support for
etcd
/zetcd
deployments has been removed.
The section for a Zookeeper cluster SpecSolrCloud.spec.zookeeperRef.provided.zookeeper
has been DEPRECATED. The same fields (except for the deprecatedpersistentVolumeClaimSpec
option) are now available underSolrCloud.spec.zookeeperRef.provided
. -
Data Storage options have been expanded, and moved from their old locations.
SolrCloud.spec.dataPvcSpec
has been DEPRECATED.
Please instead use the following instead:SolrCloud.spec.dataStorage.persistent.pvcTemplate.spec=<spec>
SolrCloud.spec.backupRestoreVolume
has been DEPRECATED.
Please instead use the following instead:SolrCloud.spec.dataStorage.backupRestoreOptions.Volume=<volume-source>
- The solr-operator argument
--ingressBaseDomain
has been DEPRECATED. In order to set the external baseDomain of your clouds, please begin to useSolrCloud.spec.solrAddressability.external.domainName
instead. You will also need to setSolrCloud.spec.solrAddressability.external.method
toIngress
. The--ingressBaseDomain
argument is backwards compatible, and all existing SolrCloud objects will be auto-updated once your operator is upgraded tov0.2.6
. The argument will be removed in a future version (v0.3.0
).
- The default supported version of the Zookeeper Operator has been upgraded to
v0.2.6
.
If you are using the provided zookeeper option for your SolrClouds, then you will want to upgrade your zookeeper operator version as well as the version and image of the zookeeper that you are running. You can find examples of the zookeeper operator as well as solrClouds that use provided zookeepers in the examples directory.
Please refer to the Zookeeper Operator release notes before upgrading.
- If you do not use an ingress with the Solr Operator, the Solr Hostname and Port will change when upgrading to this version. This is to fix an outstanding bug. Because of the headless service port change, you will likely see an outage for inter-node communication until all pods have been restarted.
-
SolrCloud.spec.solrPodPolicy
has been DEPRECATED in favor of theSolrCloud.spec.customSolrKubeOptions.podOptions
option.
This option is backwards compatible, but will be removed in a future version (v0.3.0
). -
SolrPrometheusExporter.spec.solrPodPolicy
has been DEPRECATED in favor of theSolrPrometheusExporter.spec.customKubeOptions.podOptions
option.
This option is backwards compatible, but will be removed in a future version (v0.3.0
).
- The zkConnectionString used for provided zookeepers changed from using the string provided in the
ZkCluster.Status
, which used an IP, to using the service name. This will cause a rolling restart of your solrs using the provided zookeeper option, but there will be no data loss.
- Uses
gomod
instead ofdep
SolrCloud.spec.zookeeperRef.provided.zookeeper.persistentVolumeClaimSpec
has been DEPRECATED in favor of theSolrCloud.zookeeperRef.provided.zookeeper.persistence
option.
This option is backwards compatible, but will be removed in a future version (v0.3.0
).- An upgrade to the ZKOperator version
0.2.4
is required.