The objetive for this repository is to deploy a Redis Cluster on top of Openshift Container Platform.
-
Create the redis-cluster namespace on your Cluster
# oc new-project redis-cluster
-
Import the template from source
# oc create -f https://raw.githubusercontent.com/makentenza/ocp-redis-cluster/master/kube/redis-cluster-ephimeral.yaml
-
Create the new application from the imported template
# oc new-app redis-cluster-ephemeral
--> Deploying template "openshift/redis-cluster-ephemeral" to project redis-cluster
redis-cluster-ephemeral --------- Redis 3 Cluster Node Ephemeral Redis 3 Cluster Node Ephemeral
--> Creating resources
serviceaccount "redis" created imagestream "redis-cluster-node" created service "redis-cluster-service" created service "redis-cluster-node01" created service "redis-cluster-node02" created service "redis-cluster-node03" created buildconfig "redis-cluster" created deploymentconfig "redis-cluster-node01" created deploymentconfig "redis-cluster-node02" created deploymentconfig "redis-cluster-node03" created
--> Success
-
Add the redis service account to anyuid Security Context Constraint so redis user could start processes inside de image
# oc adm policy add-scc-to-user anyuid system:serviceaccount:redis-cluster:redis