Skip to content

Commit

Permalink
updating to use secrets
Browse files Browse the repository at this point in the history
  • Loading branch information
coreydaley committed Jan 18, 2017
1 parent 36bb782 commit 214b5bb
Showing 1 changed file with 23 additions and 23 deletions.
46 changes: 23 additions & 23 deletions openshift/templates/nodejs-mongodb-persistent.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@
"name": "${NAME}"
},
"stringData": {
"databaseUser": "${DATABASE_USER}",
"databasePassword": "${DATABASE_PASSWORD}",
"databaseAdminPassword" : "${DATABASE_ADMIN_PASSWORD}"
"database-user": "${DATABASE_USER}",
"database-password": "${DATABASE_PASSWORD}",
"database-admin-password" : "${DATABASE_ADMIN_PASSWORD}"
}
},
{
Expand Down Expand Up @@ -102,8 +102,8 @@
},
"env": [
{
"name": "NPM_MIRROR",
"value": "${NPM_MIRROR}"
"name": "NPM_MIRROR",
"value": "${NPM_MIRROR}"
}
]
}
Expand Down Expand Up @@ -201,7 +201,7 @@
"valueFrom": {
"secretKeyRef" : {
"name" : "${NAME}",
"key" : "databaseUser"
"key" : "database-user"
}
}
},
Expand All @@ -210,7 +210,7 @@
"valueFrom": {
"secretKeyRef" : {
"name" : "${NAME}",
"key" : "databasePassword"
"key" : "database-password"
}
}
},
Expand All @@ -223,7 +223,7 @@
"valueFrom": {
"secretKeyRef" : {
"name" : "${NAME}",
"key" : "databaseAdminPassword"
"key" : "database-admin-password"
}
}
}
Expand All @@ -237,17 +237,17 @@
}
},
"livenessProbe": {
"timeoutSeconds": 3,
"initialDelaySeconds": 30,
"httpGet": {
"path": "/pagecount",
"port": 8080
}
"timeoutSeconds": 3,
"initialDelaySeconds": 30,
"httpGet": {
"path": "/pagecount",
"port": 8080
}
},
"resources": {
"limits": {
"memory": "${MEMORY_LIMIT}"
}
"limits": {
"memory": "${MEMORY_LIMIT}"
}
}
}
]
Expand Down Expand Up @@ -353,7 +353,7 @@
"valueFrom": {
"secretKeyRef" : {
"name" : "${NAME}",
"key" : "databaseUser"
"key" : "database-user"
}
}
},
Expand All @@ -362,7 +362,7 @@
"valueFrom": {
"secretKeyRef" : {
"name" : "${NAME}",
"key" : "databasePassword"
"key" : "database-password"
}
}
},
Expand All @@ -375,7 +375,7 @@
"valueFrom": {
"secretKeyRef" : {
"name" : "${NAME}",
"key" : "databaseAdminPassword"
"key" : "database-admin-password"
}
}
}
Expand All @@ -400,9 +400,9 @@
}
},
"resources": {
"limits": {
"memory": "${MEMORY_MONGODB_LIMIT}"
}
"limits": {
"memory": "${MEMORY_MONGODB_LIMIT}"
}
},
"volumeMounts": [
{
Expand Down

0 comments on commit 214b5bb

Please sign in to comment.