OpenShift DeploymentConfig Definition: Difference between revisions
Jump to navigation
Jump to search
(Created page with "=Internal= * OpenShift Concepts =Example= <pre> apiVersion: v1 kind: DeploymentConfig metadata: name: frontend spec: replicas: 5...") |
|||
Line 6: | Line 6: | ||
<pre> | <pre> | ||
"metadata": { | |||
"labels": { | |||
"name": "frontend" | |||
spec: | } | ||
}, | |||
"spec": { | |||
"containers": [ | |||
{ | |||
"name": "helloworld", | |||
"image": "openshift/origin-ruby-sample", | |||
"ports": [ | |||
{ | |||
"containerPort": 8080, | |||
"protocol": "TCP" | |||
} | |||
] | |||
} | |||
] | |||
} | |||
} | |||
</pre> | "replicas": 5, | ||
"selector": { | |||
"name": "frontend" | |||
}, | |||
"triggers": [ | |||
{ | |||
"type": "ConfigChange" | |||
}, | |||
{ | |||
"type": "ImageChange", | |||
"imageChangeParams": { | |||
"automatic": true, | |||
"containerNames": [ | |||
"helloworld" | |||
], | |||
"from": { | |||
"kind": "ImageStreamTag", | |||
"name": "origin-ruby-sample:latest" | |||
} | |||
} | |||
} | |||
], | |||
"strategy": { | |||
"type": "Rolling" | |||
} | |||
} | |||
}</pre> |
Revision as of 00:31, 12 May 2017
Internal
Example
"metadata": { "labels": { "name": "frontend" } }, "spec": { "containers": [ { "name": "helloworld", "image": "openshift/origin-ruby-sample", "ports": [ { "containerPort": 8080, "protocol": "TCP" } ] } ] } } "replicas": 5, "selector": { "name": "frontend" }, "triggers": [ { "type": "ConfigChange" }, { "type": "ImageChange", "imageChangeParams": { "automatic": true, "containerNames": [ "helloworld" ], "from": { "kind": "ImageStreamTag", "name": "origin-ruby-sample:latest" } } } ], "strategy": { "type": "Rolling" } } }