1
0
Fork 0
mirror of https://github.com/vbatts/imgsrv.git synced 2024-11-27 02:25:41 +00:00

openshift: switch to rolling strategy and fmt

Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
This commit is contained in:
Vincent Batts 2017-06-08 15:38:58 -04:00
parent 7d2ce0ed03
commit 553f990c5d
Signed by: vbatts
GPG key ID: 10937E57733F1362

View file

@ -28,7 +28,7 @@
"stringData": { "stringData": {
"database-user": "${DATABASE_USER}", "database-user": "${DATABASE_USER}",
"database-password": "${DATABASE_PASSWORD}", "database-password": "${DATABASE_PASSWORD}",
"database-admin-password" : "${DATABASE_ADMIN_PASSWORD}" "database-admin-password": "${DATABASE_ADMIN_PASSWORD}"
} }
}, },
{ {
@ -147,7 +147,14 @@
}, },
"spec": { "spec": {
"strategy": { "strategy": {
"type": "Recreate" "type": "Rolling",
"rollingPatams": {
"updatePeriodSeconds": 1,
"intervalSeconds": 1,
"timeoutSeconds": 600,
"maxUnavailable": "25%",
"maxSurge": "25%"
}
}, },
"triggers": [ "triggers": [
{ {
@ -196,18 +203,18 @@
{ {
"name": "MONGODB_USER", "name": "MONGODB_USER",
"valueFrom": { "valueFrom": {
"secretKeyRef" : { "secretKeyRef": {
"name" : "${NAME}", "name": "${NAME}",
"key" : "database-user" "key": "database-user"
} }
} }
}, },
{ {
"name": "MONGODB_PASSWORD", "name": "MONGODB_PASSWORD",
"valueFrom": { "valueFrom": {
"secretKeyRef" : { "secretKeyRef": {
"name" : "${NAME}", "name": "${NAME}",
"key" : "database-password" "key": "database-password"
} }
} }
}, },
@ -218,9 +225,9 @@
{ {
"name": "MONGODB_ADMIN_PASSWORD", "name": "MONGODB_ADMIN_PASSWORD",
"valueFrom": { "valueFrom": {
"secretKeyRef" : { "secretKeyRef": {
"name" : "${NAME}", "name": "${NAME}",
"key" : "database-admin-password" "key": "database-admin-password"
} }
} }
} }
@ -348,18 +355,18 @@
{ {
"name": "MONGODB_USER", "name": "MONGODB_USER",
"valueFrom": { "valueFrom": {
"secretKeyRef" : { "secretKeyRef": {
"name" : "${NAME}", "name": "${NAME}",
"key" : "database-user" "key": "database-user"
} }
} }
}, },
{ {
"name": "MONGODB_PASSWORD", "name": "MONGODB_PASSWORD",
"valueFrom": { "valueFrom": {
"secretKeyRef" : { "secretKeyRef": {
"name" : "${NAME}", "name": "${NAME}",
"key" : "database-password" "key": "database-password"
} }
} }
}, },
@ -370,9 +377,9 @@
{ {
"name": "MONGODB_ADMIN_PASSWORD", "name": "MONGODB_ADMIN_PASSWORD",
"valueFrom": { "valueFrom": {
"secretKeyRef" : { "secretKeyRef": {
"name" : "${NAME}", "name": "${NAME}",
"key" : "database-admin-password" "key": "database-admin-password"
} }
} }
} }