Redis operator for Kubernetes with HAProxy support
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
Vladimir Smagin f65b9c8a1a no more latest tag, use jenkins to build il y a 1 mois
build run il y a 4 mois
cmd/manager run il y a 4 mois
deploy no more latest tag, use jenkins to build il y a 1 mois
pkg use EmptyDir if no volume size set il y a 2 mois
vendor no more latest tag, use jenkins to build il y a 1 mois
version no more latest tag, use jenkins to build il y a 1 mois
.gitignore run il y a 4 mois
Dockerfile no more latest tag, use jenkins to build il y a 1 mois
Jenkinsfile no more latest tag, use jenkins to build il y a 1 mois
README.md use EmptyDir if no volume size set il y a 2 mois
VERSION no more latest tag, use jenkins to build il y a 1 mois
go.mod no more latest tag, use jenkins to build il y a 1 mois
go.sum no more latest tag, use jenkins to build il y a 1 mois
tools.go run il y a 4 mois

README.md

Redis operator for Kubernetes

Redis operator runs Sentinel and Redis, makes Redis high available with HAProxy.

Build sources

Prebuilt images

You can find images here https://hub.docker.com/r/iam21h/redis-operator

Deploy operator

Namespace-scoped installation

kubectl -n operators -f deploy/service_account.yaml
kubectl -n operators -f deploy/role.yaml
kubectl -n operators -f deploy/role_binding.yaml
kubectl -n operators -f deploy/operator.yaml

Edit operator.yaml to set WATCH_NAMESPACE, may be you want set it to namespace of pod:

env:
  - name: WATCH_NAMESPACE
    valueFrom:
      fieldRef:
        fieldPath: metadata.namespace

Cluster-scoped installation

kubectl -f deploy/clusterrole.yaml
kubectl -f deploy/clusterrole_binding.yaml
kubectl -n operators -f deploy/service_account.yaml
kubectl -n operators -f deploy/operator.yaml

Edit clusterrole_binding.yaml, set namespace for service account.

Your first Redis deployment

This resource can help you run your first Redis instance

apiVersion: blindage.org/v1alpha1
kind: Redis
metadata:
  name: my-redis
spec:
  useHAProxy: true
  haproxyReplicas: 1
  sentinelReplicas: 3
  redisReplicas: 3
  quorum: 2
  haproxyTimeoutServer: 30
  haproxyTimeoutClient: 30
  haproxyBackendCheckInterval: 1
  # set size if you want make persistent volume
  persistentVolumeSize: 1Gi
  persistentVolumeClass: "gluster"
  persistentVolumePurge: true

Open file pkg/apis/blindage/v1alpha1/redis_types.go to know more about options.


Copyright by Vladimir Smagin (21h) 2019
http://blindage.org email: 21h@blindage.org
Project page: https://git.blindage.org/21h/redis-operator