Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
wowsel authored Feb 22, 2019
1 parent 39dbb08 commit 65549ea
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,42 @@ redis:
- "hz 50"
```
You can use NodeAffinity and Tolerations for deploy redis to isolation nodes, like production.
Example:
```
apiVersion: v1
items:
- apiVersion: storage.spotahome.com/v1alpha2
kind: RedisFailover
metadata:
name: redis
spec:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: kops.k8s.io/instancegroup
operator: In
values:
- productionnodes
hardAntiAffinity: false
redis: null
sentinel:
replicas: 3
resources:
limits:
memory: 100Mi
requests:
cpu: 100m
tolerations:
- effect: NoExecute
key: dedicated
operator: Equal
value: production
kind: List
```
**Important*: this options will be set via `config set` or `sentinel set mymaster`. In the Sentinel options, there are some "conversions" to be made.

- Configuration on the `sentinel.conf`: `sentinel down-after-milliseconds mymaster 2000`
Expand Down

0 comments on commit 65549ea

Please sign in to comment.