0
我正在使用ReplicationController来创建运行redis容器的容器。延迟容器重启
Redis容器由Redis Sentinel监控。如果redis崩溃并且重启速度过快,则可能会导致Redis Sentinel在进行投票时遇到麻烦。
{
"apiVersion": "v1",
"kind": "ReplicationController",
"metadata": {
"name": "redis",
"labels": { "name" : "redis" }
},
"spec": {
"replicas": 1,
"selector": {
"name":"redis"
},
"template": {
"metadata": {
"labels": {
"name":"redis"
}
},
"spec": {
"volumes": [
//...
],
"containers": [
//...
],
"restartPolicy": "Always"
}
}
}
}
是否有可能延迟重启?即在上次崩溃后60秒后重新启动容器