Merge pull request #82 from Soren90/master

Update to redis:6.2.3-alpine
This commit is contained in:
Marcel Dempers 2021-05-26 20:48:37 +10:00 committed by GitHub
commit 3a006ede01
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 6 deletions

View File

@ -15,7 +15,7 @@ spec:
spec: spec:
initContainers: initContainers:
- name: config - name: config
image: redis:6.0-alpine image: redis:6.2.3-alpine
command: [ "sh", "-c" ] command: [ "sh", "-c" ]
args: args:
- | - |
@ -45,7 +45,7 @@ spec:
mountPath: /tmp/redis/ mountPath: /tmp/redis/
containers: containers:
- name: redis - name: redis
image: redis:6.0-alpine image: redis:6.2.3-alpine
command: ["redis-server"] command: ["redis-server"]
args: ["/etc/redis/redis.conf"] args: ["/etc/redis/redis.conf"]
ports: ports:

View File

@ -15,7 +15,7 @@ spec:
spec: spec:
initContainers: initContainers:
- name: config - name: config
image: redis:6.0-alpine image: redis:6.2.3-alpine
command: [ "sh", "-c" ] command: [ "sh", "-c" ]
args: args:
- | - |
@ -35,8 +35,9 @@ spec:
fi fi
done done
echo "sentinel monitor mymaster $MASTER 6379 2" >> /tmp/master echo "sentinel monitor mymaster $MASTER 6379 2" >> /tmp/master
echo "port 5000 echo "port 5000
sentinel resolve-hostnames yes
sentinel announce-hostnames yes
$(cat /tmp/master) $(cat /tmp/master)
sentinel down-after-milliseconds mymaster 5000 sentinel down-after-milliseconds mymaster 5000
sentinel failover-timeout mymaster 60000 sentinel failover-timeout mymaster 60000
@ -49,7 +50,7 @@ spec:
mountPath: /etc/redis/ mountPath: /etc/redis/
containers: containers:
- name: sentinel - name: sentinel
image: redis:6.0-alpine image: redis:6.2.3-alpine
command: ["redis-sentinel"] command: ["redis-sentinel"]
args: ["/etc/redis/sentinel.conf"] args: ["/etc/redis/sentinel.conf"]
ports: ports: