mirror of
https://github.com/marcel-dempers/docker-development-youtube-series.git
synced 2025-06-06 17:01:30 +00:00
Merge pull request #82 from Soren90/master
Update to redis:6.2.3-alpine
This commit is contained in:
commit
3a006ede01
@ -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:
|
||||||
|
@ -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:
|
||||||
@ -84,4 +85,4 @@ spec:
|
|||||||
targetPort: 5000
|
targetPort: 5000
|
||||||
name: sentinel
|
name: sentinel
|
||||||
selector:
|
selector:
|
||||||
app: sentinel
|
app: sentinel
|
||||||
|
Loading…
x
Reference in New Issue
Block a user