You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
apiVersion: storage.spotahome.com/v1alpha2kind: RedisFailovermetadata:
name: redisfailoverspec:
hardAntiAffinity: false # Optional. Value by default. If true, the pods will not be scheduled on the same node.sentinel:
replicas: 3# Optional. 3 by default, can be set higher.resources: # Optional. If not set, it won't be defined on created reosurces.requests:
cpu: 100mlimits:
memory: 100Miredis:
replicas: 2# Optional. 3 by default, can be set higher.resources: # Optional. If not set, it won't be defined on created reosurcesrequests:
cpu: 100mmemory: 100Milimits:
cpu: 400mmemory: 500Miexporter: false # Optional. False by default. Adds a redis-exporter container to export metrics.
Tearing down your Operator deployment
$ make clean
Troubleshooting
Error: release redisfailover failed: namespaces "default" is forbidden: User "system:serviceaccount:kube-system:default" cannot get namespaces in the namespace "default"
# solution
kubectl create serviceaccount --namespace kube-system tiller
kubectl create clusterrolebinding tiller-cluster-rule --clusterrole=cluster-admin --serviceaccount=kube-system:tiller
kubectl patch deploy --namespace kube-system tiller-deploy -p '{"spec":{"template":{"spec":{"serviceAccount":"tiller"}}}}'
helm init --service-account tiller --upgrade