Fix Openshift Templates

* There was a problem with DeploymentConfig that was missing the correct ImageStream (which should be merged in this file)
* Removing the host attribute from route object to let Openshift create a dynamic hostname for Rocket.Chat
pull/5835/head
rmartine 9 years ago
parent a626df9d61
commit 37b6eb4129
  1. 30
      .openshift/rocket-chat-ephemeral.json
  2. 27
      .openshift/rocket-chat-persistent.json

@ -142,8 +142,33 @@
"securityContext": {}
}
}
}
},
{
"kind": "ImageStream",
"apiVersion": "v1",
"metadata": {
"name": "rocketchat"
},
"status": {}
"spec": {
"dockerImageRepository": "docker.io/rocket.chat",
"tags": [
{
"name": "latest",
"annotations": {
"description": "Provides a Rocket.Chat application",
"iconClass": "icon-nodejs",
"tags": "rocketchat"
},
"from": {
"kind": "ImageStreamTag",
"name": "latest"
},
"generation": 1,
"importPolicy": {}
}
]
}
},
{
"kind": "DeploymentConfig",
@ -264,7 +289,6 @@
}
},
"spec": {
"host": "rocketchat-rocket-chat.rhel-cdk.10.1.2.2.xip.io",
"to": {
"kind": "Service",
"name": "rocketchat"
@ -392,4 +416,4 @@
"required": true
}
]
}
}

@ -164,6 +164,32 @@
},
"status": {}
},
{
"kind": "ImageStream",
"apiVersion": "v1",
"metadata": {
"name": "rocketchat"
},
"spec": {
"dockerImageRepository": "docker.io/rocket.chat",
"tags": [
{
"name": "latest",
"annotations": {
"description": "Provides a Rocket.Chat application",
"iconClass": "icon-nodejs",
"tags": "rocketchat"
},
"from": {
"kind": "ImageStreamTag",
"name": "latest"
},
"generation": 1,
"importPolicy": {}
}
]
}
},
{
"kind": "DeploymentConfig",
"apiVersion": "v1",
@ -283,7 +309,6 @@
}
},
"spec": {
"host": "rocketchat-rocket-chat.rhel-cdk.10.1.2.2.xip.io",
"to": {
"kind": "Service",
"name": "rocketchat"

Loading…
Cancel
Save