Skip to content

Commit c54156e

Browse files
authored
Merge pull request #218 from RedisLabs/6.2.10-4
promoting version 6.2.10-4
2 parents 7055b2b + 3de04cb commit c54156e

16 files changed

+967
-78
lines changed

README.md

Lines changed: 20 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@ High level architecture and overview of the solution can be found [HERE](https:/
3232
The following are the images and tags for this release:
3333
| Component | k8s | Openshift |
3434
| --- | --- | --- |
35-
| Redis Enterprise | `redislabs/redis:6.2.8-64` | `redislabs/redis:6.2.8-64.rhel7-openshift` |
36-
| Operator | `redislabs/operator:6.2.8-15` | `redislabs/operator:6.2.8-15` |
37-
| Services Rigger | `redislabs/k8s-controller:6.2.8-15` | `redislabs/k8s-controller:6.2.8-15` |
35+
| Redis Enterprise | `redislabs/redis:6.2.10-90` | `redislabs/redis:6.2.10-90.rhel7-openshift` |
36+
| Operator | `redislabs/operator:6.2.10-4` | `redislabs/operator:6.2.10-4` |
37+
| Services Rigger | `redislabs/k8s-controller:6.2.10-4` | `redislabs/k8s-controller:6.2.10-4` |
3838
> * RedHat certified images are available on [Redhat Catalog](https://access.redhat.com/containers/#/product/71f6d1bb3408bd0d) </br>
3939
4040

@@ -139,8 +139,6 @@ This is the fastest way to get up and running with a new Redis Enterprise on Kub
139139
140140
> **Note:** If you're not using multiple namespaces you may skip to ["Verify the installation"](#verify_admission_installation) step.
141141

142-
> **Note:** If you're not using multiple namespaces you may proceed to step 6.
143-
144142
* Limiting the webhook to the relevant namespaces:
145143
Unless limited, webhooks will intercept requests from all namespaces.<br>
146144
In case you have several REC objects on your K8S cluster you need to limit the webhook to the relevant namespace.
@@ -383,7 +381,7 @@ The operator deploys a `RedisEnterpriseCluster` with default configurations valu
383381
redisEnterpriseImageSpec:
384382
imagePullPolicy: IfNotPresent
385383
repository: redislabs/redis
386-
versionTag: 6.2.8-64
384+
versionTag: 6.2.10-90
387385
```
388386
389387
* Persistence
@@ -485,21 +483,21 @@ For example:
485483
redisEnterpriseImageSpec:
486484
imagePullPolicy: IfNotPresent
487485
repository: harbor.corp.local/redisenterprise/redis
488-
versionTag: 6.2.8-64
486+
versionTag: 6.2.10-90
489487
```
490488
491489
```yaml
492490
redisEnterpriseServicesRiggerImageSpec:
493491
imagePullPolicy: IfNotPresent
494492
repository: harbor.corp.local/redisenterprise/k8s-controller
495-
versionTag: 6.2.8-15
493+
versionTag: 6.2.10-4
496494
```
497495
498496
```yaml
499497
bootstrapperImageSpec:
500498
imagePullPolicy: IfNotPresent
501499
repository: harbor.corp.local/redisenterprise/operator
502-
versionTag: 6.2.8-15
500+
versionTag: 6.2.10-4
503501
```
504502
505503
In Operator Deployment spec (operator.yaml):
@@ -511,7 +509,7 @@ spec:
511509
spec:
512510
containers:
513511
- name: redis-enterprise-operator
514-
image: harbor.corp.local/redisenterprise/operator:6.2.8-15
512+
image: harbor.corp.local/redisenterprise/operator:6.2.10-4
515513
```
516514
517515
Image specification follow the [K8s Container schema](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.10/#container-v1-core).
@@ -634,7 +632,7 @@ Note: in the examples above the Redis Enterprise Cluster name is: 'rec' and the
634632
The Operator automates and simplifies the upgrade process.
635633
The Redis Enterprise Cluster Software, and the Redis Enterprise Operator for Kubernetes versions are tightly coupled and should be upgraded together.
636634
It is recommended to use the bundle.yaml to upgrade, as it loads all the relevant CRD documents for this version. If the updated CRDs are not loaded, the operator might fail.
637-
There are two ways to upgrade - either set 'autoUpgradeRedisEnterprise' within the Redis Enterprise Cluster Spec to instruct the operator to automatically upgrade to the compatible version, or specify the correct Redis Enterprise image manually using the versionTag attribute. The Redis Enterprise Version compatible with this release is 6.2.8-64
635+
There are two ways to upgrade - either set 'autoUpgradeRedisEnterprise' within the Redis Enterprise Cluster Spec to instruct the operator to automatically upgrade to the compatible version, or specify the correct Redis Enterprise image manually using the versionTag attribute. The Redis Enterprise Version compatible with this release is 6.2.10-90
638636
639637
```yaml
640638
autoUpgradeRedisEnterprise: true
@@ -643,7 +641,7 @@ There are two ways to upgrade - either set 'autoUpgradeRedisEnterprise' within t
643641
Alternatively:
644642
```yaml
645643
RedisEnterpriseImageSpec:
646-
versionTag: redislabs/redis:6.2.8-64
644+
versionTag: redislabs/redis:6.2.10-90
647645
```
648646
649647
## Supported K8S Distributions
@@ -665,12 +663,17 @@ Supported versions (platforms/versions that are not listed are not supported):
665663
| GKE 1.20 | supported |
666664
| GKE 1.21 | supported |
667665
| GKE 1.22 | supported |
668-
| Rancher 2.5 (K8s 1.17) | deprecated |
669-
| Rancher 2.5 (K8s 1.18) | supported |
670-
| Rancher 2.5 (K8s 1.19) | supported |
671-
| Rancher 2.5 (K8s 1.20) | supported |
666+
| Rancher 2.5 (K8s 1.17) | *deprecated |
667+
| Rancher 2.5 (K8s 1.18) | *deprecated |
668+
| Rancher 2.5 (K8s 1.19) | *deprecated |
669+
| Rancher 2.5 (K8s 1.20) | *deprecated |
670+
| Rancher 2.6 (K8s 1.18) | supported |
671+
| Rancher 2.6 (K8s 1.19) | supported |
672+
| Rancher 2.6 (K8s 1.20) | supported |
673+
| Rancher 2.6 (K8s 1.21) | supported |
672674
| VMWare TKGIE** 1.10 (K8s 1.19) | supported |
673-
| AKS 1.19 | supported |
675+
| VMWare TKGIE 1.11 (K8s 1.20). | supported |
676+
| AKS 1.19 | deprecated |
674677
| AKS 1.20 | supported |
675678
| AKS 1.21 | supported |
676679
| AKS 1.22 | supported |

advanced/Redis-gears/gears.yaml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
spec:
2+
redisEnterpriseAdditionalPodSpecAttributes:
3+
initContainers:
4+
- name: initcontainer
5+
volumeMounts:
6+
- mountPath: /opt/redislabs/gears-packages
7+
name: gears-volume
8+
image: python:3.7
9+
imagePullPolicy: IfNotPresent
10+
env:
11+
- name: "GEARS_PACKAGES"
12+
value: "<Python packages>"
13+
command:
14+
- "/bin/bash"
15+
args:
16+
- "-c"
17+
- "for package in ${GEARS_PACKAGES}; do echo $package >>/tmp/requirements.txt; done; pip install -r /tmp/requirements.txt -t /opt/redislabs/gears-packages"
18+
resources:
19+
limits:
20+
memory: 4Gi
21+
cpu: 2
22+
requests:
23+
memory: 4Gi
24+
cpu: 2
25+
redisEnterpriseVolumeMounts:
26+
- mountPath: /opt/redislabs/gears-packages
27+
name: gears-volume
28+
volumes:
29+
- emptyDir: {}
30+
name: gears-volume
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
Install Python packages for Redis Gears
2+
3+
Disclaimer:
4+
This instructions are provided as a work around and not considered official, any use of this is the user responsibility.
5+
6+
Notes:
7+
This doc is assuming the following:
8+
• Redis Gears is already installed on the Redis enterprise cluster.
9+
• The Redis gears Python version is 3.7 (if not the sidecar container image should be changed).
10+
11+
Instructions:
12+
a. edit the gears.yaml, replace the <Python packages> with the Python packages that should be installed.
13+
The packages must be separated by a ' ' (space).
14+
For example to install the packages pytz version 2021.3 and kubernetes the yaml should be:
15+
```
16+
...
17+
- name: "GEARS_PACKAGES"
18+
value: "pytz==2021.3 kubernetes"
19+
...
20+
```
21+
b. Run the kubectl patch command on your cluster with the modified gears.yaml from the previous step, replace the <REC name> with the name of your Redis enterprise cluster:
22+
kubectl patch rec <REC name> --type merge --patch "$(cat gears.yaml)"
23+
c. Wait until all the Redis enterprise nodes are restarted with the new configurations.
24+
d. Add the below code snippet in the top of your Redis gears Python function that wants to use the installed package/s:
25+
```
26+
import sys
27+
if '/opt/redislabs/gears-packages' not in sys.path:
28+
sys.path.append('/opt/redislabs/gears-packages')
29+
# Your code below...
30+
```
31+

0 commit comments

Comments
 (0)