Skip to content

Commit

Permalink
promoting version 6.0.20-4 (#167)
Browse files Browse the repository at this point in the history
Co-authored-by: Nick Terner <nick@redislabs.com>
Co-authored-by: Yuval Levy <yuval.levy@redislabs.com>
  • Loading branch information
Nick Terner and yuvallevy2 authored Apr 26, 2021
1 parent 70209f0 commit 6ee29e2
Show file tree
Hide file tree
Showing 21 changed files with 486 additions and 104 deletions.
41 changes: 19 additions & 22 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ This page describe how to deploy Redis Enterprise on Kubernetes using the Redis
The following are the images and tags for this release:
| Component | k8s | Openshift |
| --- | --- | --- |
| Redis Enterprise | `redislabs/redis:6.0.12-57` | `redislabs/redis:6.0.12-57.rhel7-openshift` |
| Operator | `redislabs/operator:6.0.12-5` | `redislabs/operator:6.0.12-5` |
| Services Rigger | `redislabs/k8s-controller:6.0.12-5` | `redislabs/k8s-controller:6.0.12-5` |
| Redis Enterprise | `redislabs/redis:6.0.20-69` | `redislabs/redis:6.0.20-69.rhel7-openshift` |
| Operator | `redislabs/operator:6.0.20-4` | `redislabs/operator:6.0.20-4` |
| Services Rigger | `redislabs/k8s-controller:6.0.20-4` | `redislabs/k8s-controller:6.0.20-4` |
> * RedHat certified images are available on [Redhat Catalog](https://access.redhat.com/containers/#/product/71f6d1bb3408bd0d) </br>

Expand Down Expand Up @@ -130,7 +130,6 @@ This is the fastest way to get up and running with a new Redis Enterprise on Kub
kubectl patch ValidatingWebhookConfiguration redb-admission --patch "$(cat modified-webhook.yaml)"
```
* Verify the installation
In order to verify that the all the components of the Admission Controller are installed correctly, we will try to apply an invalid resource that should force the admission controller to reject it. If it applies succesfully, it means the admission controller has not been hooked up correctly.
```shell script
Expand All @@ -156,7 +155,7 @@ This is the fastest way to get up and running with a new Redis Enterprise on Kub
Create a `RedisEnterpriseDatabase` (REDB) by using Custom Resource.
> Note: An example REDB.yaml file may be found [HERE] (https://github.com/RedisLabs/redis-enterprise-k8s-docs/tree/master/examples/v1alpha1). This is an alternative to copying and pasting the example code below into the CLI
The Redis Enterprise Operator can be instructed to manage databases on the Redis Enterprise Cluster using the REDB custom resource.
Example:
```yaml
Expand Down Expand Up @@ -311,7 +310,7 @@ The operator deploys a `RedisEnterpriseCluster` with default configurations valu
redisEnterpriseImageSpec:
imagePullPolicy: IfNotPresent
repository: redislabs/redis
versionTag: 6.0.12-57
versionTag: 6.0.20-69
```
* Persistence
Expand Down Expand Up @@ -413,21 +412,21 @@ For example:
redisEnterpriseImageSpec:
imagePullPolicy: IfNotPresent
repository: harbor.corp.local/redisenterprise/redis
versionTag: 6.0.12-57
versionTag: 6.0.20-69
```
```yaml
redisEnterpriseServicesRiggerImageSpec:
imagePullPolicy: IfNotPresent
repository: harbor.corp.local/redisenterprise/k8s-controller
versionTag: 6.0.12-5
versionTag: 6.0.20-4
```
```yaml
bootstrapperImageSpec:
imagePullPolicy: IfNotPresent
repository: harbor.corp.local/redisenterprise/operator
versionTag: 6.0.12-5
versionTag: 6.0.20-4
```
In Operator Deployment spec (operator.yaml):
Expand All @@ -439,7 +438,7 @@ spec:
spec:
containers:
- name: redis-enterprise-operator
image: harbor.corp.local/redisenterprise/operator:6.0.12-5
image: harbor.corp.local/redisenterprise/operator:6.0.20-4
```
Image specification follow the [K8s Container schema](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.10/#container-v1-core).
Expand Down Expand Up @@ -490,7 +489,7 @@ spec:
The Operator automates and simplifies the upgrade process.
The Redis Enterprise Cluster Software, and the Redis Enterprise Operator for Kubernetes versions are tightly coupled and should be upgraded together.
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.
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.0.12-57
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.0.20-69
```yaml
autoUpgradeRedisEnterprise: true
Expand All @@ -499,7 +498,7 @@ There are two ways to upgrade - either set 'autoUpgradeRedisEnterprise' within t
Alternatively:
```yaml
RedisEnterpriseImageSpec:
versionTag: redislabs/redis:6.0.12-57
versionTag: redislabs/redis:6.0.20-69
```
## Supported K8S Distributions
Expand All @@ -508,22 +507,20 @@ Supported versions (platforms/versions that are not listed are not supported):
| Distribution | Support Status |
|---------------------------------|----------------|
| Openshift 3.11 (K8s 1.11) | supported |
| Openshift 4.1 (K8s 1.13) | deprecated* |
| Openshift 4.2 (K8s 1.14) | deprecated* |
| Openshift 4.3 (K8s 1.16) | deprecated* |
| Openshift 4.4 (K8s 1.17) | supported |
| Openshift 4.4 (K8s 1.17) | deprecated |
| OpenShift 4.5 (K8s 1.18) | supported |
| OpenShift 4.6 (K8s 1.19) | supported |
| KOPS vanilla 1.13 | deprecated |
| KOPS vanilla 1.14 | deprecated |
| KOPS vanilla 1.15 | supported |
| OpenShift 4.7 (K8s 1.20) | supported |
| KOPS vanilla 1.15 | deprecated |
| KOPS vanilla 1.16 | supported |
| KOPS vanilla 1.17 | supported |
| KOPS vanilla 1.18 | supported |
| KOPS vanilla 1.19 | supported |
| GKE 1.14 | deprecated** |
| GKE 1.15 | supported |
| GKE 1.16 | supported |
| GKE 1.15 | deprecated |
| GKE 1.16 | deprecated |
| GKE 1.17 | supported |
| GKE 1.18 | supported |
| GKE 1.19 | supported |
| Rancher 2.4 (K8s 1.17) | supported |
| Rancher 2.4 (K8s 1.18) | supported |
| Rancher 2.5 (K8s 1.17) | supported |
Expand Down
31 changes: 1 addition & 30 deletions admission.bundle.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ spec:
serviceAccountName: redis-enterprise-admission
containers:
- name: admin
image: redislabs/operator:6.0.12-5
image: redislabs/operator:6.0.20-4
command:
- /usr/local/bin/admission
imagePullPolicy: Always
Expand All @@ -84,33 +84,4 @@ spec:
path: /healthz
port: 8443
scheme: HTTPS
initContainers:
- name: admin-init
image: redislabs/operator:6.0.12-5
command:
- /usr/local/bin/admission
args:
- '-generate-tls'
imagePullPolicy: Always
env:
- name: POD_NAME
valueFrom:
fieldRef:
fieldPath: metadata.name
- name: POD_NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.namespace
- name: POD_IP
valueFrom:
fieldRef:
fieldPath: status.podIP
resources:
limits:
cpu: 2000m
memory: 256Mi
requests:
cpu: 100m
memory: 256Mi

---
1 change: 1 addition & 0 deletions admission/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ metadata:
name: redis-enterprise-database
spec:
evictionPolicy: illegal
defaultUser: false
EOF
```

Expand Down
31 changes: 1 addition & 30 deletions admission/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ spec:
serviceAccountName: redis-enterprise-admission
containers:
- name: admin
image: redislabs/operator:6.0.12-5
image: redislabs/operator:6.0.20-4
command:
- /usr/local/bin/admission
imagePullPolicy: Always
Expand All @@ -41,32 +41,3 @@ spec:
path: /healthz
port: 8443
scheme: HTTPS
initContainers:
- name: admin-init
image: redislabs/operator:6.0.12-5
command:
- /usr/local/bin/admission
args:
- '-generate-tls'
imagePullPolicy: Always
env:
- name: POD_NAME
valueFrom:
fieldRef:
fieldPath: metadata.name
- name: POD_NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.namespace
- name: POD_IP
valueFrom:
fieldRef:
fieldPath: status.podIP
resources:
limits:
cpu: 2000m
memory: 256Mi
requests:
cpu: 100m
memory: 256Mi

24 changes: 22 additions & 2 deletions bundle.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ rules:
verbs: ["get", "list", "watch"]
- apiGroups: [""]
resources: ["events"]
verbs: ["create"]
verbs: ["create", "patch"]
- apiGroups: ["apps"]
resources: ["deployments", "statefulsets", "replicasets"]
verbs: ["*"]
Expand Down Expand Up @@ -508,6 +508,20 @@ spec:
serviceAccountName:
description: Name of the service account to use
type: string
redisEnterpriseServicesConfiguration:
description: Cluster optional services settings
properties:
mdnsServer:
properties:
operatingMode:
enum:
- enabled
- disabled
type: string
required:
- operatingMode
type: object
type: object
servicesRiggerSpec:
description: Specification for service rigger
properties:
Expand Down Expand Up @@ -1797,7 +1811,7 @@ spec:
serviceAccountName: redis-enterprise-operator
containers:
- name: redis-enterprise-operator
image: redislabs/operator:6.0.12-5
image: redislabs/operator:6.0.20-4
command:
- redis-enterprise-operator
imagePullPolicy: Always
Expand Down Expand Up @@ -2151,6 +2165,12 @@ spec:
defaultUser:
description: Is connecting with a default user allowed?
type: boolean
ossCluster:
description: OSS Cluster mode option
type: boolean
proxyPolicy:
description: The policy used for proxy binding to the endpoint
type: string
evictionPolicy:
description: Database eviction policy. see more https://docs.redislabs.com/latest/rs/administering/database-operations/eviction-policy/
type: string
Expand Down
14 changes: 14 additions & 0 deletions crds/v1/rec_crd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -433,6 +433,20 @@ spec:
serviceAccountName:
description: Name of the service account to use
type: string
redisEnterpriseServicesConfiguration:
description: Cluster optional services settings
properties:
mdnsServer:
properties:
operatingMode:
enum:
- enabled
- disabled
type: string
required:
- operatingMode
type: object
type: object
servicesRiggerSpec:
description: Specification for service rigger
properties:
Expand Down
30 changes: 30 additions & 0 deletions crds/v1alpha1/rec_crd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,18 @@ spec:
value. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/'
type: object
type: object
clusterCredentialSecretName:
description: Secret Name/Path to use for Cluster Credentials. If left
blank, will use cluster name
type: string
clusterCredentialSecretRole:
description: Used only if ClusterCredentialSecretType is vault, to define
vault role to be used. If blank, defaults to "redis-enterprise-operator"
type: string
clusterCredentialSecretType:
description: Type of Secret to use for ClusterCredential, Vault, Kuberetes,...
If left blank, will default ot kubernetes secrets
type: string
clusterRecovery:
description: ClusterRecovery initiates cluster recovery when set to
true. Note that this field is cleared automatically after the cluster
Expand Down Expand Up @@ -433,6 +445,20 @@ spec:
serviceAccountName:
description: Name of the service account to use
type: string
redisEnterpriseServicesConfiguration:
description: Cluster optional services settings
properties:
mdnsServer:
properties:
operatingMode:
enum:
- enabled
- disabled
type: string
required:
- operatingMode
type: object
type: object
servicesRiggerSpec:
description: Specification for service rigger
properties:
Expand Down Expand Up @@ -1104,6 +1130,10 @@ spec:
username:
description: Username for the admin user of Redis Enterprise
type: string
vaultCASecret:
description: K8s secret name containing Vault's CA cert - defaults to
"vault-ca-cert"
type: string
volumes:
description: additional volumes
items:
Expand Down
6 changes: 6 additions & 0 deletions crds/v1alpha1/redb_crd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -327,6 +327,12 @@ spec:
defaultUser:
description: Is connecting with a default user allowed?
type: boolean
ossCluster:
description: OSS Cluster mode option
type: boolean
proxyPolicy:
description: The policy used for proxy binding to the endpoint
type: string
evictionPolicy:
description: Database eviction policy. see more https://docs.redislabs.com/latest/rs/administering/database-operations/eviction-policy/
type: string
Expand Down
1 change: 0 additions & 1 deletion examples/v1alpha1/redb.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,3 @@ metadata:
spec:
redisEnterpriseCluster:
name: redis-enterprise
memorySize: 100MB
2 changes: 1 addition & 1 deletion multi-namespace-redb/operator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ spec:
serviceAccountName: redis-enterprise-operator
containers:
- name: redis-enterprise-operator
image: redislabs/operator:6.0.12-5
image: redislabs/operator:6.0.20-4
command:
- redis-enterprise-operator
imagePullPolicy: Always
Expand Down
Loading

0 comments on commit 6ee29e2

Please sign in to comment.