Redis Operator by Opstree Installation
Redis Operator by OpsTree is a Redis operator that will make/oversee Redis standalone and cluster mode setup on top of Kubernetes.
Installation
Section titled “Installation”-
Connect to
🟢 ManagementKubernetes Cluster ; _i.e w/ Kubeconfig File.Set Kubeconfig File
Ensure you have defined and loaded your Global Shell Variables as described in Shell Variables.
Terminal window source $HOME/opstella-installation/shell-values/kubernetes/management_cluster.vars.shTerminal window export KUBECONFIG="$HOME/opstella-installation/kubeconfigs/management_cluster.yaml" -
Create Namespace for Redis Operator Controller
2.1 Create Kubernetes Namespace
Terminal window kubectl create namespace ot-operators -
Add Operator Helm Repository
Terminal window helm repo add ot-helm https://ot-container-kit.github.io/helm-charts/ -
Create Helm Values Configurations for Operator
Terminal window cat <<EOF > $HOME/opstella-installation/helm-values/ot-redis-full-values.yaml---redisOperator:# If set to true, webhook server will be enabled for masterSlaveAntiAffinity feature# When enabled, you need to either:# 1. Enable cert-manager (certmanager.enabled=true) for automatic certificate management, or# 2. Manually create a certificate secret (see "How to generate private key" section in README)webhook: trueissuer:# Whether to create the issuer or not. You might want to disable this if instead you# want to use a ClusterIssuer that you simply want to provide.create: true# You can choose Issuer or ClusterIssuer here. The first one is namespaced, the second one# is available for global usage.kind: Issuertype: selfSignedname: redis-operator-issueremail: ""server: ""privateKeySecretName: ""solver:enabled: falsecertmanager:# Whether to use cert-manager for certificate management# Only effective when webhook=true# If webhook=true and certmanager.enabled=false, you need to manually create certificate secretenabled: truepodSecurityContext:fsGroup: 1000securityContext:runAsUser: 1000runAsGroup: 1000runAsNonRoot: trueprivileged: falseallowPrivilegeEscalation: falseseccompProfile:type: RuntimeDefaultcapabilities:drop: ["ALL"]# Feature gates for alpha/experimental featuresfeatureGates:# Enable generating Redis configuration using an init container instead of a regular containerGenerateConfigInInitContainer: trueEOF -
Install Redis Operator
Terminal window helm install redis-operator ot-helm/redis-operator --namespace ot-operators \-f $HOME/opstella-installation/helm-values/ot-redis-full-values.yaml
Post-Installation
Section titled “Post-Installation”Redis Operator Testing
Section titled “Redis Operator Testing”-
Get Pod Status - Redis Operator
Terminal window kubectl get pods -n ot-operatorsRedis Operator should be
RunningNAME READY STATUS RESTARTS AGE... (deducted)redis-operator-XXXXXXX-YYYYY 1/1 Running 0 XdXh
Finished?
Use the below navigation to proceed