{
"kind": "DeploymentConfig",
"apiVersion": "v1",
"metadata": {
"name": "frontend"
},
"spec": {
"template": { (1)
"metadata": {
"labels": {
"name": "frontend"
}
},
"spec": {
"containers": [
{
"name": "helloworld",
"image": "openshift/origin-ruby-sample",
"ports": [
{
"containerPort": 8080,
"protocol": "TCP"
}
]
}
]
}
}
"replicas": 5, (2)
"selector": {
"name": "frontend"
},
"triggers": [
{
"type": "ConfigChange" (3)
},
{
"type": "ImageChange", (4)
"imageChangeParams": {
"automatic": true,
"containerNames": [
"helloworld"
],
"from": {
"kind": "ImageStreamTag",
"name": "origin-ruby-sample:latest"
}
}
}
],
"strategy": { (5)
"type": "Rolling"
}
}
}
1 | The replication controller template named frontend describes a simple Ruby application. |
2 | There will be 5 replicas of frontend by default. |
3 | A configuration change trigger causes a new deployment to be created any time the replication controller template changes. |
4 | An image change trigger trigger causes a new deployment to be
created each time a new version of the origin-ruby-sample:latest image repository is available. |
5 | The Rolling strategy is the default and may be omitted. |